var now = new Date();
var cal1 = new CalendarPopup("testdiv1");
cal1.setCssPrefix("TEST");
cal1.setReturnFunction("setMultipleValues4");
function setMultipleValues4(y,m,d) {
	document.forms[0].DEP_MON.selectedIndex=m;
	for (var i=0; i<document.forms[0].DEP_DAY.options.length; i++) {
		if (document.forms[0].DEP_DAY.options[i].value==d) {
			document.forms[0].DEP_DAY.selectedIndex=i;
			}
		}
	}
	cal1.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
	
	
var cal2 = new CalendarPopup("testdiv1");
cal2.setCssPrefix("TEST");
cal2.setReturnFunction("setMultipleValues5");
function setMultipleValues5(y,m,d) {
	document.forms[0].RET_MON.selectedIndex=m;
	for (var i=0; i<document.forms[0].RET_DAY.options.length; i++) {
		if (document.forms[0].RET_DAY.options[i].value==d) {
			document.forms[0].RET_DAY.selectedIndex=i;
			}
		}
	}
	cal2.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
	
	
function getDateString(m_obj,d_obj) {
	var y = new Date();
	y = y.getFullYear()
	var m = m_obj.options[m_obj.selectedIndex].value;
	var d = d_obj.options[d_obj.selectedIndex].value;
	if (m=="") { return null; }
	if (d=="") { d=1; }
	return str= y+'-'+m+'-'+d;
	}
