   ns4 = (document.layers)||(navigator.userAgent.indexOf("Netscape6") != -1);
   ie4 = (document.all);
   ver4 = (ns4 || ie4);
   ie5 = (ie4 && navigator.appVersion.indexOf("5.")!=-1);
   mac = (navigator.appVersion.indexOf("Mac") != -1);
   show = (ns4 || (ie4 && !mac) || (ie5 && mac));

   function newImage(arg) {
       if (document.images) {
           rslt = new Image();
           rslt.src = arg;
           return rslt;
       }
   }
   

function win(fileName) {
     myFloater = window.open('','myWindow','scrollbars=no,status=no,width=300,height=475')
     myFloater.location.href = fileName;
}

   function changeImages() {
       if (document.images && (preloadFlag == true)) {
           for (var i=0; i<changeImages.arguments.length; i+=2) {
               document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
           }
       }
   }
   function resize(size) {
       if (ie4) {
               resize1.width=size;
               resize2.width=size;
       }
       if (ns4) {
               document["resize1"].width=size;
               document["resize2"].width=size;
       }
   }
   function openWindow(url, w, h) {
       var winl = (screen.width - w) / 2;
       var wint = (screen.height - h) / 2;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable';
       popupWin = window.open(url, 'new_page', winprops);
       if (parseInt(navigator.appVersion) >= 4) { popupWin.window.focus();}
   }

   function SetFocus () {
       if (document.forms.length > 0)
           {
           if (document.forms(0).length > 0)
               {
               if (document.forms(0).item(0).type!="hidden")
                   {
                 if (document.forms(0).item(0).disabled=false)
                      {
                      document.forms(0).item(0).focus()
                      }
                   }
               }
           }
   }