sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
function showCSV(){
	document.getElementById('csv_div').style.display = 'inline';
	document.getElementById('closecsv_div').style.display = 'inline';
	document.getElementById('whatisthis_div').style.display = 'none';
}
function hideCSV(){
	document.getElementById('csv_div').style.display = 'none';
	document.getElementById('closecsv_div').style.display = 'none';
	document.getElementById('whatisthis_div').style.display = 'inline';
}

function ValidateForm() {
	var iDesc, iVal, i;
	var iDescIndex;
	var frmObj;
	frmObj = eval(document.form1);
	for (i=1;i<=18;i++) {
		iDesc = eval("frmObj.desc" + i);
		iDescIndex = iDesc.value.indexOf("req_");
		if (iDescIndex >= 0) {
			iVal = eval("frmObj.value" + i);
			if (iVal.value == "") {
				alert("Please enter a value for " + iDesc.value.slice(4));
				if (iVal.type!="hidden") iVal.focus();
					return false;
				}
			}
		}
	return true;
}
