var emailErroneo= new Array("@a0l.com","@ahoo.com","@ail.com","@alo.com","@ao.com","@aol.cm","@aol.comlp","@aolc.om","@aopl.com","@aqol.com","@attib.com","@camcast.net","@crosslink.nett","@eaarthlink.net.","@earhlink.net","@earhtlink.net","@earthlik.net","@eathlink.net","@hormail.com","@hotmai.com","@hotmail.cm","@hotmaill.com","@hotmailll.com","@hotmal.com","@hotmiail.com","@hotmial.com","@hotmsil.com","@hotmsil.com","@hotrmail.com","@jumo.com","@michugan.com","@mindpsring.com","@mindspirng.com","@msm.com","@msn.net","@netscape.como","@netzerol.net","@netzro.net","@nezero.com","@ol.com","@prodigey.com","@proidgey.net","@sbcglobel.net","@sbcgobal.net","@sbcgolbal.net","@spritmail.com","@verison.net","@verzion.net","@worldnet.att","@yahho.com","@yaho.com","@yahool.com","@yahoomail.com","@yaoo.com","@yayhoo.com","@yhaoo.com","@yhoo.com","@yohoo.com","@aol.con","@ameritch.net","@atttbi.com", "@hormail.es","@hotmai.es","@otmail.es","@hotmaill.es","@hotmailll.es","@hotmal.es","@hotmiail.es","@hotmial.es","@hotmsil.es","@hotmsil.es","@hotrmail.es", "@yahho.es","@yaho.es","@yahool.es","@yahoomail.es","@yaoo.es","@yayhoo.es","@yhaoo.es","@yhoo.es","@yohoo.es");



var emailCorrecto = new Array("@aol.com","@yahoo.com","@aol.com","@aol.com","@aol.com","@aol.com","@aol.com","@aol.com","@aol.com","@aol.com","@attbi.com","@comcast.net","@crosslink.net","@earthlink.net","@earthlink.net","@earthlink.net","@earthlink.net","@earthlink.net","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@hotmail.com","@juno.com","@michigan.com","@mindspring.com","@mindspring.com","@msn.com","@msn.com","@netscape.com","@netzero.net","@netzero.net","@netzero.com","@aol.com","@prodigy.net","@prodigy.net","@sbcglobal.net","@sbcglobal.net","@sbcglobal.net","@sprintmail.com","@verizon.net","@verizon.net","@worldnet.att.net","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@yahoo.com","@aol.com","@ameritech.net","@attbi.com", "@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es","@hotmail.es", "@yahoo.es","@yahoo.es","@yahoo.es","@yahoo.es","@yahoo.es","@yahoo.es","@yahoo.es","@yahoo.com","@yahoo.es" );


function trim(s){s = s.replace(/\s+/gi, " ");s = s.replace(/^\s+|\s+$/gi,"");return s;}
function esIP(valor){vRegExp = /^(([0-2]*[0-9]+[0-9]+)\.([0-2]*[0-9]+[0-9]+)\.([0-2]*[0-9]+[0-9]+)\.([0-2]*[0-9]+[0-9]+))$/
	return vRegExp.test(valor);}
function esTelefono(valor){	vRegExp = /\d{9,12}/
	return vRegExp.test(valor);}
function esEmail(valor){
	vRegExp = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.([a-z]){2,4})$/
	return vRegExp.test(valor);}
function esEmailErroneo(valor){
	var retorno=-1
	if (valor){

	for (i=0; i<=emailErroneo.length; i++){
		if (valor.indexOf(emailErroneo[i])>-1){
		retorno=i;
		break;
		}		
	}	
	}
return retorno;
}
function requerido(valor){if (trim(valor)==''){	return false;}else{	vRegExp=/./	
return vRegExp.test(valor);}}
function numerico(valor){vRegExp = /^[0-9]+$/
return vRegExp.test(valor);}
function esTamanoValido(q, valor){if (q){if (q.length<=valor){return true;}else{return false;}}else{return false;}}