function check(which) {
	var pass=true;
	var w;
	if (document.images) {
		/*if (which.elements[11].value=='' && which.elements[12].value=='') {
			pass=false;
			w = 1;
		}
		else {*/
		for (i=0;i<which.length;i++) {
			var tempobj=which.elements[i];	
			if (tempobj.name.substring(0,1)=="*") {
				if (((tempobj.type=="text" || tempobj.type=="textarea") && tempobj.value=='') || (tempobj.type.toString().charAt(0)=="s" && tempobj.selectedIndex==0)) {
					pass=false;
					w = 2;
					break;
         		}
			}
			if (which.elements[11].value=='' && which.elements[12].value=='') {
				pass=false;
				w = 1;
			}	
		}
   	}
	if (!pass && w == 2) {
		shortFieldName=tempobj.name.substring(1,30).toUpperCase();
		alert("Please make sure the "+shortFieldName+" field was properly completed.");
		return false;
	}
	else if (!pass && w == 1) {
		shortFieldName1=which.elements[11].name.toUpperCase();
		shortFieldName2=which.elements[12].name.toUpperCase();
		alert("Please make sure the "+shortFieldName1+" or "+shortFieldName2+" field was properly completed.");
		return false;
	}
	else
		return true;
}
