  /* Przeniesione z kodu procedury */
  
  
  
                YAHOO.namespace("instr");
                var instrHeadKomunikat; 
                var slownHeadKomunikat; 
                function initInstr() {
                  
                        YAHOO.instr.instruction = new YAHOO.widget.SimpleDialog("instruction", { width:"600px",
                                                                                              visible:false, 
                                                                                              constraintoviewport:true,
                                                                                              draggable:true } );
                        YAHOO.instr.instruction.setHeader(instrHeadKomunikat); 
                        YAHOO.instr.instruction.setBody('<center><img src="/prolib/img/ajax-loader-gray.gif" width="16" height="16" border="0" alt="ajax-loader" title="ajax-loader"></center>');
                        YAHOO.instr.instruction.setFooter('Max Elektronik SA');
                        YAHOO.instr.instruction.render();
    
                  }
                  
                  var callbackInstr = { 
                    success : function(o) { 
                      YAHOO.instr.instruction.setBody(o.responseText); 
                      YAHOO.instr.instruction.show(); 
                    
                    }, 

                    failure : function(o) { 
                      YAHOO.instr.instruction.setBody("CONNECTION FAILED!"); 
                      YAHOO.instr.instruction.show(); 
                   
                    } 
                    }; /* end callback */

             

                function WysInstr(cIdIdxWysz,cKodjezyka,cIdParmEncIn) {
                  var idval = ""; 
                  if (document.getElementById("IdSzIdx" + cIdIdxWysz)) { 
                   idval = document.getElementById("IdSzIdx" + cIdIdxWysz).value;
                  }; 
                  YAHOO.instr.instruction.setBody('<center><img src="/prolib/img/ajax-loader-gray.gif" width="16" height="16" border="0" alt="ajax-loader" title="ajax-loader"></center>');
                  YAHOO.instr.instruction.show(); 
                  var conn = YAHOO.util.Connect.asyncRequest("GET", "wo_indinst.p?ID1=" + cIdParmEncIn + '&ln=' + cKodjezyka  + '&Ind=' + idval , callbackInstr); 
                  
                } 
                
                
                
/* Słowniki */                
                
    YAHOO.namespace("slowniki"); 
    var cIdIdxWyszSl = ""; 

    function initSlownik() { 
      
        YAHOO.slowniki.slownikpnl = new YAHOO.widget.Panel("slownikpnl", { width:"800px", 
                                                                                     visible:false,
                                                                                     modal:true,
                                                                                     constraintoviewport:true } ); 
        YAHOO.slowniki.slownikpnl.setHeader(slownHeadKomunikat);
        YAHOO.slowniki.slownikpnl.setBody('<center><img src="/prolib/img/ajax-loader-gray.gif" width="16" height="16" border="0" alt="ajax-loader" title="ajax-loader"></center>');
        YAHOO.slowniki.slownikpnl.setFooter('Max Elektronik SA');
        YAHOO.slowniki.slownikpnl.render();
        
      } 
      

    var callbackSlowniki ={ 
          customevents:{ 
              onStart:function(eventType, args) {
                     YAHOO.slowniki.slownikpnl.setBody('<center><img src="/prolib/img/ajax-loader-gray.gif" width="16" height="16" border="0" alt="ajax-loader" title="ajax-loader"></center>');
              },
             onSuccess : function(eventType, args) { 
                      YAHOO.slowniki.slownikpnl.setBody(args[0].responseText); 
                      
                    },  
              onFailure : function(eventType, args) { 
                      YAHOO.slowniki.slownikpnl.setBody("CONNECTION FAILED!"); 
                      YAHOO.slowniki.slownikpnl.show(); 
                     
                } 
       }      
       
    };

             
    function WysSlownik(cId_in,cKodjezyka,cIdParmEncIn) {
      var idval = ""; 
      if (document.getElementById("IdSzIdx" + cId_in)) { 
        idval = document.getElementById("IdSzIdx" + cId_in).value; 
      }; 
      cIdIdxWyszSl = cId_in; 
      var conn = YAHOO.util.Connect.asyncRequest("POST", 'wo_slm21.p?ID1=' + sessionID1 + '&ln=' + sessionCKodJezyka  + '&Ind=' + idval, callbackSlowniki); 
      YAHOO.slowniki.slownikpnl.show();
    }
 
    /*
      Function: SzukWSlow
    */
    function SzukWSlow(cId_in) {
      /* DG - dodalem */
      var formObject = document.getElementById('IdFrmSlowPrez');  
      YAHOO.util.Connect.setForm(formObject);
      /* <<<< */  

      /* DG - zmienilem */
      var conn = YAHOO.util.Connect.asyncRequest("POST", "wo_slm21.p?ID1=" + sessionID1 + 
                                                         '&ln=' + sessionCKodJezyka  + 
                                                         '&Ind=' + cId_in, callbackSlowniki);                                                     
    } 

    function ZmienPgSlow(cIdx_in, cPg_in) { 
      /* DG - dodalem */
      var formObject = document.getElementById('IdFrmSlowPrez');  
      YAHOO.util.Connect.setForm(formObject);
      /* <<<< */  

      /* DG - zmienilem */
      var conn = YAHOO.util.Connect.asyncRequest("POST", "wo_slm21.p?ID1=" + sessionID1 + 
                                                         '&ln=' + sessionCKodJezyka  + 
                                                         '&Ind=' + cIdx_in + '&pg=' + cPg_in, callbackSlowniki);                                                    
    } 

    function GetValFromSlow(cValSlow_in) { 
      document.getElementById("IdTxtSz" + cIdIdxWyszSl).value = cValSlow_in; 
      YAHOO.slowniki.slownikpnl.setBody("");
      YAHOO.slowniki.slownikpnl.hide(); 
    } 
               
     
                

