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