              var last_shown;
              var last_highlight;
              var last_highlight_name;


                 function ClassChanger(step,id) {
                   old_li=$('li_'+id).className;
                   //alert(id+"   -   ");
                   if (old_li=="out") {
                    $('li_'+id).className="in";
                    Changer(step,id);
                   }
                   else {
                     $('li_'+id).className="out";
                     $('div_'+id).innerHTML="";
                   }
                  }


       function Show(id) {
                    old_st=$('last_'+id).className;
                    if (old_st=="last") {
                     $('last_'+id).className="active";
                     $('lastspan_'+id).className="red_bg";
                     if ($('lastspan_'+last_shown)) {
                      $('lastspan_'+last_shown).className="";
                     }
                      last_shown=id;
                      //ShowTitle(cat_id,id);
                      ShowAll(id);
                     // ShowList(model,modif,id);
                    }
                    else {
                      $('last_'+id).className="last";
                      $('lastspan_'+id).className="";
                    }
       }


              function Changer(step,id) {
                var request=new Ajax.Request("daewoo/ajax/daewoo_update.php",
                   {
                     parameters: "id"+step+"="+id+"&clientid="+ClientId,
                     onComplete: function(response) {
                             if ($('div_'+id)) {
                               $('div_'+id).innerHTML=response.responseText;
                              // alert(xmlobj.responseText);
                             }
                     }
                   }
                );
              }

              function ShowAll(id) {
                      Loading(1);
                       url2 = "daewoo/ajax/daewoo_update.php";
                       //alert('URL='+url2);
                       var request=new Ajax.Request(url2,
                                     {
                                       parameters: "step=pict&iden="+id+"&clientid="+ClientId,
                                       onComplete: function(response) {
                                             $('main_picture').innerHTML=response.responseText;
                                             document.location.href = "#mainimage";
                                             Loading(0);
                                       }
                                     }
                                  );
               }



             function HighLight(id) {
              numb=1;
              old_highlight=$('listrow_'+id+'_'+numb).className;
              if ((old_highlight=="parts_white") || (old_highlight=="parts_even")) {
                for(numb=1;numb<=30;numb++) {
                 if ($('listrow_'+id+'_'+numb)) {
                  $('listrow_'+id+'_'+numb).className="light";
                 }
                }
                for(numb=1;numb<=30;numb++) {
                 if ($('listrow_'+last_highlight+'_'+numb)) {
                  $('listrow_'+last_highlight+'_'+numb).className=last_highlight_name;
                }
               }
              }
              last_highlight=id;
              last_highlight_name=old_highlight;
              document.location.href = "#anchor"+id;
            }
            function ShowTitle() {}


             function CatalogUpdate(step,id,id2,id3) {
               Loading(1);
                var request=new Ajax.Request("daewoo/ajax/tecdoc_update.php",
                   {
                     parameters: "step="+step+"&id="+id+"&id2="+id2+"&id3="+id3+"&clientid="+ClientId,
                     onComplete: function(response) {
                             if ($('main_catalog_div')) {
                              Loading(0);
                               $('main_catalog_div').innerHTML=response.responseText;
                              // alert(xmlobj.responseText);
                             }
                     }
                   }
                );
              }
