<!-- Begin

//feedback forms that implement this script should follow these rules/steps:
// 1. the form should be disabled
// 2. the form should have no action attribute
// 3. this file must be included in the page
// 4. the submit button should be replaced with a standard button.
// 5. the button for form submission must have an onclick event that calls
// 	the sendFeedback function below. the form action is sent as a parameter.
// 6. A hidden form field called "hidden_var" can be included in the form. It doesn't seem that this
//	this method provides any extra security, so the code has been changed to allow this
//	to be optional.

//this hidden value is used to block spam bots. it is set both here and in the /includes/constants.asp file
var hiddenVar;
hiddenVar = "abcdefg";


function sendFeedback(form, action) {
//purpose of this function is to use it to store our feedback asp page name
//and to create a new variable/value pair. both of these actions are to help
//mitigate spam software attempts to abuse our contact forms

//form action was removed so that user must push the button to send feedback
form.action = action;
if(form.hidden_var){
	form.hidden_var.value = hiddenVar;
}

form.submit();

}


function sendLink(form) {
//purpose of this function is to use it to store our feedback asp page name
//and to create a new variable/value pair. both of these actions are to help
//mitigate spam software attempts to abuse our contact forms

//form action was removed so that user must push the button to send feedback

form.action = "sendlink.asp";
form.hidden_var.value = hiddenVar;
form.submit();

}


function enableForm(form){
	//to prevent spam, we require the use of JS. The feedback form is disabled by default
	//If user has JS turned on, it's re-enabled on load. 
	//We'll put a noscript note at the top of the form
	if(form){
		form.disabled = false;
		form.submit_form.disabled = false;
	}
}


//--!>