
function toggle(idName) {
  current = (document.all[idName].style.display == "none") ? "block" : "none";
  document.all[idName].style.display = current;
}

thisDiv = "none";
function toggle2() {
  idName = document.menu.provstate.options[document.menu.provstate.selectedIndex].value;
  if (idName == "") { idName = "none"; }
//  alert(idName);
  if (idName != thisDiv) {
	if (thisDiv != "none") { document.all[thisDiv].style.display = "none"; }
	if (idName != "none") { document.all[idName].style.display = "block"; }
	thisDiv = idName;
  }
}

function createWindow(target,width,height,scroll,resize) {
  targetName = target;
  targetName = target.substring(0, target.lastIndexOf('.'));
  if (target.indexOf('/') != -1) { targetName = targetName.substring(targetName.lastIndexOf('/')+1, length.targetName); }
  scrollbars = "no"; if (scroll == "scroll") { scrollbars = "yes"; }
  resizable = "yes"; if (resize == "noresize") { resizable = "no"; }
  if (targetName == "form1") { height -= 1; }
//  params = "toolbar=no,width=" + width + ",height=" + height + ",directories=no,location=no,status=no,scrollbars=" + scrollbars + ",resizable=" + resizable + ",menubar=no";
//  alert("x" + targetName + "x");

  window.open(target, targetName, "toolbar=no,width=" + width + ",height=" + height + ",directories=no,location=no,status=no,scrollbars=" + scrollbars + ",resizable=" + resizable + ",menubar=no");
//var popupWin = 
//  if (popupWin) { popupWin.focus(); }
}

function message(txt) { window.status = txt; }
function remove_message() { window.status = ""; }
