   var pup;
   var win_num=1;
   function ShowPopup(URL,w,h,xpos,ypos){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=720,height=430,left = 250,top = 134');   
      }
      else{
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }
   
   function ShowPopupWin(URL,w,h, win_name){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=720,height=430,left = 175,top = 134');   
      }
      else{
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width='+w+',height='+h+',left = 100,top = 100');
      }
   }

   function check_cancel() {
      window.close();   
   }
   
   function hello() {
      alert("Hello");
   }
   

function showLayerAlt(object){
   if (document.getElementById && document.getElementById(object) != null){
         node = document.getElementById(object).style.visibility='visible';
   }
   else if (document.layers && document.layers[object] != null){
        document.layers[object].visibility = 'visible';
   }
   else if (document.all){
        document.all[object].style.visibility = 'visible';
   }
}

function hideLayer(object){
   if (document.getElementById && document.getElementById(object) != null){
         node = document.getElementById(object).style.visibility='hidden';
   }
   else if (document.layers && document.layers[object] != null){
        document.layers[object].visibility = 'hidden';
   }
   else if (document.all){
        document.all[object].style.visibility = 'hidden';
   }
}
