function calendarCallback(calendarObj)
{
    var date = calendarObj.date;
    var i;
    var calendarinfo;
    
    // TODO: this is very kludgy - 
    // in order to figure out which calendar we are, use the onClose handler.
    // That is, use the onClose handler of the calendarObj as an ID for the calendar!!
    // it works.... There must be a simpler way though.......
    for (i=0; i<document.jscalendars.length; i++)
    {
    		calendarinfo = document.jscalendars[i];
    		if (calendarObj.onClose == calendarinfo[0])
    		{
   			// grab the form elements
    			
     		var yearselect  = document.getElementById(calendarinfo[1]);
    			var monthselect = document.getElementById(calendarinfo[2]);
    			var dayselect   = document.getElementById(calendarinfo[3]);   			
	 
			// update each of them
		    updateSelect(yearselect, date.getFullYear());
		    updateSelect(monthselect, date.getMonth()+1);
		    updateSelect(dayselect, date.getDate());
		    
		    return;
		}
	}
}
/**
 * This function updates the dropdown date selection form elements
 * when the user chooses a date via the popup calendar widget.  
 * This function sets the drop-down ("<select>") form elements to the new date value.
 */
This function updates the dropdown date selection form elements
when the user chooses a date via the popup calendar widget.
This function sets the drop-down ("") form elements to the new date value.
This function updates the dropdown date selection form elements when the user chooses a date via the popup calendar widget . This function sets the drop - down ( " " ) form elements to the new date value .
function calendarCallback(calendarObj)
{
    var date = calendarObj.date;
    var i;
    var calendarinfo;
    for (i=0; i<document.jscalendars.length; i++)
    {
    		calendarinfo = document.jscalendars[i];
    		if (calendarObj.onClose == calendarinfo[0])
    		{
     		var yearselect  = document.getElementById(calendarinfo[1]);
    			var monthselect = document.getElementById(calendarinfo[2]);
    			var dayselect   = document.getElementById(calendarinfo[3]);   			
		    updateSelect(yearselect, date.getFullYear());
		    updateSelect(monthselect, date.getMonth()+1);
		    updateSelect(dayselect, date.getDate());
		    return;
		}
	}
}
function calendarCallback ( calendarObj ) { var date = calendarObj . date ; var i ; var calendarinfo ; for ( i = 0 ; i < document . jscalendars . length ; i ++ ) { calendarinfo = document . jscalendars [ i ] ; if ( calendarObj . onClose == calendarinfo [ 0 ] ) { var yearselect = document . getElementById ( calendarinfo [ 1 ] ) ; var monthselect = document . getElementById ( calendarinfo [ 2 ] ) ; var dayselect = document . getElementById ( calendarinfo [ 3 ] ) ; updateSelect ( yearselect , date . getFullYear ( ) ) ; updateSelect ( monthselect , date . getMonth ( ) + 1 ) ; updateSelect ( dayselect , date . getDate ( ) ) ; return ; } } }
This function updates the dropdown date selection form elements
 when the user chooses a date via the popup calendar widget.
This function updates the dropdown date selection form elements when the user chooses a date via the popup calendar widget .
// TODO: this is very kludgy -  // in order to figure out which calendar we are, use the onClose handler. // That is, use the onClose handler of the calendarObj as an ID for the calendar!! // it works.... There must be a simpler way though....... // grab the form elements // update each of them