if(top!=self)top.location=self.location;

function winOp(o){
  return window.open(o,"res","width=640,height=450,resizable=yes,scrollbars=yes,status=yes");
}

function img_open(url,h,w){
  if(window.imgWin && !imgWin.closed) imgWin.close();
  window.imgWin = window.open(url,'img_popup','height='+h+',width='+w);
}

function addEvent(obj, evType, fn){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, true);
    return true;
  } else if (obj.attachEvent){
    var r = obj.attachEvent("on"+evType, fn);
    return r;
  }
    return false;
}
function fullBody(){
    /*@cc_on return null ; @*/
  if((document.body.parentNode.clientHeight-70)>document.body.offsetHeight)
    document.body.style.height=(document.body.parentNode.clientHeight-70) + "px";
  else if(document.body.style.height)
    document.body.style.height="";
}

addEvent(window, "load", fullBody);
addEvent(window, "resize", fullBody);
