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("Please enter your name"); nombre.focus(); }
 else
 if ((email.value=="")){ alert("Please enter a valid email account"); email.focus(); }
 else
 if (!validaEmail(email.value)){ alert("Please enter a valid email account"); email.focus(); }
 else
 if (found_in.selectedIndex == 0){ alert("Select where you found us."); found_in.focus(); }
 else
 if ((telefono.value=="")){ alert("Please enter your primary telephone number"); telefono.focus(); }
 else
 if (selpackage.selectedIndex == 0){ alert("Please select your desired package"); selpackage.focus(); }
 else
 if ((!accept.checked)){ alert("In order to proceed, you must check the box that signifies you have read and accept our Terms & conditions"); accept.focus(); }
 else
 submit();
 }
}
