function NoKeyEnter(e)
{
 if (!e) var e = window.event; 
 if (e && e.keyCode == 13) return false;
 return true;
}

function SetProgressBG(bgName)
{
  try {
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') {
      //Non-IE
      myWidth = window.innerWidth;
      myHeight = window.innerHeight;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
      //IE 4 compatible
      myWidth = document.body.clientWidth;
      myHeight = document.body.clientHeight;
    }
    
    var scrollTop = 0, scrollLeft = 0;
    if (document.documentElement && typeof (document.documentElement.scrollTop) == 'number') {
      //Non-IE
      scrollTop = document.documentElement.scrollTop;
      scrollLeft = document.documentElement.scrollLeft;
    }
    else {
      scrollTop = document.body.scrollTop;
      scrollLeft = document.body.scrollLeft;
    }

    var scrollHeight = 0, scrollWidth = 0;
    if (document.documentElement && typeof (document.documentElement.scrollTop) == 'number') {
      //Non-IE
      scrollHeight = document.documentElement.scrollHeight;
      scrollWidth = document.documentElement.scrollWidth;
    }
    else {
      scrollHeight = document.body.scrollHeight;
      scrollWidth = document.body.scrollWidth;
    }

    var b = document.getElementById(bgName);

    nw = Math.max(myWidth, scrollWidth);
    nh = Math.max(myHeight, scrollHeight);

    nw = nw + "px";
    nh = nh + "px";
    
    b.style.width = nw;
    b.style.height = nh;
  }
  catch (e) {
  }
}

function ResizeBody(bgName)
{
   SetProgressBG(bgName);
}
  
function OpenWind(url, name, w, h)
{
  window.open(url,name,"directories=0,location=0,menubar=0,status=0,resizable=1,toolbar=0,width="+ w+",height="+h+",scrollbars=1").focus();
}
