

function contactformApp() {
	var theForm = document.contactform;
	var msg = "Please enter the following required information\n\n";
	var blnValid = true;
	
 	
	if(isBlank(theForm.strname.value)){
		blnValid = false;
		msg += "\tFull Name\n";
	} 
	
	
	if(isBlank(theForm.strtelephone.value)){
		blnValid = false;
		msg += "\tTelephone\n";
	}
	
	if(isBlank(theForm.stremail.value)){
		blnValid = false;
		msg += "\tEmail Address\n";
	} 
	if(isBlank(theForm.straddress.value)){
		blnValid = false;
		msg += "\tAddress\n";
	} 

	if(isBlank(theForm.stremail.value)){
		blnValid = false;
		msg += "\tEmail\n";
	}	
	
	if(!isBlank(theForm.stremail.value)){
		
		
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		
		if (!filter.test(theForm.stremail.value)){
			blnValid = false;
			msg += "\tA valid E-mail Address\n";
		}
		
	}
	
	if(isBlank(theForm.strenquiry.value)){
		blnValid = false;
		msg += "\tYour Enquiry\n";
	} 
	
		
	if (blnValid) {
		theForm.action='sendContactForm.asp';
		theForm.submit();
	}else{
		alert(msg);
	}
}



