var calStart = new CalendarPopup("CALDIV1");
calStart.showNavigationDropdowns();
calStart.setReturnFunction("setMultipleValues4");
calStart.setCssPrefix("calPopUp");
calStart.offsetX = 0;
calStart.offsetY = -150;
function setMultipleValues4(y,m,d) {
     document.forms[0].startYear.value=y;
     document.forms[0].startMonth.selectedIndex=m;
     for (var i=0; i<document.forms[0].startDay.options.length; i++) {
          if (document.forms[0].startDay.options[i].value==d) {
               document.forms[0].startDay.selectedIndex=i;
               }
          }
     }
var calEnd = new CalendarPopup("CALDIV2");
calEnd.showNavigationDropdowns();
calEnd.setReturnFunction("setMultipleValues5");
calEnd.setCssPrefix("calPopUp");
calEnd.offsetX = 0;
calEnd.offsetY = -150;
function setMultipleValues5(y,m,d) {
     document.forms[0].endYear.value=y;
     document.forms[0].endMonth.selectedIndex=m;
     for (var i=0; i<document.forms[0].endDay.options.length; i++) {
          if (document.forms[0].endDay.options[i].value==d) {
               document.forms[0].endDay.selectedIndex=i;
               }
          }
     }
function getDateString(y_obj,m_obj,d_obj) {
     var y = y_obj.options[y_obj.selectedIndex].value;
     var m = m_obj.options[m_obj.selectedIndex].value;
     var d = d_obj.options[d_obj.selectedIndex].value;
     if (y=="" || m=="") { return null; }
     if (d=="") { d=1; }
     return str= y+'-'+m+'-'+d;
     }

