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.fullname)||(theForm.fullname.value=='name')){		errors+='\nname';	}	if (isNotEmail(theForm.email)||(theForm.email.value.length < 8)){		errors+='\nemail';	}  	if(errors!=''){		alert('Please amend or enter the following:'+errors);	}	else{		theForm.submit();	}}