
 

function swapImage(imgPath){
	 document.hotelImage.src=imgPath;
	 imgCurrent = imgPath;
}
 
 

function setCSC(city,state,country) {
	if (city != "") {
	document.hotavailbox.city.value='';
	document.hotavailbox.city.value=city;
	document.hotavailbox.stateProvince.value=state;
	document.hotavailbox.country.value=country;
	}
}

     function popupServiceFee()
     {
         window.open('servicefee.htm', '_blank','height=300,width=350,status=yes,scrollbars=yes,toolbar=no');
		 return false;   
     }   
     function openWindowPopup(url,height,width)
     {
         window.open(url, '_blank','height='+height+',width='+width+',status=yes,scrollbars=yes,toolbar=no');
		 return false;   
     }   
 function hidePanel(panelID,imageID){        
            var panel = document.getElementById(panelID);            
            var image = document.getElementById(imageID);
            if (image.alt == "rolUp"){                                
                image.src = "images/triangle_08.jpg";
                image.style.width="10px";
                image.style.height="7px";
                //panel.style.visibility = "hidden";
                //panel.style.height = "0px";    
                panel.style.display="none";
                image.alt = "rolDown";
            }else{                
                image.src = "images/triangle_07.jpg";
                image.style.width="7px";
                image.style.height="10px";
                panel.style.display="";
                image.alt="rolUp";
            }            
        }
         function hideDiv(panelID)
         {        
            var panel = document.getElementById(panelID);            
            if ((panel) && (panel.style.display == "none"))
              panel.style.display = "block";
            else
              panel.style.display = "none";
        }
        function resize(){
            document.getElementById("contentTable").style.width = (screen.availWidth-310)+"px";
        }       
        function showSignUpForm()
        {            
            var browser=navigator.appName;
            var b_version=navigator.appVersion;
            var version=parseFloat(b_version);
            
            document.getElementById('searchFormWrap').style.marginTop = "200px";                        
            document.getElementById('signUpFormWrap').style.visibility = "visible";                        
            if ((browser=="Microsoft Internet Explorer") && (version < 7)){                
                document.getElementById('signUpFormWrap').style.marginLeft = "-140px";                        
            }
        }           
        function pullEmailToTextArea(checkBoxId,textAreaID){
            var myTableRow = document.getElementById(checkBoxId);
            var email = document.getElementById(checkBoxId).cells[2].innerHTML;
            var textArea = document.getElementById(textAreaID);
            textArea.value += email;                                      
        }  
        function hide(elementID){                        
            var element = document.getElementById(elementID);                        
            element.style.visibility = "hidden";            
        }                    
 
