function Verify(f) {
	// set up params
	var ErrorString  = "";
	
	// validation
    if (isCheckedByLength(f.reqType)) {
		ErrorString += "\n - Please describe your request";
		highlight_error(document.getElementById('reqTypePp'));
	}
	if (isBlank(f.firstname)) {
		ErrorString += "\n - First Name is required";
		highlight_error(f.firstname);
	}
	if (isBlank(f.lastname)) {
		ErrorString += "\n - Last Name is required";
		highlight_error(f.lastname);
	}
	if (isBlank(f.email)) {
		ErrorString += "\n - E-mail Address is required";
		highlight_error(f.email);
	}
	else if (!isBlank(f.email) && testSimpleEmail(f.email)) {
		ErrorString += "\n - E-mail Address format is invalid";
		highlight_error(f.email);
	}
    if (isBlank(f.email2)) {
        ErrorString += "\n - E-mail Address confirmation is required";
		highlight_error(f.email2);
	}
    else if (f.email.value != f.email2.value) {
        ErrorString += "\n - E-mail Addresses do not match";
		highlight_error(f.email2);
	}
	if (isBlank(f.address)) {
		ErrorString += "\n - Street Address is required";
		highlight_error(f.address);
	}
	if (isBlank(f.city)) {
		ErrorString += "\n - City is required";
		highlight_error(f.city);
	}
	if (f.state[f.state.selectedIndex].value.length != 2) {
		ErrorString += "\n - State/Province is required";
		highlight_error(f.state);
	}
	if (isBlank(f.zip))  {
		ErrorString += "\n - Postal Code is required";
		highlight_error(f.zip);
	}
	if (isBlank(f.feedback))  {
		ErrorString += "\n - Information about your request is required";
		highlight_error(f.feedback);
	}
	else if (isTooLong(f.feedback,4000)) {
		ErrorString += "\n - Feedback too long (you may enter 4000 characters). You entered " +document.FEEDBACK.feedback.value.length+ ".";
		highlight_error(f.feedback);
	}
	return errorAlert(ErrorString);
}
function highlight_error(Ctrl) {
    var errorColor = ["#E1E1E2","#990000"];
	Ctrl.style.backgroundColor=errorColor[0];
	Ctrl.style.borderColor=errorColor[1];
}

var chkChar = true;
function checkInput(maxChar) {
    if (chkChar) {
        if (document.FEEDBACK.feedback.value.length > maxChar) {
            chkChar = false;
	        alert("You may enter " + maxChar + " characters. You have entered " +document.FEEDBACK.feedback.value.length+ ".");
	    	return false;
    	}
    	return true;
    }
}
function isComment2Long() {
    chkChar = true;
    return checkInput(4000);
}

