// email validator
	function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    return false
		 }

 		 return true					
	}	
// end email validator

function submit_contact(){
	var themessage = "There was an error in your contact information:\n ";
	if (Contact_Form.name.value.length == 0){
		themessage = themessage + "\n- Please Enter Your Name.";
	}
	if (echeck(Contact_Form.email.value)==false){
		themessage = themessage + "\n- Email is Invalid.";
	}
	if (themessage == "There was an error in your contact information:\n ") {
		Contact_Form.submit();
	}
	else {
		alert(themessage);
   		}
}

function submit_contact_1(){
	var themessage = "There was an error in your contact information:\n ";
	if (Contact_Form_1.name.value.length == 0){
		themessage = themessage + "\n- Please Enter Your Name.";
	}
	if (echeck(Contact_Form_1.email.value)==false){
		themessage = themessage + "\n- Email is Invalid.";
	}
	if (themessage == "There was an error in your contact information:\n ") {
		Contact_Form_1.submit();
	}
	else {
		alert(themessage);
   		}
}

function submit_susie(){
	var themessage = "There was an error in your contact information:\n ";
	if (form1.name.value.length == 0){
		themessage = themessage + "\n- Please Enter Your Name.";
	}
	if (echeck(form1.email.value)==false){
		themessage = themessage + "\n- Email is Invalid.";
	}
	if (form1.question.value.length == 0){
		themessage = themessage + "\n- Please Enter Your Question.";
	}
	if (themessage == "There was an error in your contact information:\n ") {
		form1.submit();
	}
	else {
		alert(themessage);
   		}
}