/* formCheck Pref file

Start the file with the following line:

	formPopup = 'WWW';
	
Replace WWW with the path to the Index.shtml in the FormCheck folder.

Fill this file with these lines for every form field you wish to check:
	
	document.forms[formName].elements['XXX'].fieldCheck = "YYY";
	document.forms[formName].elements['XXX'].longName = "ZZZ";
	
Replace XXX with the field name as it appears in the form.

Replace ZZZ with the field name as it appears on the webpage
  and as it will appear listed in the popup window if in error.

Replace YYY with the type of check you wish to do on this
  form field. Current types of checks are:
       - text
         Checks whether a text field or textarea is blank
       - alphanumeric
         Checks whether a text field is comprised of letters
         and numbers only, and is between 5 and 99 characters long.
       - email
         Checks whether a text field contains a valid email address
       - pulldown
         Checks whether select menu is on first option (note, the first
         iotion is usually a 'Choose from below' type option).
         
At the end of the function, include the line below to run the check function:

	formCheck(formName);
	
*/


/* prefs */
function formCheckPrefs(formName) {
	
	formPopup = './formcheck/index.shtml';
	
	document.forms[formName].elements['Name'].fieldCheck = "text";
	document.forms[formName].elements['Name'].longName = "Full Name";

	document.forms[formName].elements['Email'].fieldCheck = "text";
	document.forms[formName].elements['Email'].longName = "E-Mail Address";

	if(formCheck(formName,formPopup)) return true
	else return false;
}
/* END prefs */
