function outputDate()
{
	if (navigator.appName.indexOf("Netscape") != -1)
	{
		fulldate = document.lastModified.split(" ");
		document.write("Updated: " + fulldate[1] + " " +
			fulldate[2] + " " + fulldate[3]);
	}
	else
	{
		date = document.lastModified.split(" ");
		document.write("Updated: " + date[0]);
	}	
}

function showNewNewsletter(doc, newsletterVersion, month)
{
	// first, see if we have any cookies
	var popupInfo = true;
	var allcookies = doc.cookie;
	var lastNewletterAvailble = "lastNewletterAvailble=";
	var pos = allcookies.indexOf(lastNewletterAvailble);
	if (pos != -1)
	{
		// we found a cookie, let's see if the value is the same or if
		// a new newsletter is available
		var start = pos + lastNewletterAvailble.length;
		var end = allcookies.indexOf(";", start);
		if (end == -1)
			end = allcookies.length;
		var value = allcookies.substring(start, end);
		value = unescape(value);
		if (value == newsletterVersion)
			popupInfo = false;
	}
	
	if (popupInfo)
		doc.write("The " + month + " addition of the newsletter is now available!!!");
	// OK, now set the cookie to the latest newsletter value
	var nextyear = new Date();
	nextyear.setFullYear(nextyear.getFullYear() + 1);
	doc.cookie = lastNewletterAvailble +  escape(newsletterVersion) + "; expires=" + nextyear.toGMTString();
}

function updateos0()
{
	window.document.interest.os0.value = "";
	if (window.document.interest.boardOfDirectors.checked)
		window.document.interest.os0.value += "Board Of Directors,";
	if (window.document.interest.hatcheryOperations.checked)
		window.document.interest.os0.value += "Hatchery Operations,";
	if (window.document.interest.stocking.checked)
		window.document.interest.os0.value += "Stocking,";
	if (window.document.interest.publicRelations.checked)
		window.document.interest.os0.value += "Public Relations,";
	if (window.document.interest.classroomIncubators.checked)
		window.document.interest.os0.value += "Classroom Incubators,";
	if (window.document.interest.fundraising.checked)
		window.document.interest.os0.value += "Fundraising,";
	if (window.document.interest.newsletter.checked)
		window.document.interest.os0.value += "Newsletter,";
	if (window.document.interest.hydropowerIssues.checked)
		window.document.interest.os0.value += "Hydropower Issues,";
	if (window.document.interest.legislation.checked)
		window.document.interest.os0.value += "Legislation,";
	if (window.document.interest.membership.checked)
		window.document.interest.os0.value += "Membership,";
	if (window.document.interest.eventsAndPrograms.checked)
		window.document.interest.os0.value += "Events And Programs,";
	var newLength = window.document.interest.os0.value.length - 1;
	var oldString = window.document.interest.os0.value;
	// now set interest value for each form
	var newString = oldString.substr(0, newLength);
	window.document.interest.os0.value = newString;
	
	window.document.individual.os0.value = newString;
	window.document.family.os0.value = newString;
	window.document.student.os0.value = newString;
	window.document.senior.os0.value = newString;
}
