// JScript source code
var PYRA_MINPOPUPHEIGHT = 650;

function Pyra_GetBrowserHeight() {
  if (window.innerHeight) return window.innerHeight;  /* most browsers */
  if (document.documentElement.clientHeight) return document.documentElement.clientHeight; /* IE6+ strict */
  if (document.body.clientHeight) return document.body.clientHeight; /* IE quirks */
  return PYRA_MINPOPUPHEIGHT;
}

function Openwindow(lw,name) {
  
 window.open(lw,name,'resizable=yes,scrollbars=yes,width=550,height='+Pyra_GetBrowserHeight());
}

function OpenEdit(lw) {

 window.open(lw,null,'resizable=yes,scrollbars=yes,width=550,height='+Pyra_GetBrowserHeight());

}
 
function OpenBannerEdit(lw) {

 window.open(lw,null,'resizable=yes,scrollbars=yes,width=575,height='+Pyra_GetBrowserHeight());

}

function OpenWindowWidth(lw,name,width) {
  
 window.open(lw,name,'resizable=yes,scrollbars=yes,width='+width+',height='+Pyra_GetBrowserHeight());
}


