// Called  for each INPUT field to see if it is present in the Error Fields String.
// If field name is present return "error" 

function is_in_error(FieldName, errorfld) 
{
// Declare work string equal to ERRORFLD string
  var error_fields_list = errorfld;
// Concat "," on to field imp name to further define search
// "COOK" would be found if "COOKFUEL" present. Wrong but "COOK," would not.  
  FieldName = FieldName + ",";
// Set offset = to starting position of field name in error string
  offset = error_fields_list.indexOf(FieldName);
  if (offset > -1){
    return "error";
  } else {
    return "";
  }
}

// Determine Browser Type & Set IE color work variables   
var isNav, isIE;
var coll = "";
var styleObj = "";

if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		window.isNav = true;
		if (parseInt(navigator.appVersion) >= 5) {
    	styleObj = ".style";
    }
	} else {
// Declare IE colour variables so that the calling function can work if IE or netscape  		
		isIE = true;
		coll = "all.";
		styleObj = ".style";
		}
}
