function notYet() {
	window.alert('Function not yet available.');
}

function printPage() {
	window.print();
}

function bookmarkPage() {
	if (window.external) {
		window.external.AddFavorite(self.location.href,document.title);
	} else {
		alert("Please add this page manually through your browsers bookmark / favorites menu.");
	}
}

function checkSearch() {
	elm=document.searchForm.searchText.value;
	//window.alert(elm);
	if (elm=="") {return false;}
}

function showContactDetails(ids) {
	idsArray=ids.split(",");
	for (i=0; i<idsArray.length; i++) {
		//window.alert(idsArray[i]);
		//window.alert('Make Display None - '+idsArray[i]);
		document.getElementById(idsArray[i]).style.display="none";
	}

	elm=document.contactForm.theSelect.value;
	//window.alert(elm);
	document.getElementById('General Inquiries').style.display="none";
	if (document.getElementById(elm).style.display=="none") {
		//window.alert('Make Display Inline - '+elm);
		document.getElementById(elm).style.display="inline";
	} else {
		//window.alert('Make Display None - '+elm);
		document.getElementById(elm).style.display="none";
	}
}

function checkContactForm() {
	error="false";
	if (error=="false" && document.contactForm.name.value.length<3) {window.alert("Please enter your name.");document.contactForm.name.focus();error="true";}
	
	phoneError="false";
	if (document.contactForm.phone.value.length<8) {phoneError="true";}
	
	emailError="false";
	if (document.contactForm.email.value.indexOf(".")<1 || document.contactForm.email.value.indexOf("@")<1) {emailError="true";}
	
	if (error=="false" && phoneError=="true" && emailError=="true") {
		window.alert("Please enter your phone number or email address.");document.contactForm.phone.focus();error="true";
	}
	if (error=="false" && document.contactForm.comments.value.length<5) {window.alert("Please enter a comment / query.");document.contactForm.comments.focus();error="true";}
	if (error=="false") {} else {return false;}
}

function calendarMonth() {
	current=document.theForm.theMonth.selectedIndex;
	current=document.theForm.theMonth.options[current].value;
	location.href="index.asp?section=Current-News&subsection=Calendar-Dates&theMonth="+current;
}
