function validate(){
var obj = document.forms.f2;
var phone = obj.phone.value;
var email = obj.email.value;
var emaillength = email.length;
var phonelength = phone.length;
var whereat = email.indexOf("@");
var wheredot = email.indexOf(".");
//alert ('Phone: ' + phone + '\nEmail: ' + email + '\nE-length: ' + emaillength + '\nP-length: ' + phonelength + '\nwhereat: ' + whereat + '\nwheredot: ' + wheredot);
//return false;
if (phonelength < 7 && emaillength < 6){
alert ('Please enter either a valid Phone Number or E-mail Address so the Surgeon can reply to your question.\nThank you.');
return false;
}
/*if (emaillength > 0 && (whereat < 1 || wheredot < 3  || whereat > emaillength - 4 || wheredot > emaillength - 3 || wheredot - whereat < 2) ){
alert ('Sorry, without a valid email address you cannot be contacted by the Surgeon');
return false;
}*/
// if (emaillength > 0 && (whereat < 1 || wheredot < 3  || whereat > emaillength - 4 || wheredot > emaillength - 3) ){
if (emaillength > 0 && (whereat < 1 || wheredot < 3  || whereat > emaillength - 4 ) ){
alert ('Sorry, without a valid email address you cannot be contacted by the Surgeon');
return false;
}
//return false;
return true;
}

function one_sub(){
document.forms.f2.s1.disabled = true;
return true;
}

