function isValid() {
 var email=document.form1.useremail.value;
 	if(document.form1.validator.value == ''){
		alert ("Please fill in the answer to the validator question. (no caps)");
		document.form1.validator.focus();
		return false;
		}
	else if(document.form1.validator.value !== 'hot'){
	alert ("Please fill in the answer to the validator question. (no caps)");
		document.form1.validator.focus();
		return false;
		}
	else if (email.indexOf(' ')==-1 
      && 0<email.indexOf('@')
      && email.indexOf('@')+1 < email.length
 ) return true;
 else alert ('Invalid email address!')
 return false;
}

