
//email

function validate(){
		var email=this.emailForm.email.value;
		var name=this.emailForm.name.value;
		//var subject=this.emailForm.sub.value;
		//alert(subject);
		//alert(name);
		//alert(email);
		if(name==null || name==""){
			alert("Name is required.");
			this.emailForm.name.focus();
			return false;
		}
		if(email==null || email==""){
			alert("E-Mail address is required.");
			this.emailForm.email.focus();
			return false;
		
		}

		//if( subject=="0"){
		//	alert("Please select a subject.");
		//	this.emailForm.sub.focus();
		//	return false;
		//}

		return true;
	}

function submitForm(){
	if(validate()){
		emailForm.submit();
	}
}


