﻿function clearcookie(name)
{
  document.cookie = name + "=; path=/; expires=Fri, 02-Jan-1970 00:00:00 GMT";
}

function setcookie(name, value, hours)
{
  var expire = "";
  if(typeof hours == "number") {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape (value) + expire;
}

function adjust_ifrm_size()
{
  var a=parent.document.getElementsByTagName("iframe");
  for(var b=0;b<a.length;b++)
  {
    if(document.location.href.indexOf(a[b].src)>=0)
    {
      if(document.all)
        a[b].style.height=document.body.scrollHeight;
      else
        a[b].style.height=a[b].contentDocument.body.offsetHeight+"px";
    }
  }
}

function getPage(url)
{
  var a;
  if(window.ActiveXObject)
    a=new ActiveXObject("Microsoft.XMLHTTP");
  else
    a=new XMLHttpRequest;
  a.open("GET",url,false);
  try
  {
    if(window.ActiveXObject)
      a.send();
    else
      a.send(null);
    return a.responseText;
  }
  catch(c){return "";}
}

function sysonload()
{
  if(typeof AdjustParentSize=="boolean"&&AdjustParentSize)
  {
    try
    {
      adjust_ifrm_size();
    }
    catch(a){}
  }
  if(typeof useronload=="function") useronload();
}

if(window.addEventListener)window.addEventListener("load",sysonload,false);
else if(window.attachEvent)window.attachEvent("onload",sysonload);
else window.onload=sysonload



var s_sid=65520,st_dominio=4,cimg=334,cwi=112,che=62;
