function popup2(url, width, height, scrollable)
{ if(scrollable){scbars = 1;} else{scbars = 0;} var nomargin; if(scrollable == 2){ nomargin = true; scbars = 0; }
  if(url == "ecap"){ url="http://www.secure-res.com/emgr/csemail.asp?ID="+width; width=400; height = 455;}
  if(url == "srlogo"){ width = 445; height = 455; url="http://www.hotelwebsitedesign.com/secureres/srpopup/"}
  if(url == "stf"){ if(height==1){height=80;} if(!height){height=0;} url="http://www.secure-res.com/emgr/stf/sendpage.asp?id="+width+"&pg="+escape(location.href); width = 560; height += 490;   }
  var wopt = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+ scbars +",resizable=0,width="+width+",height="+height+",top="+(screen.height/2-height/2)+",left="+(screen.width/2 - width/2);
  if(nomargin){ newwin=window.open("","",wopt);	newwin.document.write("<html><head><style>body{margin:0}</style></head><body><img src='"+ url +"'></body></html>");  }
  else { newwin=window.open(url,"popup",wopt); }			
  newwin.focus(); };

function MM_openBrWindow(theURL,winName,features) 
{   window.open(theURL,winName,features); }

function addToFavorites()
{
	if (window.external)
	{ window.external.AddFavorite(urlAddress,pageName); }
	else
	{ alert("Sorry! Your browser doesn't support this function."); }
}

function popup(url) {
emailWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width=400,height=500');
self.name = "mainWin"; }

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);
}
