// JavaScript Document

//------Display items on hover------
function HideContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "block";
}

// ------End -------

//------Validate Availability Selector -----
function validate(thisForm) 
	{		
		if (thisForm.text1.value.length <= 0)
		{
			alert('Please enter a check-in date.');
			thisForm.text1.select();
			thisForm.text1.focus();
			return false;
		}
		
		if (thisForm.text2.value.length <= 0)
		{
			alert('Please enter the number of nights you wish to stay.');
			thisForm.text2.select();
			thisForm.text2.focus();
			return false;
		}
		
		if (thisForm.text3.value.length <= 0)
		{
			alert('Please enter the number of guests.');
			thisForm.text3.select();
			thisForm.text3.focus();
			return false;
		}

}



