
function validate_email(thisForm) {

    if (thisForm.name.value.length < 1)
        { alert('Please fill in your name!'); thisForm.name.focus(); return (false);}
    
if (thisForm.email.value.length < 7)
        { alert('Sorry, but the email you entered it is not a valid one!'); thisForm.email.focus(); return (false);}
  var ckemail=0;
  var cter=0;
  var ckfin=0;
  var f=thisForm.email.value;
  for (i = 0; i < f.length; i++){
	if (f.charAt(i) == "@") {
  		ckemail=ckemail+1;
  	}
  	if ( ckemail==1)
  	{
  		cter=cter+1; 
	  	if ( cter > 1)
	  	{
		  	if (f.charAt(i) == ".")
		  	{
		  		ckfin=1;
		  	}
		}
  	}
  }
  if (ckfin == 0)
        { alert('Sorry, but the email you entered it is not a valid one!'); thisForm.email.focus(); return (false);}               
  
  	
}

