//Check form for empty fields
function valForm(){   
	if ((isOwner_Name()) && (isHome_Phone()) && (isOwner_Email_Address()) && (isAssociation()) && (isAddress()) && (isBuilding_Number())  && (isUnit_Number()) && (isDetails())  && (isAffected_By_Modification()) && (isStart_Date()) && (isContractor_Name()) && (isContractor_Phone()) && (isCompletion_Date()) && (isTerms())){    
		alert("\nAll required fields appear to be filled out properly.\n\nYour request will now be processed.");      
	}  else {return false;} 
}
function isOwner_Name(){   
	var str = document.Form1.Owner_Name.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your name.")      
		document.Form1.Owner_Name.focus();      
		return false;      
	}   
	return true;   
}
function isHome_Phone(){   
	var str = document.Form1.Home_Phone.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your home phone number.")      
		document.Form1.Home_Phone.focus();      
		return false;      
	}   
	return true;   
}
function isOwner_Email_Address(){   
	// Return false if e-mail field is blank.   
	if (document.Form1.Owner_Email_Address.value == ""){      
		alert("ERROR!!!\nThe e-mail field is blank.\n\nPlease enter your e-mail address.")      
		document.Form1.Owner_Email_Address.focus();      
		return false;       
	}   
	// Return false if e-mail field does not contain a '@' and '.' .   
	if (document.Form1.Owner_Email_Address.value.indexOf ('@',0) == -1 || document.Form1.Owner_Email_Address.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.Owner_Email_Address.select();      
		document.Form1.Owner_Email_Address.focus();      
		return false;      
	}   
	else {      
		return true;      
	}   
}
function isAssociation(){   
	var str = document.Form1.Association.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the name of the\nassociation you belong to.")      
		document.Form1.Association.focus();      
		return false;      
	}   
	return true;
}
function isAddress(){   
	var str = document.Form1.Address.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your address")      
		document.Form1.Address.focus();      
		return false;      
	}   
	return true;
}
function isBuilding_Number(){   
	var str = document.Form1.Building_Number.value;     
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your building\nnumber or D/N")      
		document.Form1.Building_Number.focus();      
		return false;      
	}   
	return true;
}
function isUnit_Number(){   
	var str = document.Form1.Unit_Number.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter your unit\nnumber or D/N")      
		document.Form1.Unit_Number.focus();      
		return false;      
	}   
	return true;
}
function isDetails(){   
	var str = document.Form1.Details.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease outline the nature of the modification in detail")      
		document.Form1.Details.focus();      
		return false;      
	}   
	return true;
}
function isAffected_By_Modification(){
	if (document.Form1.Affected_By_Modification.checked == false){      
		alert("ERROR!!!\nPlease select all areas affected by the modification")      
		document.Form1.Affected_By_Modification.focus();      
		return false;      
	}   
	return true;
}
function isStart_Date(){   
	var str = document.Form1.Start_Date.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the start date for\nthe modification (if approved)")      
		document.Form1.Start_Date.focus();      
		return false;      
	}   
	return true;
}
function isContractor_Name(){   
	var str = document.Form1.Contractor_Name.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the contractors name")      
		document.Form1.Contractor_Name.focus();      
		return false;      
	}   
	return true;
}
function isContractor_Phone(){   
	var str = document.Form1.Contractor_Phone.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the contractors phone number")      
		document.Form1.Contractor_Phone.focus();      
		return false;      
	}   
	return true;
}
function isCompletion_Date(){   
	var str = document.Form1.Completion_Date.value;      
	if (str == ""){      
		alert("ERROR!!!\nPlease enter the completion date")      
		document.Form1.Completion_Date.focus();      
		return false;      
	}   
	return true;
}
function isTerms(){
	if (document.Form1.Terms.checked == false){      
		alert("ERROR!!!\nPlease agree to the terms outlined")      
		document.Form1.Terms.focus();      
		return false;      
	}   
	return true;
}