<!-- $Id: sidebar.inc,v 1.16 2005/03/30 17:02:14 tirvin Exp jcieply $ -->

function check_display(Selection,linkvalue) {
	IDvalue = document.getElementById(Selection);	
	LINKvalue = document.getElementById(linkvalue);	

	if (IDvalue.style.display == "none") {
		IDvalue.style.display="block";
		LINKvalue.innerHTML = "-";
	} else {
		IDvalue.style.display="none";
		LINKvalue.innerHTML = "+";
	}
}

function open_YYYMMMDD_calendar(field_name) {
	var the_date= new Date();
	var the_month=the_date.getMonth();
	var the_year=the_date.getYear();
	if (the_year < 1000) the_year += 1900; // Netscape kludge
	windowURL = "/library/YYYMMDD_Calendar.php?" + the_month + "," + the_year + "," + field_name;
	windowName = 'calendar';
	windowFeatures = 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0, copyhistory=yes, width=300, height=200';
	newWindow = window.open( windowURL, windowName, windowFeatures );
	newWindow.focus();
}