//Check form for empty fields
function valForm(){   
	if ((istxtName()) && (istxtHomePhone()) && (istxtEmailAddress()) && (istxtAssociation()) && (istxtAddress()) && (istxtBuildingNumber())  && (istxtUnitNumber()) && (istxtOtherInfo()) && (isTerms())){    
		alert("\nAll required fields appear to be filled out properly.\n\nYour request will now be processed.");      
	}  else {return false;} 
}
function istxtName(){   
	var str = document.Form1.txtName.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your name.")      
		document.Form1.txtName.focus();      
		return false;      
	}   
	return true;   
}
function istxtHomePhone(){   
	var str = document.Form1.txtHomePhone.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your home phone number.")      
		document.Form1.txtHomePhone.focus();      
		return false;      
	}   
	return true;   
}
function istxtEmailAddress(){   
	// Return false if e-mail field is blank.   
	if (document.Form1.txtEmailAddress.value == ""){      
		alert("ERROR!!!\nThe e-mail field is blank.\n\nPlease enter your e-mail address.")      
		document.Form1.txtEmailAddress.focus();      
		return false;       
	}   
	// Return false if e-mail field does not contain a '@' and '.' .   
	if (document.Form1.txtEmailAddress.value.indexOf ('@',0) == -1 || document.Form1.txtEmailAddress.value.indexOf ('.',0) == -1){      
		alert("ERROR!!!\nThe e-mail field requires a \"@\" and a \".\"be used.\n\nPlease re-enter your e-mail address.")      
		document.Form1.txtEmailAddress.select();      
		document.Form1.txtEmailAddress.focus();      
		return false;      
	}   
	else {      
		return true;      
	}   
}
function istxtAssociation(){   
	var str = document.Form1.txtAssociation.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the name of the\nassociation you belong to.")      
		document.Form1.txtAssociation.focus();      
		return false;      
	}   
	return true;
}
function istxtAddress(){   
	var str = document.Form1.txtAddress.value;     
	if (str == ""){      
		alert("\nPlease enter your address")      
		document.Form1.txtAddress.focus();      
		return false;      
	}   
	return true;
}
function istxtBuildingNumber(){   
	var str = document.Form1.txtBuildingNumber.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your building\nnumber or D/N")      
		document.Form1.txtBuildingNumber.focus();      
		return false;      
	}   
	return true;
}
function istxtUnitNumber(){   
	var str = document.Form1.txtUnitNumber.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your unit\nnumber or D/N")      
		document.Form1.txtUnitNumber.focus();      
		return false;      
	}   
	return true;
}
function istxtOtherInfo(){   
	var str = document.Form1.txtOtherInfo.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease detail the work needing to be performed")      
		document.Form1.txtOtherInfo.focus();      
		return false;      
	}   
	return true;
}
function isTerms(){
	if (document.Form1.Terms.checked == false){      
		alert("ERROR!!!\nPlease agree to the work order\nsubmission terms outlined.")      
		document.Form1.Terms.focus();      
		return false;      
	}   
	return true;
}