// JavaScript Document

var pageName = "The Wingate Inn at BWI Airport in Linthicum, MD";

function addToFavorites()
{ 
if (window.sidebar) {alert("Sorry! Your browser doesn't support this function.\nPress Ctrl+D to add site to bookmark list."); return;}
if (window.external) { window.external.AddFavorite(document.location.href + "?WT.cg_n=bookmarkreturn",pageName); return;}
else  { alert("Sorry! Your browser doesn't support this function.\nPress Ctrl+D to add site to bookmark list."); } }


// Send to a Friend Script
function popup(url, width, height, scrollable)
{ if(scrollable){scbars = 1;} else{scbars = 0;}
  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?pg="+location.href+"&id="+width; width = 560; height += 490;   }
  newwin=window.open(url,"popup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+ scbars +",resizable=0,width="+width+",height="+height); }

// Hidden E-mail Script
function generate_address( un, hn, sty, lnk ) {
        var atsign = "&#64;";
        var addr = un + atsign + hn;
        if(!lnk)
                        { document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          addr + "</a>");      }
                        else {
                        document.write( 
          "<" + "a" + " class=" + sty + " href=" + "mail" + "to:" + addr + ">" +
          lnk + "</a>");  }
}


var wmonths = ["Jan","Feb","Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; 

function do_opt(numopts,startnum,selnum)
{ if(!startnum && startnum != 0){startnum=1} 
  if(numopts == "mo"){ for (var xi=0; xi<wmonths.length; xi++) { document.write('<option value=' + (xi+1) + '>' + (wmonths[xi])); } }
  else { for (var xi=startnum; xi<=numopts; xi++) { sel=(selnum == xi)?" selected ":""; document.write('<option value=' + (xi) + sel + '>' + (xi) ); } }
}
