function checkTheForm(contactForm) {
	
	var badStuff = new Array();
	var badStuffLength = 0;
	
	var msgToShow = "";
	
	// Check for values that are good
	
	if (contactForm.Name.value == "") {
		badStuff[badStuffLength] = ("Name");
		badStuffLength++;
	}
	if (contactForm.AreaCode.value == "" || contactForm.AreaCode.value.length < 3) {
		badStuff[badStuffLength] = ("Area Code");
		badStuffLength++;
	}
	if (contactForm.Exchange.value == "" || contactForm.Number.value == ""  || contactForm.Exchange.value.length < 3  || contactForm.Number.value.length < 4) {
		badStuff[badStuffLength] = ("Phone Number");
		badStuffLength++;
	}
	if (contactForm.EmailAddress.value == "") {
		badStuff[badStuffLength] = ("Email Address");
		badStuffLength++;
	}

	// Put together, and show, the alert
	
	if (badStuff.length != 0) {
		msgToShow = "You must fill in the following information:\n";

		for (i = 0; i < badStuffLength; i++) {
			if (badStuff[i] != null)
				msgToShow = msgToShow + "- " + badStuff[i] + "\n"
		}
		
		msgToShow = msgToShow + "\nbefore submitting this form.";
		
		alert(msgToShow);
		
		return false;
	}
	
	// clean up variables for next time
	badStuffLength = 0;
	delete badStuff;
	
	return true;
}