function PopUp(url)
{
	window.open(url,'popup','width=430,height=540,scrollbars=yes,resizable=yes');
}

function PopUpSmall(url,winWidth,winHeight)
{	
	var leftpos;
	var toppos;
	//if (screen) {
		leftpos = screen.width - winWidth - 50;
		toppos = screen.height - winHeight - 100;
	//}
	window.open(url,'popup','width='+winWidth+',height='+winHeight+',scrollbars=yes,resizable=yes,left='+leftpos+',top='+toppos);
}

function hideme(object)
{
	object.style.display = 'none';
}

function loadhttpsurl() {
	var httpsurl;
	var currenturl;
	
	if (window.location.href.toLowerCase().substring(0,25) == 'http://tickets.filoli.org') {
		currenturl = window.location.href;
		httpsurl = currenturl.replace('http://tickets.filoli.org','https://tickets.filoli.org');					
		window.location.href = httpsurl;
	}

}
