// -----------------------
// FUNCTION: fOpenFormInPopUp
// DESCRIPTION: Redirects a form to a pop up. include target="new_window_name" in the <form> tag for non-JS users.
// ARGUMENTS: oForm: refer to the form being directed, sFeatures: popup window features, windowName: optional name for popup
// RETURN: null
// -----------------------
function fOpenFormInPopUp (oForm, sFeatures, sWindowName) {
	if (!sWindowName) {
		sWindowName = 'formTarget' + (new Date().getTime());
	}
	oForm.target = sWindowName;
	open ('', sWindowName, sFeatures);
}

// -----------------------
// FUNCTION: fClearOnClick
// DESCRIPTION: Checks to see if a form field has been editied and clears the form if the initial default text is atill there
// ARGUMENTS: oForm: refer to the form being directed, sInitialText: initial value of the text field
// RETURN: null
// -----------------------
function fClearOnClick (oFormField, sInitialText) {
	if(oFormField.value == sInitialText ) {
		oFormField.value = "";
	}
}