	/*function qJump(offer) {
  locationJump = "http://butler.stratospherehotel.com/?offer=" + offer;
  windowCaption = "Stratosphere - " + offer;
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = offer;
          strEvent = "event1";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function mailJump(email1,confirm1) {
  locationJump = "http://BUTLER.stratospherehotel.com/?email=" + email1 + "&confirmation=" + confirm1;
  windowCaption = "Stratosphere - " + email1;
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function reservationJump(daOffer,daDate,daNights,daAdults) {
  //locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/86279";
  locationJump = "https://www.reztrip.com/RezTripWeb/defaultSearchDisplay.do?propertyId=4259331";
  windowCaption = "Stratosphere Reservations";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "Main Nav";
          strEvent = "event1";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function lrgJump() {
  locationJump = "https://www.reztrip.com/RezTripWeb/defaultSearchDisplay.do?propertyId=4259331";
  windowCaption = "Stratosphere - Lowest Rate Guarantee";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "LowestRateGarantee";
          strEvent = "event1";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function resfootJump() {
  locationJump = "https://www.reztrip.com/RezTripWeb/defaultSearchDisplay.do?propertyId=4259331";
  windowCaption = "Stratosphere Reservations";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "FooterReservation";
          strEvent = "Reservation";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function ppdJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/87811";
  windowCaption = "Stratosphere - Perfect Package Deals";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "PerfectPackageDeals";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function bsJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/87812";
  windowCaption = "Stratosphere - Beauty Sleep";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "BeautySleep";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function GSPJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/90409";
  windowCaption = "Stratosphere - Get Some Play";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "GetSomePlay Package";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 function UHLJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/90410";
  windowCaption = "Stratosphere - Ultimate High Life";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "UltimateHighPackage";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
  
 function s31Jump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/87814";
  windowCaption = "Stratosphere - Non-Refundable Room Rate";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "d31RoomPackage";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
  
 function urJump() {
  locationJump = "http://BUTLER.stratospherehotel.com/?club=ULTIMATEREWARDS";
  windowCaption = "Stratosphere - Ultimate Rewards";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 
 function wed1Jump() {
  locationJump = "http://butler.stratospherehotel.com/?forms=y&type=weddings";
  windowCaption = "Stratosphere - Weddings Online Request for Information";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function banq1Jump() {
  locationJump = "http://butler.stratospherehotel.com/?forms=y&type=BanquetsEvents";
  windowCaption = "Stratosphere - Banquets Online Request for Information";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function meet1Jump() {
  locationJump = "http://butler.stratospherehotel.com/?forms=y&type=Meetings";
  windowCaption = "Stratosphere - Meetings Online Request for Information";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function group1Jump() {
  locationJump = "http://butler.stratospherehotel.com/?forms=y&type=GroupPrivateDining";
  windowCaption = "Stratosphere - Groups Online Request for Information";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }

  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
*/
function isBlank(s)
		{
			var len,k,flg;
			flg=true;
			if(s!=null)
			{
				len=s.length;
				for(k=0;k<len;k++)
				{
					if(s.substring(k,k+1) != " ")
					flg=false;
				}
			}
			return flg;
		}
		
		function validate_signup()
		{
			
			var emailaddressStr1 = window.document.frmEmail.emailaddress.value;
			if(isBlank(emailaddressStr1))
			{
				alert("Please enter E-Mail Address.");
				window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
				return false;
			}
			var emailaddressPat=/^(.+)@(.+)$/
			var specialChars="\\(\\)<>\\@%&,;:\\\\\\\"\\.\\[\\]"
			var validChars="\[^\\s" + specialChars + "\]"
			var quotedUser="(\"[^\"]*\")"
			var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
			var atom=validChars + '+'
			var word="(" + atom + "|" + quotedUser + ")"
			var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
			var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	
			var matchArray=emailaddressStr1.match(emailaddressPat);
			if (matchArray==null)
			{
				alert("Please enter valid E-Mail Address.");
				window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
				return false;
			}
			var user=matchArray[1]
			var domain=matchArray[2]
	
			if (user.match(userPat)==null)
			{
			    alert("Please enter valid E-Mail Address.");
			    window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
			    return false;
			}
	
			var IPArray=domain.match(ipDomainPat);
			if (IPArray!=null)
			{
				for (var i=1;i<=4;i++) 
				{
				    if (IPArray[i]>255) 
					{
				        alert("Please enter valid E-Mail Address.");
				       	window.document.frmEmail.emailaddress.value="";
						window.document.frmEmail.emailaddress.focus();
						return false;
				    }
			    }
			}
	
			var domainArray=domain.match(domainPat);
			if (domainArray==null)
			{
				alert("Please enter valid E-Mail Address.");
				window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
				return false;
			}
	
			var atomPat=new RegExp(atom,"g");
			var domArr=domain.match(atomPat);
			var len=domArr.length;
			if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3)
			{
				alert("Please enter valid E-Mail Address.");
				window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
				return false;
			}
			if (len<2)
			{
				var errStr="Please enter valid E-Mail Address.";
				alert(errStr);
				window.document.frmEmail.emailaddress.value="";
				window.document.frmEmail.emailaddress.focus();
				return false;
			}
			
		}
 function mailJump2()
 {
	 var strcheck = validate_signup();
	
 	if(strcheck != false)
 	{
		var mail=document.getElementById('emailaddress').value;
		var stremail;
  //locationJump = "http://butler.stratospherehotel.com/?emailsignup=show";
  locationJump = "http://dev.tigglobal.com/Annapolis_Marriott/email_form.cfm?emailsignup=show&stremail="+mail;
  windowCaption = "Email Signup";
  windowWidth = 450;
  windowHeight = 250;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  document.frmEmail.emailaddress.value="";
  } 
   
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 else{}
// alert("false");
 //return false;
 }


/*
 function xtrJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/89452";
  windowCaption = "Stratosphere - Extreme Thrills Package";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "xtremeThrillsPackage";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function fflingJump() {
  locationJump = "http://www.thayerinteractive.com/clickthru/clickthrough.rry/89451";
  windowCaption = "Stratosphere - Final Fling Package";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "finalflingPackage";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }

 function biteJump() {
  locationJump = "https://res.stratospherehotel.com/cgi-bin/lansaweb?procfun+netsls+netsls+tkt+funcparms+IOFRWW(A010):SHOW";
  windowCaption = "Stratosphere - Bite";
  windowWidth = 700;
  windowHeight = 750;
  if (screen.width == 800){
  windowWidth = 650;
  windowHeight = 350;
  }
  if (screen.width == 1024){
  windowWidth = 650;
  windowHeight = 500;
  }
          //omniture
          strText = "bite";
          strEvent = "event2";//Reservation
          var s=s_gi('thaystratosphere');s.linkTrackVars='prop1,eVar1,events';s.events=""+strEvent+"";s.prop1="Reservations - "+strText+"";s.eVar1="Reservations-  "+strText+"";s.tl(this,'o', "Reservations- "+strText+"");
  //omniture ends
  GB_showCenter(windowCaption,locationJump,windowHeight,windowWidth);
 }
 
 */
