function onAction( door )
    {
        _cur = -1;
        var action = getBtnLabel( door );
          // Highlight door icon
        actionDoor( door );
          // Change image
        var src = "images/doorOpening.gif" ;
        if ( action == "Close" ) {
            src = "images/doorClosing.gif" ;
        }
        setImage( door, src );

          // Pass the Action as a command, and the Door Id as a parameter.
        var arg = "&id=" + door ;
        ajaxSend( action, arg, onActionDone, door );
    }
/**
     * Send a command (via Ajax) using to perform action on door.
     * The desired action is pulled from the value of the button.
     */
Send a command (via Ajax) using to perform action on door.
The desired action is pulled from the value of the button.
Send a command ( via Ajax ) using to perform action on door . The desired action is pulled from the value of the button .
function onAction( door )
    {
        _cur = -1;
        var action = getBtnLabel( door );
        actionDoor( door );
        var src = "images/doorOpening.gif" ;
        if ( action == "Close" ) {
            src = "images/doorClosing.gif" ;
        }
        setImage( door, src );
        var arg = "&id=" + door ;
        ajaxSend( action, arg, onActionDone, door );
    }
function onAction ( door ) { _cur = - 1 ; var action = getBtnLabel ( door ) ; actionDoor ( door ) ; var src = "images/doorOpening.gif" ; if ( action == "Close" ) { src = "images/doorClosing.gif" ; } setImage ( door , src ) ; var arg = "&id=" + door ; ajaxSend ( action , arg , onActionDone , door ) ; }
Send a command (via Ajax) using to perform action on door.
Send a command ( via Ajax ) using to perform action on door .
// Highlight door icon
 // Change image
 // Pass the Action as a command, and the Door Id as a parameter.
