//Used for field validation for new documentsvar isOK;var missing;var doc = document.forms[0];function checkField( fName ) {	if (window.document.layers) {	//NN specific error handler		switch( fName.type ) {			case "select-one":				if( fName.selectedIndex == 0 ) {					missing += "\n     Missing:\t" + formLabel( fName );					isOK = false;				}				break;						case "text":				if( fName.value == "" || fName.value == "null" ) {					missing += "\n     Missing:\t" + formLabel( fName );					isOK = false;				}				break;		}		} else {	//IE specific error handler		switch( fName.type ) {			case "select-one":				if( fName.selectedIndex == 0 ) {					fName.style.background = "#FFCE9C";					Alert("Field needs to be filled out.");            			 isOK = false;						} else {					fName.style.background = "white";					isOK = true;						}				break;						case "text":				if( fName.value == "" || fName.value == "null" ) {					fName.style.background = "#FFCE9C";			   		isOK = false;		  				} else {  												fName.style.background = "white";				     isOK = true;			  					}		  		break;		}		}}