function showHideLayers() { //v2.0
  var i, visStr, args, theObj;
  args = showHideLayers.arguments;
  for (i=0; i<(args.length-1); i+=2) { // (objectID,visStr)
    visStr   = args[i+1];
    if (navigator.appName == 'Netscape' && document.layers != null) {
      theObj = eval('document.layers[\'' + args[i] + '\']');
      if (theObj) theObj.visibility = visStr;
    } else if (document.all != null) { //IE4+
	  if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = eval('document.all[\'' + args[i] + '\']');
      if (theObj) theObj.style.visibility = visStr;
    } else if (document.getElementById != null) { //NS6+
	  if (visStr == 'show') visStr = 'visible'; //convert vals
      if (visStr == 'hide') visStr = 'hidden';
      theObj = d = document.getElementById(args[i])
	  if (theObj) theObj.style.visibility = visStr;
  	} 
  }
}

function writeDiv() {
  var i, txt, divID,divClass,divHTML;
  args = writeDiv.arguments;
  for (i=0; i<(args.length-2); i+=3) { 
    divID = args[i]
	divClass = args[i+1]
	divHTML = args[i+2]
	if ((navigator.appName == 'Netscape' && document.layers != null) || document.all != null || document.getElementById != null) {//NS4+/6+, IE4+
		txt = "<div";
		if (divID != "") txt += ' id="' + divID + '"';
		if (divClass != "") txt += ' class="' + divClass + '"';
		txt += '>' + divHTML + '</div>';
		document.writeln(txt)
	}
  }
}

//add IE popup offset (look in BPB?)
function launch(fileName) {
window.open(fileName,'_blank',',menubar=1,toolbar=1,status=0,resizable=0,location=0,scrollbars=1,width=500,height=450,screenX=50,screenY=50')
}

