// JavaScript Document

var SHwin = null;

function ShowHotelPopUp(nm, lg, alt) {

//See if window is already open; close if it is

if (SHwin) {

   SHwin.close()

}

//Now set up for new window

var params = "toolbar= 0,location= 0,directories= 0,status= 0,menubar= 0,scrollbars= 0,resizable= 0,copyhistory= 0,";

params += "width= " + lg + ",innerWidth= " + lg + ",";

params += "height= " + alt + ",innerHeight= " + alt;

if (window.screen) {

    var ah = screen.availHeight - 30;

    var aw = screen.availWidth - 10;

    var xc = (aw - lg) / 3;

    var yc = (ah - alt) / 3;

    params += ",left=" + xc + ",screenX=" + xc;

    params += ",top=" + yc + ",screenY=" + yc;

  }

SHwin = window.open(nm,"SHpopup",params);

}


