
function ShowCalendar(cal, parentname, year, month, day) 
{
    var parent = document.getElementById(parentname);
    // hide week numbers
    cal.weekNumbers = false;
    cal.setDateFormat('%b %d, %Y');
//			cal.showsTime = true;
//			cal.time24=false;
    var setdate = new Date(year, month, day);
    // this call must be the last as it might use data initialized above; if
    // we specify a parent, as opposite to the "showCalendar" function above,
    // then we create a flat calendar -- not popup.  Hidden, though, but...
    cal.create(parent);
    cal.setDate(setdate);
    // ... we can show it here.
    cal.show();
}

/*----------------------------------------------------------------------
 * dateChanged
 *--------------------------------------------------------------------*/
function dateChanged(calendar, viewer, date) 
{
    viewer.innerHTML = date;
}





