// JavaScript Document
function convierteAlias(texto){
 	texto=texto.replace(/(á|À|Á|Â|Ã|Ä|Å|Ã¡|Ã¤|Ã|Ã„|&aacute;|&Aacute;)/gi,'a'); // cambio las "A"s exoticas por "A"s sencillas mediante expresiones regulares
	texto=texto.replace(/(é|È|É|Ê|Ë|Ã©|Ã«|Ã‰|Ã‹|&eacute;|&Eacute;)/gi,'e'); //lo mismo con las "E" y resto de vocales y la "Ñ"
	texto=texto.replace(/(í|Ì|Í|Î|Ï|Ã­|Ã¯|Ã|Ã|&iacute;|&Iacute;)/gi,'i');
	texto=texto.replace(/(ó|Ò|Ó|Ô|Ö|Ã³|Ã¶|Ã“|Ã–|&oacute;|&Oacute;)/gi,'o');
	texto=texto.replace(/(ú|Ù|Ú|Û|Ü|Ãº|Ã¼|Ãš|Ãœ|&uacute;|&Uacute;)/gi,'u');
	texto=texto.replace(/(ñ|Ñ|Ã±|Ã‘)/gi,'n');
	texto=texto.replace(/ /gi,'_');
 	return texto;

}
