function showHideBookVacationDivs(sObj)
{
	divFlights.style.display				= 'none';
	divHotels.style.display				= 'none';
	divPackages.style.display			= 'none';
	document.all[sObj].style.display		= 'inline';
}

function ShowDate(oDoc,cDate)
{
  window.open("/datepicker.asp?backf="+oDoc+"&#38;cDate="+cDate, "DateWindow", "resizable=no,width=300,height=210");
 }

 function ToggleBookingPopup(bShow) {
 	if (document.getElementById) {
 		document.getElementById("BookNowPopup").style.visibility = (bShow == true ? "visible" : "hidden");
 	}
 	else if (document.layers) {
 		document.layers["BookNowPopup"].visibility = (bShow == true ? "show" : "hide");
 	}
 	else if (document.all) {
 		document.all["BookNowPopup"].style.visibility = (bShow == true ? "visible" : "hidden");
 	}
 }

 $(document).ready(function () {
 	$('.content_frame_side').height($('.content_container').height() + 14);
 });

function SearchSubmit(SubmitURL)
{
  var LocalKeyword = $("#SearchText").val();
  if(LocalKeyword != "")
  {
    window.location = SubmitURL + "?IndexSearch=yes&KeywordSearch=true&Keyword=" + LocalKeyword;
  }
}

function SearchInput(SearchBox, Events, SubmitURL)
{
  var keycode;
  if(window.event)
  {
    keycode = window.event.keyCode;
  }
  else if (Events)
  {
    keycode = Events.which;
  }
  else
  {
    return true;
  }

  if(keycode == 13)
  {
    SearchSubmit(SubmitURL);
    return false;
  }
  else
  {
    return true;
  }
}


