// This lib contains a javascript lib for microsoft IE > 5.5 

// -- OpenScrolledModalWindow --------------------------------------------------
// This function open a scrollable window
function OpenScrolledModalWindow(url)
{
  window.open(url,null,"resizable:yes;status:yes;scroll:yes;width:480px;height:360px");
}

// -- openWindow ---------------------------------------------------------------
// This function open a centered window
function openWindow(newUrl)
{
  var winSpecs = "";
  var width    = 640;
  var height   = 360;
  
  winSpecs  = "height=" + height + ","
            + "width="  + width  + ","
            + "scrollbars=no,"
            + "menubar=no,"
            + "resizable=no,"
            + "status=no";
  
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    winSpecs += "left=" + xc + ",screenX=" + xc +",";
    winSpecs += ",top=" + yc + ",screenY=" + yc +",";
  }
  
  win = window.open("", "winName", winSpecs);
  win.location.href = newUrl;
}
  
