function validate_form(emailRequired, that)
{
	try {
		valid = true;
		msg = "";
		if (that.amt.value == "") {
			msg += "Please fill in the loan amount.\n"
			valid = false;
		}
		if (that.email && that.email.value == "" && emailRequired) {
			msg += "Please enter an email address.\n"
			valid = false;
		}
		if (!valid) {
			alert(msg);
		}
		return valid;
	}catch(e){
		//something went wrong let the st page correct it
		return true;
	}
}
