function ustaw(form,wartosc,nr_rzedu){
        
        // deklaracja nazw  wartosci wwszystkich pol typu option
        var tab_opis = new Array();
        tab_opis["flat"] = "Flat.........";      
        tab_opis["corner"] = "Corner";  
        tab_opis["classicsmall"] = "Classic Small";
        tab_opis["10011"] = "10011......";      
        tab_opis["10012"] = "10012";        
        tab_opis["10013"] = "10013";                          
        tab_opis["10014"] = "10014";
        tab_opis["10016"] = "10016";      
        tab_opis["10017"] = "10017";        
        tab_opis["10018"] = "10018";                          
        tab_opis["10019"] = "10019";
        tab_opis["10022"] = "10022";      
        tab_opis["10033"] = "10033";        
        tab_opis["10036"] = "10036";                          
        tab_opis["classicbig"] = "Classic Big";                
        tab_opis["travina"] = "Travin A";
        tab_opis["travinb"] = "Travin B";
        tab_opis["travin"] = "Travin.......";
        tab_opis["rockstone"] = "Rock Stone";
        tab_opis["6021"] = "6021";
        tab_opis["6023"] = "6023........";
        tab_opis["villex"] = "Villex....";
        tab_opis["light"] = "Light";
        tab_opis["dark"] = "Dark.....";
        tab_opis["yellow"] = "Yellow.....";                
        tab_opis["green"] = "Green";
        tab_opis["brown"] = "Brown......";       
        tab_opis["2011"] = "2011........";
        tab_opis["2013"] = "2013";
        tab_opis["2014"] = "2014";
        tab_opis["2016"] = "2016";
        tab_opis["2017"] = "2017";
        tab_opis["2018"] = "2018";
        tab_opis["2019"] = "2019";
        tab_opis["roma"] = "Roma......";
        tab_opis["gray"] = "Gray......";
        tab_opis["riverstone"] = "River Stone";
        tab_opis["malaga"] = "Malaga....";  
        tab_opis["villa"] = "Villa........";
        tab_opis["porta"] = "Porta.......";
        tab_opis["modena"] = "Modena...";
        tab_opis["rustic"] = "Rustic";
        tab_opis["cream"] = "Cream...";
        tab_opis["verona"] = "Verona";
        tab_opis["brick"] = "Brick.......";
        tab_opis["sand"] = "Sand";
        tab_opis["campana"] = "Campana";
        tab_opis["graphite"] = "Graphite";
        tab_opis["beige"] = "Beige.......";
        tab_opis["antica"] = "Antica";
        tab_opis["sagitarius"] = "Sagitarius";
        tab_opis["gracje"] = "Gracje";
        tab_opis["moldcorner"] = "Mold Corner";
        tab_opis["moldtop"] = "Mold Top";
        tab_opis["moldmiddle"] = "Mold Middle";
        tab_opis["moldbottom"] = "Mold Bottom";
        tab_opis["decor"] = "Decor";
        tab_opis["arizona"] = "Arizona";
        tab_opis["landhouse"] = "Landhouse";
        tab_opis["white"] = "White";
        tab_opis["nevada"] = "Nevada";
        tab_opis["carmel"] = "Carmel";
        tab_opis["country"] = "Country";
        tab_opis["01"] = "01.........";
        tab_opis["16"] = "16";
        tab_opis["22"] = "22";
        tab_opis["sahara"] = "Sahara";
        tab_opis["portina"] = "Portina";
        tab_opis["milano"] = "Milano";
                                                         
        var tab_new = new Array();
        tab_new["classicsmall"] = new Array("10011","10012","10013","10014","10016","10017","10018","10019","10022","10033","10036","mix1","mix2");
        tab_new["classicbig"] = new Array("10011","10012","10013","10014","10016","10017","10018","10019","10022","10033","10036","mix1","mix2");
        tab_new["travina"] = new Array("travin");
        tab_new["travinb"] = new Array("travin");
        tab_new["rockstone"] = new Array("6021","6023");
        tab_new["villex"] = new Array("light","dark");
        tab_new["padwa"] = new Array("yellow","green","brown");
        tab_new["portina"] = new Array("carmel","sahara");
        tab_new["vera"] = new Array("2011","2013","2014","2016","2017","2018","2019");
        tab_new["roma"] = new Array("brown","gray","yellow","graphite","carmel","sahara");
        tab_new["riverstone"] = new Array("yellow","gray");
        tab_new["malaga"] = new Array("01","16","22");
        tab_new["villa"] = new Array("villa");
        tab_new["porta"] = new Array("porta");
        tab_new["modena"] = new Array("modena");
        tab_new["rustic"] = new Array("cream","gray");
        tab_new["verona"] = new Array("brick","sand");
        tab_new["campana"] = new Array("cream","brown");
        tab_new["antica"] = new Array("beige");
        tab_new["sagitarius"] = new Array("beige");
        tab_new["gracje"] = new Array("beige");
        tab_new["moldcorner"] = new Array("beige");
        tab_new["moldtop"] = new Array("beige");
        tab_new["moldmiddle"] = new Array("beige");
        tab_new["moldbottom"] = new Array("beige");
        tab_new["decor"] = new Array("beige");
        tab_new["arizona"] = new Array("dark","light");
        tab_new["landhouse"] = new Array("cream","sand","white");
        tab_new["nevada"] = new Array("country","light","carmel","gray");
        tab_new["milano"] = new Array("sahara","carmel");

         var tab_new1 = new Array();
        tab_new1["classicsmall"] = new Array("flat","corner");
        tab_new1["classicbig"] = new Array("flat","corner");
        tab_new1["travina"] = new Array("flat","corner");
        tab_new1["travinb"] = new Array("flat","corner");
        tab_new1["rockstone"] = new Array("flat","corner");
        tab_new1["villex"] = new Array("flat","corner");
        tab_new1["padwa"] = new Array("flat","corner");
        tab_new1["portina"] = new Array("flat","corner");
        tab_new1["vera"] = new Array("flat");
        tab_new1["roma"] = new Array("flat","corner");
        tab_new1["riverstone"] = new Array("flat","corner");
        tab_new1["malaga"] = new Array("flat");
        tab_new1["villa"] = new Array("flat");
        tab_new1["porta"] = new Array("flat");
        tab_new1["modena"] = new Array("flat","corner");
        tab_new1["rustic"] = new Array("flat","corner");
        tab_new1["verona"] = new Array("flat");
        tab_new1["campana"] = new Array("flat","corner");
        tab_new1["antica"] = new Array("flat");
        tab_new1["sagitarius"] = new Array("flat");
        tab_new1["gracje"] = new Array("flat");
        tab_new1["moldcorner"] = new Array("corner");
        tab_new1["moldtop"] = new Array("flat");
        tab_new1["moldmiddle"] = new Array("flat");
        tab_new1["moldbottom"] = new Array("flat");
        tab_new1["decor"] = new Array("flat");
        tab_new1["arizona"] = new Array("flat","corner");
        tab_new1["landhouse"] = new Array("flat","corner");
        tab_new1["nevada"] = new Array("flat","corner");
        tab_new1["milano"] = new Array("flat","corner");
                
        var suwaki = new Array();
        suwaki[1] = form.elements[nr_rzedu*5];
        suwaki[2] = form.elements[nr_rzedu*5+1];
        suwaki[3] = form.elements[nr_rzedu*5+2];

                  while(suwaki[2].length > 0){
                 k = suwaki[2].length -1;
                 suwaki[2].options[k] = null;
               }
                 while(suwaki[3].length > 0){
                 k = suwaki[3].length -1;
                 suwaki[3].options[k] = null;
               }
     if(wartosc.length != 0)
     {        
        nazwa = new Option('','');
      suwaki[2].options[0] = nazwa;
        for(i=0;i<tab_new[wartosc].length;i++){
              nazwa = new Option(tab_opis[tab_new[wartosc][i]],tab_new[wartosc][i]);
               suwaki[2].options[(i+1)] = nazwa;
        }
                
        nazwa = new Option('','');
        suwaki[3].options[0] = nazwa;
       
        for(i=0;i<tab_new1[wartosc].length;i++)
                {
                nazwa = new Option(tab_opis[tab_new1[wartosc][i]],tab_new1[wartosc][i]);
                suwaki[3].options[(i+1)] = nazwa;
                }
       }
      else
          {
                 while(suwaki[2].length > 0){
                 k = suwaki[2].length -1;
                 suwaki[2].options[k] = null;
               }
                 while(suwaki[3].length > 0){
                 k = suwaki[3].length -1;
                 suwaki[3].options[k] = null;
               }

          }
}
