function openCalWin(formName, dateField) {
	window.dateField = eval("document." + formName + "." + dateField);
	var calWin = window.open("/lib/popcalendar.html", "calendar", "status=yes,resizable,scrollbars=no,dependant,alwaysRaised=yes,height=200,width=190")
}

function isBlankForm(formName) {
	//formName = document.formName;
	var dispText = "";
	var fieldVal;
	var retVal = false;
	for (i=0;i<=formName.length-1;i++) {
		var thisEleType = formName.elements[i].type;
		var thisField = formName.elements[i];
		if (thisEleType != "reset" && thisEleType != "submit" && thisEleType != "checkbox" && thisEleType != "hidden" && thisEleType != "radio" && thisField.name != "searchCrit") {
			if (thisEleType == "select-one" || thisEleType == "select-multiple") {
				if (thisField.selectedIndex != -1  && thisField.selectedIndex != 0) {
					fieldVal = thisField.options[thisField.selectedIndex].value;
					retVal = true;
				}
			} else {
				
				fieldVal = thisField.value;
				if(thisField.name == "keyword" && fieldVal.length > 0) {
					retVal = true;
				}
			}
			if (fieldVal != "  " && fieldVal.length > 1 && fieldVal != "TODAY") {
				retVal = true;
			}
		}
	}
	return retVal;
}
function openWindow(name,loc,width,height) {
	var myWindow = window.open(loc, name, "resizable=yes,scrollbars=yes,status=0,width="+width+",height="+height);
	if (navigator.appName=='Netscape') { myWindow.focus(); }
}
