<!-- 
// JavaScript Document
function FlcPopupCalendar(curField, prevField, initYear, initMonth, markWeekday)
{
	var selDate = "";
	var regex = /(\d+)\.(\d+)\.(\d+)/;
	if ( initYear == undefined )
		initYear = ""
	if ( initMonth == undefined )
		initMonth = ""
	if ( markWeekday == undefined ) 
		markWeekday = ""
	window.flcDateField = document.getElementById(curField);

	
	if ( window.flcDateField.value != "" ) {
		var matches = regex.exec(window.flcDateField.value);
		if ( matches != null ) {
			initYear = matches[3];
			initMonth = matches[2];
			selDate = window.flcDateField.value;
		}
	} else if ( prevField != undefined ) {
		startField = document.getElementById(prevField);
		if ( startField != null && startField.value != "" ) {
			var matches = regex.exec(startField.value);
			if ( matches != null ) {
				initYear = matches[3];
				initMonth = matches[2];
				selDate = startField;
			}
		}		
	}
	var childWin = window.open("/falib/calendar_popup.asp?iy=" + initYear + "&im=" + initMonth + "&wd=" + markWeekday + "&seldate=" + selDate, "calWin", "height=215,width=240,resizeable=yes");
	
	childWin.focus();
}

//-->
