// JavaScript Document

// This clears 'search' from the search box on the onClick event
function stopError() {return true;}

function clearSearch(el) {
	if (el.defaultValue==el.value) el.value = ""
}

//used to popup bbbonline verification
function Pcertify() 
{
popupWin = window.open('http://www.bbbonline.org/cks.asp?id=8112000055415', 'Participant','location=yes,scrollbars=yes,width=450,height=300'); 
window.name = 'opener';
} 

function openWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function pegasusPopup(url) {
	window.open ("http://www.netbooker.com/booker/AppLogic+booker.hotel.book.AvailReq?brand=LZ&pid=" + url, "reservations", "width=740,height=580,scrollbars=yes,resizable=yes");
}



function playVideo(url) {
	window.open (url, "video", "width=380,height=300,scrollbars=no,resizable=no");
}


function updateForumPasses()
	{
	var qtyPasses  = document.getElementById('qtyPasses');
	var costPasses  = document.getElementById('costPasses');
	var passes = document.getElementById('PASSES');
	var pq = passes.value;
	if(isNaN(pq))	{alert('That is not a valid number');pq = 1; passes.value = 1;}
	if(pq==0)		{pq = 1; passes.value = 1;}
	if(pq==1){var pp=495;} else {var pp=295;}
	var price = pq*pp;
	qtyPasses.innerHTML = pq;
	costPasses.innerHTML = price;
	
	}
	
	
if(document.all){
 theObjects = document.getElementsByTagName("object");
 for (var i = 0; i < theObjects.length; i++) {
  theObjects[i].outerHTML = theObjects[i].outerHTML;
  theObjects[i].style.display = 'block';
    }
}

// Language Jump Menu
function jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}