<!--
function validname(){
    if (document.contact.name.value == ""){
        return false;
    }
       return true;
    }
function validEmail() {
	invalidChars = "/:;,"

	if (document.contact.email.value == "") {
           //must not be empty
		return false                                    //25
	}
	for(i=0; i<invalidChars.length; i++) {        //no invalid chars
		badChar = invalidChars.charAt(i)
		if(document.contact.email.value.indexOf(badChar,0)> -1){

		return false
	}
	}
	atPos = document.contact.email.value.indexOf("@",1)        //must have @
		if(atPos == -1) {
		return false
	}
	if (document.contact.email.value.indexOf("@",atPos+1) != -1) {
             //only 1 @
		return false
	}
 	periodPos = document.contact.email.value.indexOf(".",atPos)   //1 period after @
		if(periodPos == -1) {

		return false
	}
	if (periodPos+3 > document.contact.email.value.length) {

		return false;
		}
	return true;
	}

function submitIt(contactform) {  //these call alerts if something is missing
    if (!validname(contactform.name.value)){
        alert("Please enter your Name before submitting this form.");
        contactform.name.focus();
        return false;
    }

	if  (!validEmail(contactform.email.value)){
		alert("Please enter Valid Email in the form of xxx@xxx.xxx")
		contactform.email.focus();
		contactform.email.select();
		return false
	}

}
//-->
