//	var propertyID = '1380';
	var brand = 'Westin';
	var requestedChainCode = 'WI';
	var requestedAffiliationCode = 'WI';
//	var langID = '1033';
//	var langCode = 'en_US';
	var successPath = 'http://www.starwoodhotels.com/westin/search/ratelist.html';	


  var aLoginFormArgs = new Array();
  aLoginFormArgs[0] = new Array("FormName","login");
  aLoginFormArgs[1] = new Array("FormAction","http://www.starwoodhotels.com/westin/account/verify_login.html");
  aLoginFormArgs[2] = new Array("returnURL",window.location.href);
  function LoginForm_Submit()
  {
      location.href = ISS_FS_ReturnFormGet(aLoginFormArgs);
      //alert(ISS_FS_ReturnFormGet(aLoginFormArgs));
  }
		function ISS_FS_ReturnFormGet(aFormArgs, siteLoc)
		{
			//alert('here->' + aFormArgs.length); 
			var sArgs = '';
			for (var aNum = 2; aNum < aFormArgs.length; aNum++)
			{   
			    var sThisArgName = aFormArgs[aNum][0];
			    var sThisArgValue = aFormArgs[aNum][1];
				sArgs = sArgs + sThisArgName + "=" + sThisArgValue + "&";
				//alert(sArgs);
			}
			sArgs = sArgs + "flashContent=nonflash&" + siteLoc;
			return aFormArgs[1][1] + "?" + sArgs;
		}
		 function openBrWindow(theURL,winName,features) {
        window.open(theURL,winName,features);
      }
      
  function popup(content,popName,popWidth,popHeight,popLeftLoc,popTopLoc) {
    var win = window.open(content,popName,'width='+popWidth+',height='+popHeight+',screenX='+popLeftLoc+',screenY='+popTopLoc+',left='+popLeftLoc+',top='+popTopLoc+',toolbar=no,menubar=no,directories=no,location=no,status=no,scrollbars=yes,resizable=no');
    win.focus();
  }      
     
