function validaEmail(checkStr)
{var nI, sS, nN, nP;
 // Arroba ...
 sS = "@"; nN = 0; nP = 0;
 for(nI = 0; nI <checkStr.length; nI++)
 { if(checkStr.charAt(nI) == sS)
 { nN++; nP = nI; }
 }
 if(nN == 0) return (false);
 if(nN> 1) return (false);
 var nPArroba = nP;
 // Punto ...
 sS = "."; nN = 0; nP = 0;
 for(nI = 0; nI <checkStr.length; nI++)
 { if(checkStr.charAt(nI) == sS)
 { nN++; nP = nI; }
 }
 if(nN == 0) return (false);
 var nPPunto = nP;
 // Posicion Arroba/Punto ...
 if(nPArroba> nPPunto) return (false);
 //
 return (true);
}
function GuardarConsulta(){
with(document.f){
 if ((nombre.value=="")){ alert("Write your Name."); nombre.focus(); }
 else
 if ((email.value=="")){ alert("Write a valid E-mail."); email.focus(); }
 else
 if (!validaEmail(email.value)){ alert("E-mail incorrect."); email.focus(); }
 else
 if (((procedencia.selectedIndex == 0))){ alert("Select Hear about Us option."); procedencia.focus(); }
 else
 if ((procedencia[procedencia.selectedIndex].value=='Other') && (procedencia2.value=='')) { alert("Write Other Found Us in option."); procedencia2.focus(); } 
 else
 if ((asunto.value=="")){ alert("Write the subject."); asunto.focus(); }
 else
 if ((pregunta.value=="")){ alert("Write your message."); pregunta.focus(); }
 else
 submit();
 }
}
