function calendar(formName, elementName)  {
	var selectedDate = new Date((eval("document."+formName+"."+elementName+".value")));
	if (isNaN(selectedDate)) selectedDate = new Date();
	return(
		openWindow(
			"/popup/calendar.asp?form=" +
			formName+
			"&field="+
			elementName+
			"&y="+selectedDate.getFullYear()+
			"&m="+(selectedDate.getMonth()+1)+
			"&d="+selectedDate.getDate(),
		240, 200)
	);
}
