function checkSession4(w) {
   w = w || 0;
   window.logow = 1;
   window.check = 0;

   if (w == 1)
   {
      document.location.href = O('url123').value;
      if(window.forumgohash)
      {
         forumgohash(O('url123').value);
      }
   }
   else
   {
      var p = new Date();
      var o = (p).getTime();

      if ($gl_loadedSes2)
      {
        O('sesC2').src = +o+',gif';
      }
      else
      {
        $gl_loadedSes2 = 1;
        $ob = document.createElement("DIV");
        document.body.appendChild($ob);
        $ob.innerHTML = '<IMG id=sesC2 src="' + o + ',gif" onLoad="decyduj2(this.width)" height=1>';
      }
   }
}