  function noop() {
    null;
  }
  
  // Global Variables
  var iPopTime = null;    //Timer for the popups
  var iTimeSetting = 3500;  //3.5 seconds
  var sWhichPopOn = "";   //Which Popup is showing
  var sWhichTD = "";      //The TD row containing the menu item on
  var bNS4 = 0;       //Is Netscape 4
  var bIE4 = 0;       //Is IE 4
  var bNewBrowser = 0;    //Is Browser > Version 4
  var sDocObj = "";     //To make common DOM
  var sStyleObj = "";     //To make common DOM
  var sLayerObj = "";     //To make common DOM
  // ID browser
  var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));
  if (parseInt(navigator.appVersion >= 5)) {bNewBrowser = 1}
  else {
    if (brow == "Netscape4")
      { bNS4 = 1; }
    else
      if (brow == "Microsoft Internet Explorer4") {bIE4 = 1;}
    }
  // Setup common DOM
  if (bNS4||bIE4||bNewBrowser) {
    sDocObj = (bNS4) ? 'document' : 'document.all';
    sStyleObj = (bNS4) ? '' : '.style';
    }
  // alert("Dom: " + sDocObj + '.Name' + sStyleObj + '.style_property');

  function hidePopUp() {
    eval(sDocObj + '.' + sWhichPopOn + sStyleObj + '.visibility="hidden"');
    sWhichPopOn = "";
    }

  function showPopup(sPopName) {
    eval(sDocObj + '.' + sPopName + sStyleObj + '.visibility="visible"');
    sWhichPopOn = sPopName;
    }

  function offPopUp() {
    if (iPopTime != null) { // Turn off Timer if on - may be off if timed out.
      clearTimeout(iPopTime);
      }
    if (sWhichPopOn != "") { // Hide menu if on
      hidePopUp();
      }
    if (sWhichTD != "") {
      setMenuOff();
      }
    }
  function onPopUp(sPopName) {
    offPopUp();   //Turn off any existing menu
    showPopup(sPopName);
    iPopTime = setTimeout("offPopUp()", iTimeSetting);    // Turn on timer
    }
    
  function setMenuOn(TDName) {
    sWhichTD = TDName;
    
      eval(sDocObj + '.' + TDName + sStyleObj);
    
    }
  
  function setMenuOff() {
    
      eval(sDocObj + '.' + sWhichTD + sStyleObj );
    
    sWhichTD = "";
    }

function GetCatByParentID(ID,ParentName){
  document.frmGetCats.txtParentCatID.value = ID;
  document.frmGetCats.txtParentCatName.value = ParentName;
  document.frmGetCats.submit ();
}

function GoSearch(){
  if (document.frmSearch.text.value == ""){
    alert ('Please enter search criteria');
  }
  else{
    document.frmSearch.submit();
  }
}

function GetLinksByParentID(ID){
  document.frmCategory.txtParentCatID.value  = ID;
  document.frmCategory.submit();
}

function GetNewsStory(ID){
  document.frmNews.txtNewsID.value = ID;
  document.frmNews.submit();
}

NS4 = document.layers;
if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;
}
 function reDo() {
 if (innerWidth != origWidth || innerHeight != origHeight) 
location.reload();
 }
 if (NS4) onresize = reDo;