function calWriteCalendars(calFr, calTo)
{
    if (calFr == calTo) { calTo = null; }
    if ((calFr != null) && (calTo != null)) {

        /* bind calendars */
        calFr.setNextCalendar(calTo);
        calTo.setPriorCalendar(calFr);

        /* draw calendars */
        var expandFr = !calFr.drawDivBox;
        var fade     = false;
        calFr.setExpanded(expandFr, fade);      // show expanded
        calTo.setExpanded(false   , fade);      // show collapsed

        /* reset dimensions (initial calendar draw) */
        calResetDimensions(calFr, calTo);

    } else
    if (calFr != null) {

        /* draw single "From" calendar */
        var expand = !calFr.drawDivBox;
        var fade   = false;
        calFr.setExpanded(expand, fade);

    } else
    if (calTo != null) {

        /* draw single "To" calendar */
        var expand = !calTo.drawDivBox;
        var fade   = false;
        calTo.setExpanded(expand, fade);

    }
}
/**
*** Bind From/To calendars and write their html into the page
*** (used only to initially draw calendars)
**/
Bind From/To calendars and write their html into the page
(used only to initially draw calendars)
Bind From / To calendars and write their html into the page ( used only to initially draw calendars )
function calWriteCalendars(calFr, calTo)
{
    if (calFr == calTo) { calTo = null; }
    if ((calFr != null) && (calTo != null)) {
        calFr.setNextCalendar(calTo);
        calTo.setPriorCalendar(calFr);
        var expandFr = !calFr.drawDivBox;
        var fade     = false;
        calFr.setExpanded(expandFr, fade);      
        calTo.setExpanded(false   , fade);      
        calResetDimensions(calFr, calTo);
    } else
    if (calFr != null) {
        var expand = !calFr.drawDivBox;
        var fade   = false;
        calFr.setExpanded(expand, fade);
    } else
    if (calTo != null) {
        var expand = !calTo.drawDivBox;
        var fade   = false;
        calTo.setExpanded(expand, fade);
    }
}
function calWriteCalendars ( calFr , calTo ) { if ( calFr == calTo ) { calTo = null ; } if ( ( calFr != null ) && ( calTo != null ) ) { calFr . setNextCalendar ( calTo ) ; calTo . setPriorCalendar ( calFr ) ; var expandFr = ! calFr . drawDivBox ; var fade = false ; calFr . setExpanded ( expandFr , fade ) ; calTo . setExpanded ( false , fade ) ; calResetDimensions ( calFr , calTo ) ; } else if ( calFr != null ) { var expand = ! calFr . drawDivBox ; var fade = false ; calFr . setExpanded ( expand , fade ) ; } else if ( calTo != null ) { var expand = ! calTo . drawDivBox ; var fade = false ; calTo . setExpanded ( expand , fade ) ; } }
Bind From/To calendars and write their html into the page
(used only to initially draw calendars)
Bind From / To calendars and write their html into the page ( used only to initially draw calendars )
/* bind calendars */ /* draw calendars */ // show expanded // show collapsed /* reset dimensions (initial calendar draw) */ /* draw single "From" calendar */ /* draw single "To" calendar */