
	function checkForm(guestBookForm) {

	chkflag = 0;

	if (formGuestBook.chkBox1.checked == 0 && formGuestBook.chkBox2.checked == 0) {
	alert("Selection error! You need to check \"Your mailing list\", or \"Your e-mail list\" (or both).");
	chkflag = 1;
	return false;
	}

	if (formGuestBook.chkBox1.checked == 1 && formGuestBook.fldName.value == "") {
	alert("You selected to be added to the Hexagon Players mailing list. You need to type your name in the \"Name\" box.");
	chkflag = 1;
	formGuestBook.fldName.focus();
	return false;
	}

	if (formGuestBook.chkBox1.checked == 1 && formGuestBook.fldAddr1.value == "") {
	alert("You selected to be added to the Hexagon Players mailing list. You need to type your address in the \"Address Line 1\" box.");
	chkflag = 1;
	formGuestBook.fldAddr1.focus();
	return false;
	}

	if (formGuestBook.chkBox1.checked == 1 && formGuestBook.fldCity.value == "") {
	alert("You selected to be added to the Hexagon Players mailing list. You need to type your city in the first \"City/State/ZIP\" box.");
	chkflag = 1;
	formGuestBook.fldCity.focus();
	return false;
	}

	if (formGuestBook.chkBox1.checked == 1 && formGuestBook.fldState.value == "") {
	alert("You selected to be added to the Hexagon Players mailing list. You need to type your two-character state code in the second \"City/State/ZIP\" box. For example, if you live in New Jersey, type \"NJ\" in this box.");
	chkflag = 1;
	formGuestBook.fldState.focus();
	return false;
	}

	if (formGuestBook.chkBox1.checked == 1 && formGuestBook.fldZipCode.value == "") {
	alert("You selected to be added to the Hexagon Players mailing list. You need to type your ZIP code in the third \"City/State/ZIP\" box.");
	chkflag = 1;
	formGuestBook.fldZipCode.focus();
	return false;
	}

	if (formGuestBook.chkBox2.checked == 1 && formGuestBook.fldEMail1.value == "") {
	alert("You selected to be added to the Hexagon Players e-mail list. You need to type your e-mail address in the \"E-Mail Address 1\" box. If you have a second e-mail address to add to the list, type that in the \"E-Mail Address 2\" box.");
	chkflag = 1;
	formGuestBook.fldEMail1.focus();
	return false;
	}

	if (formGuestBook.chkBox3.checked == 0 && formGuestBook.chkBox4.checked == 0 && formGuestBook.chkBox5.checked == 0) {
	alert("Selection error! You did not select what information you want to receive (Tickets on sale, Auditions/Casting, or Volunteering)");
	chkflag = 1;
	formGuestBook.focus();
	return false;
	}

	if ( chkflag == 0) { return true; }
}

function NoTicketOrder() {

	msgText = "";
	msgText += "No tickets on sale at this time.\n\n ";
	msgText += "The sale of tickets for our Spring production of 13 will be. ";
	msgText += "announced shortly. So, be sure to check back soon.";
	alert(msgText);

}

function ticketingClosed() {

	alertText = "";
	alertText += "Online ticketing for this performance is closed. To check ticket ";
	alertText += "availability for this performance, call 973-543-8770.";
	alert(alertText);

}


function loadSlideShow(filename) {

	window.open(filename, "winSlideShow", "width=500,height=350");

}

