
function verifyIContactForm() {
	var empty_fields = "";
	var msg = "";

	var cname = ""
	var contact = "";
	var phone = "";
	cname = document.IContactForm.CompanyName.value;
	contact = document.IContactForm.Contact.value;
	phone = document.IContactForm.Phone.value;

	// Ensure that a Company Name has been provided
	if ((cname == null) || (cname == "") || isblank(cname)) {
		empty_fields += "\n   - Name of Company";
	}
	// Ensure that a contact name has been provided
	if ((contact == null) || (contact == "") || isblank(contact)) {
		empty_fields += "\n   - Contact Name";
	}
	// Ensure that a phone number has been provided
	if ((phone == null) || (phone == "") || isblank(phone)) {
		empty_fields += "\n   - Phone Number";
	}
	
	// Notify user of any errors
	if (empty_fields) {
		msg =  "--------------------------------------------------------------------------------------\n";
		msg += "Your response could not be processed because of the following error(s).\n";
		msg += "Please correct the error(s) and re-submit.\n";
		msg += "--------------------------------------------------------------------------------------\n\n";
		msg += "- The following required field(s) are empty:" + empty_fields + "\n";
        alert (msg);
		return false;
	}

	// Valid entries	
	return true;
}

