function checkRequired(){
	//requires 2 classes named 'passed' and 'required'.
	//mark the required fields with the class 'required' and all others with 'passed' or whatever else you want.
	//then onKeyDown, onBlur, onFocus, etc... call this function with the ID of the field.  ie.. onKeyDown="checkRequired('email')"
	//you can also combo check items.  for instance: there are 3 fields that go together, but when something has been entered in
	//one the others are not required.  call it the same way .. onKeyDown="checkRequired('field1','field2','field3')" ... and then
	//put the same function call in the other 2 fields.
	
	//updated 6/3/03 to include redundancy to not set a class more than once.
	
	var fieldArray = arguments;
	var tally = 0;
	if(fieldArray.length > 1){
		//we have a combo situation
		for (var i=0; i<fieldArray.length; i++) {
			//flip through all of them to see what they are
			if(document.getElementById(fieldArray[i]).value != ''){
				//checks out ok
				tally++;
			}
		}
		if(tally > 0){
			//at least one of the required was met...so mark them all passed
			for (var a=0; a<fieldArray.length; a++) {
				if(document.getElementById(fieldArray[a]).className == 'required'){
					document.getElementById(fieldArray[a]).className = 'passed';
				}
			}
		}
		else{
			//none of them passed
			for (var a=0; a<fieldArray.length; a++) {
				if(document.getElementById(fieldArray[a]).className == 'passed'){
					document.getElementById(fieldArray[a]).className = 'required';
				}
			}
		}
	}
	else{
		//we have a single field check
		if(document.getElementById(fieldArray[0]).value != ''){
			if(document.getElementById(fieldArray[0]).className == 'required'){
				document.getElementById(fieldArray[0]).className = 'passed';
			}
		}
		else{
			if(document.getElementById(fieldArray[0]).className == 'passed'){
				document.getElementById(fieldArray[0]).className = 'required';
			}
		}
	}
}

