   window.onload = function() {

   if (document.getElementById("wrap_table")) {

      var str_cookie = document.cookie;
      var str_cookie_2 = document.cookie;
      if(str_cookie.indexOf("!~")!=0) {
         var intS = str_cookie.indexOf("!~");
         var intE = str_cookie.indexOf("~!");
         var strPos = str_cookie.substring(intS+2,intE);
         // if (typeof strPos != 'undefined') {
         // if (document.getElementById("wrap_table") != null) {
            document.getElementById("wrap_table").scrollTop = strPos;
         // }
      }

      

      if(str_cookie_2.indexOf("#~")!=0) {
         var intS = str_cookie_2.indexOf("#~");
         var intE = str_cookie_2.indexOf("~#");
         var strPos_2 = str_cookie_2.substring(intS+2,intE);
         // document.write(strPos_2);
         if (strPos_2 != "0") {
         // if (typeof strPos_2 != 'undefined') {
         // if (document.getElementById("wrap_table") != null) {
            document.getElementById(strPos_2).style.backgroundColor = "#FFF090";
            // document.title = strPos_2;
         }
         // }
      }

   }

   }


   function set_div_position() {
      var intY = document.getElementById("wrap_table").scrollTop;
      document.getElementById("wrap_table").scrollTop = intY;
      document.cookie = "yPos=!~" + intY + "~!";
   }

   function set_div_position_at_zero() {
      document.cookie = "yPos=!~" + 0 + "~!";
      document.cookie = "cRow=#~" + 0 + "~#";
   }

   function set_id_position(current_id) {
      document.cookie = "cRow=#~" + current_id + "~#";
   }

   function bookmarksite(title, url){
      if (document.all)
         window.external.AddFavorite(url, title);
      else if (window.sidebar)
         window.sidebar.addPanel(title, url, "")
   }