function isBlank(theInput){	if ((theInput.value == "")||(theInput.value == null)){		return true;	}	return false;}function isNotEmail(theInput){	if(isBlank(theInput)){		return true;	}	if((theInput.value.indexOf('@')!=-1)&&(theInput.value.indexOf('.')!=-1)){		return false;	}	return true;}function submitForm(theForm){	var errors='';	if (isBlank(theForm.realname)){		errors+='\nName';	}

	if (isBlank(theForm.Enquiry)){		errors+='\nEnquiry';	}

	if (isNotEmail(theForm.email)){		errors+='\nemail';	}	if(errors!=''){		alert('Please amend or enter the following:'+errors);	}	else{		theForm.submit();	}}