<!-- 
// toggle the display of help text
// div ids and input names must not be the same
function toggleDisplay(whichDiv) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichDiv).style;
		style2.display = style2.display? "":"inline";
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichDiv].style;
		style2.display = style2.display? "":"inline";
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichDiv].style;
		style2.display = style2.display? "":"inline";
	}
}

// restrict the amount of text typed into textboxes
function textLimit(field, maxlen) {
  if (field.value.length > maxlen) {
	field.value = field.value.substring(0, maxlen);
	alert('Sorry, only ' + maxlen + ' characters allowed here.');
  }
}

// open new window for pop-up items
function NewWindow(mypage, myname, w, h, scroll) {
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  win = window.open(mypage, myname, winprops)
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

 -->
