function isEmail (s){
//alert(s);
	
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@")){
		i++
    }

    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;

    // look for .
    while ((i < sLength) && (s.charAt(i) != ".")){ 
		i++
    }

    // there must be at least one character after the .
    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
}

function validarFormulario(){
	if (document.forms['form3'].Nombre.value == ""){
		alert('Ingresa el nombre');
		document.forms['form3'].Nombre.focus();
		return false;
	}
	if (document.forms['form3'].Email.value == ""){
		alert('Ingresa el e-mail');
		document.forms['form3'].Email.focus();
		return false;
	}else{
	
	if(isEmail(document.forms['form3'].Email.value)==false)		{
		alert("Debe Ingresar Correctamente El Correo");
		document.forms['form3'].Email.focus();
		return false;
		}//end if
	
	}
	if (document.forms['form3'].Pais.value == ""){
		alert('Ingresa el País');
		document.forms['form3'].Pais.focus();
		return false;
	}
	if (document.forms['form3'].Comentario.value == ""){
		alert('Ingresa tu inquietud');
		document.forms['form3'].Comentario.focus();
		return false;
	}
	
return true;
}
function validarFormularioI(){
	if (document.forms['form3'].Nombre.value == ""){
		alert('we cannot read your Name. Please check it again before submitting this form.');
		document.forms['form3'].Nombre.focus();
		return false;
	}
	if (document.forms['form3'].Email.value == ""){
		alert('we cannot read your e-mail address. Please check it again before submitting this form.');
		document.forms['form3'].Email.focus();
		return false;
	}else{
	
	if(isEmail(document.forms['form3'].Email.value)==false)		{
		alert("we cannot read your e-mail address. Please check it again before submitting this form.");
		document.forms['form3'].Email.focus();
		return false;
		}//end if
	
	}
	if (document.forms['form3'].Pais.value == ""){
		alert('we cannot read your Country. Please check it again before submitting this form.');
		document.forms['form3'].Pais.focus();
		return false;
	}
	if (document.forms['form3'].Comentario.value == ""){
		alert('we cannot read your Comments. Please check it again before submitting this form.');
		document.forms['form3'].Comentario.focus();
		return false;
	}
	
return true;
}