  //For every field that you DO NOT want to be checked, enter the name into the ExclusionList parameter
function formsubmit(FormName,ExclusionList) {     

	WhichForm = FormName;
	ExList = ExclusionList;
	CancelSubmit=false;

	for(i=0;i<(document.forms[WhichForm].elements.length-1);++i) {
		if (ExList.indexOf(document.forms[WhichForm].elements[i].name)>(-1)) {
			eval(document.forms[WhichForm].elements[i].name + "='NoCheck';");
		}
		if (ExList.indexOf(document.forms[WhichForm].elements[i].name)==(-1))  {
			eval(document.forms[WhichForm].elements[i].name + "='" +document.forms[WhichForm].elements[i].name + "';");
		}
	}
	for(i=0;i<document.forms[WhichForm].elements.length;++i) {                      
		if(eval(document.forms[WhichForm].elements[i].name)!="NoCheck" && document.forms[WhichForm].elements[i].value=="") {alert("To completely fill out the form, please enter a value for the " + eval(document.forms[WhichForm].elements[i].name) + "." );   return([false]);  CancelSubmit=true;}
		if(document.forms[WhichForm].elements[i].type=="select-one" && eval(document.forms[WhichForm].elements[i].name)!="NoCheck" && document.forms[WhichForm].elements[i].options[document.forms[WhichForm].elements[i].selectedIndex].value=="") {alert("To completely fill out the form, please enter a value for the " + eval(document.forms[WhichForm].elements[i].name) + "." );  return([false]); CancelSubmit=true;}
	}
	if(CancelSubmit==false){document.forms[WhichForm].submit();}
	//alert('SUBMIT TRUE')
}

//CHECKLIST:
// 1) Make sure that you include this file in the asp page.
// 2) Make sure the name of the form is the first parameter passed in the parameters area where you call the script. (Surrounded by single quotation marks.)
// 3) Make sure all the NON-required fileds are in a comma delineated list all within ONE set of single quotation marks in the parameters where you call the script
// 4) Make sure you enable the submit part of this function on line 23 and disable the alert.
// EXAMPLE OF A CORRECT CALL TO THIS FUNCTION:
//<input type="button" onclick="formsubmit('registerseller','users_workphone,users_shiptoaddress2');" value="Register now!">
//EXAMPLE OF A PROPER INCLUDE OF THIS FILE
//<script language="javascript" src="checkform.js">
//</script>