function isEmail(str) 
  { 
        if(!str.match(/^[\w]{1}[\w\.\-_]*@[\w]{1}[\w\-_\.]*\.[\w]{2,6}$/i)) 
				{ return false; } 
				else 
				{ return true; } 
   }
	  
function checkContact() {
missinginfo = "";
if (document.cf[0].value == "") { missinginfo += "\n     - Name"; }

email_temp=document.cf[2].value;
evar=isEmail(email_temp); 

if (!evar) {missinginfo +="\nThere is a problem with your email address";}
if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo)
return false;
}
else return true;
}