// JavaScript Document
function CheckForm () { 
	var errorMsg = "";
	if (document.frmEnquiry.VisitorsName.value == ""){
		errorMsg += "\nTu Nombre \t\t- Por favor ingrese su Nombre";	
	}
	if ((document.frmEnquiry.VisitorsEmail.value == "") || (document.frmEnquiry.VisitorsEmail.value.length > 0 && (document.frmEnquiry.VisitorsEmail.value.indexOf("@",0) == - 1 || document.frmEnquiry.VisitorsEmail.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\nSu E-mail \t\t\t- Esta dirección de E-mail no parece válida.";
	}
	if (document.frmEnquiry.FriendsName.value == ""){
		errorMsg += "\nTu amigo \t\t- Por favor ingrese el nombre del destinatario";
	}
	if ((document.frmEnquiry.FriendsEmail.value == "") || (document.frmEnquiry.FriendsEmail.value.length > 0 && (document.frmEnquiry.FriendsEmail.value.indexOf("@",0) == - 1 || document.frmEnquiry.FriendsEmail.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\nE-mail de su contacto \t\t- Por favor ingrese el E-mail de su contacto.";
	}
	if (document.frmEnquiry.Subject.value == ""){
		errorMsg += "\nTitulo del mensaje \t\t\t- Ingrese un titulo para su mensaje";
	}
	if (document.frmEnquiry.message.value == "") { 
 		errorMsg += "\nComentario \t\t\t- Ingrese un comentario.";
	}
	if (errorMsg != ""){
		msg = "_________________________________________________________________\n\n";
		msg += "Epa!! Parece que no hay un problema en el formulario\n";
		msg += "Por favor revise la información requerida.\n";
		msg += "________________________________________________________________\n\n";
		msg += "Los siguientes campos necesitan ser corregidos: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
		return true;
}
// -->
