// JavaScript Document

function Val(theForm){

	if (theForm.Firstname.value == ""){
		alert("Please provide your name."); 
		theForm.Firstname.focus();	
		return (false);	  
		}
	if (theForm.phone.value == ""){
		alert("Please provide your phone number so we may contact you for any follow up questions."); 
		theForm.phone.focus();	
		return (false);	  
		}
	if (theForm.email.value == ""){
		alert("Please provide an email address for any follow up questions."); 
		theForm.email.focus();	
		return (false);	  
		}
	if (theForm.property_type.selectedIndex == 0){
		alert("Please select which property type this request is for, 1 property type per request."); 
		theForm.property_type.focus();	
		return (false);	  
		}
	if (theForm.Comments.value == ""){
		alert("Please provide a bried description of your property, size, buildings, etc."); 
		theForm.Comments.focus();	
		return (false);	  
		}
	
	<!-- only return true if a valid email address is found -->
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(theForm.email.value)){   
		return (true)
		}
	alert("Invalid E-mail Address!\nPlease retype your address.");
	theForm.email.focus();
	return (false);

}

