<!--
//<![CDATA[
function divHeight() {
	if (window.navigator.userAgent.toLowerCase().match(/msie 6.0/) && !(window.navigator.userAgent.toLowerCase().match(/opera/))) {
		if(document.all["content"].offsetHeight){
			contentY=document.all["content"].offsetHeight;
		} else if(document.all["content"].style.pixelHeight){
			contentY=document.all["content"].style.pixelHeight;
		} 
		document.getElementById("container").style.height = (contentY-125)+"px"
		 setTimeout("updateHeight()", 500)
	}
}
function external_site(url) {
	window.open(url);
	return false;
}
<?php if ($_GET['act'] == "reserve") { ?>
function phone_change(now,then) {
	if (document.getElementById('phone'+now).value.length == '3') { document.getElementById('phone'+then).focus(); }
}
function phone_clear(a,b,c) {
	document.getElementById('phone'+a).value = '';
	document.getElementById('phone'+b).value = '';
	document.getElementById('phone'+c).value = '';
	document.getElementById('phone'+a).focus();
}
<?php } if ($_GET['act'] == "gallery") { ?>
function photo_gallery(what) {
	document.getElementById('gallery').src = '<?php echo "{$global['server']}/images/"; ?>'+what;
}
<?php } if ($_GET['act'] == "admin") { ?>
function reserveData(rid,first,last,phone) {
	window.location="<?php echo $global['server']; ?>/sources/admin/reserve_print.php?rid="+rid;
	alert("Please contact "+first+" "+last+" as soon as possible at "+phone+" letting them know the good news.");
}
<?php } ?>
//]]>
-->
