  // open a login window
  function Login () {
    var features = "toolbar=no, resizable, dependent, height=300, width=400, left=50, top=50";
    var orderwindow = window.open ("order.asp?action=normal", "order", features);
    orderwindow.focus();
  }

  var helpWindow = null;

  // sethelp subject for advanced form if focus is on Field or if Field is changed 
  function  setHelp(subject) {
    //window.parent.help.location.href = "help.asp?subject="+subject; 
    helpWindow = window.open("help.asp?subject=" + subject,"zoom","width=300,height=400,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,left=500,top=100");
    helpWindow.focus();
  }

  // open Help window by clicking on listbutton 
  function  winList(scanID,caption) {
    document.forms['searchform'].action.value  = 'list';
    document.forms['searchform'].scanID.value  = scanID;
    document.forms['searchform'].caption.value = caption;
    document.forms['searchform'].submit();
  }

  // open Help window by clicking on fieldname 
  function  winHelp(subject) {
    if (helpWindow || helpWindow != null) {helpWindow.close();}
    var helpWindowName   = "zoom";
    var helpWindowAtribs = "width=370,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,left=500,top=100";
    helpWindow           = window.open("help.aspx?subject=" + subject,helpWindowName,helpWindowAtribs);
    helpWindow.focus();
  }

  // open Zoom/thesaurus window in detail presentation 
  function  winZoom(url, term) {
    if (term != "") {url = url.replace(term,escape(term));}
    if (helpWindow || helpWindow != null) {helpWindow.close();}
    var helpWindowName   = "zoom";
    var helpWindowAtribs = "width=370,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,left=500,top=100"
    helpWindow           = window.open(url,helpWindowName,helpWindowAtribs);
    helpWindow.focus();
  }

  // functionality to retrieve height of search frame 
  var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&
  parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
  var isMinIE4 = (document.all) ? 1 : 0;
  var isMinIE5 = (isMinIE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;

  function getWindowWidth() {

    if (isMinNS4)
      return ( window.innerHeight);
    if (isMinIE4)
      return (document.body.clientHeight);
    return -1;
  }

  function go() {
    // do nothing;
  }
  
  function checkUnCheck(val) {
    src = document.images[val].src;
    imgStr = src.split("/");
    img = imgStr[imgStr.length-1];
    if (img == 'checked.gif') {
      document.images[val].src = '../images/unChecked.gif';
    } 
    else { 
      document.images[val].src = '../images/checked.gif';
    }
  }
        function getHeight() {
        if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
          //IE 6+ in 'standards compliant mode'
          myHeight = document.documentElement.clientHeight;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
          //IE 4 compatible
          myHeight = document.body.clientHeight;
        } else if( typeof( window.innerWidth ) == 'number' ) {
          //Non-IE
          myHeight = window.innerHeight;
        } 
        return (myHeight-190) 
      }       
        //document.body.clientHeight-200
        //document.elements['introArea'].height=myHeight-200;
      function getRefToDiv(divID,oDoc) {
	      if( document.getElementById ) { return document.getElementById(divID); }
	      if( document.all ) { return document.all[divID]; }
	      if( !oDoc ) { oDoc = document; }
	      if( document.layers ) {
		      if( oDoc.layers[divID] ) {
			      return oDoc.layers[divID];
		      } else {
			      for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				      y = getRefToDiv(divID,oDoc.layers[x].document);
			      }
			      return y;
		      }
	      }
	      return false;
      }
        //x=getRefToDiv('introArea');
        //var noPx = document.childNodes ? 'px' : '';
        //x.resizeTo(100, 150)
      function rSDiv(oName) {
        var newHeight = getHeight()
	      var myReference = getRefToDiv(oName), noPx = document.childNodes ? 'px' : 0;
	      if( myReference.style ) { myReference = myReference.style; }
	      if( myReference.resizeTo ) { myReference.resizeTo( newWidth, newHeight ); }
	      //myReference.width = newWidth + noPx; myReference.pixelWidth = newWidth;
	      myReference.height = newHeight + noPx; myReference.pixelHeight = newHeight;
      }

