   ///////////////
   function Space(CountSpace){
              
            promstr = "";
            for(i = 0; i < CountSpace; i++)
                promstr += "&nbsp;";
              
            return promstr;                     
   }  
   
   function login_form(nickval,err_msg,curcheck){
                   
            promstr = ("<Table Align=center CellPadding=0 CellSpacing=0 Border=0 class=txt>"+
                       "<form action=\"?\" method=\"post\">"+
                       "<input type=\"hidden\" name=\"check\" value=\""+curcheck+"\">"+
                       "<input type=\"hidden\" name=\"login_user\" value=\"1\">"+
                       "<Tr><Td><b>логин</b>"+Space(2)+
                       "<Td><input type=text name=nick value=\""+nickval+"\" size=10 class=inputtxt>"+Space(5)+
                       "<b>пароль</b>"+Space(2)+
                       "<input type=password name=pwd value=\"\" size=10 class=inputtxt>"+Space(5)+"</Td><Td>"+
                       "<input type=image name=submit src=\"/images/but_submit.gif\" Width=86 Height=25 Border=0 Alt=\"отправить\">"+
                       "</Td></Tr>"+
                       "</form>"+
                       "</Table>");
            if(err_msg) promstr = "<br><P Align=center style=\"font-family:verdana;color:#CC0000\"><b>Ошибка авторизации! Попробуйте еще раз!</b></P>"+promstr;                    
            document.write(promstr);
   }
         
   function reset_form(NameF){
            eval("document.forms."+NameF+".reset();");
            return false;
   }
   
   function WindowOpen(url,ww,hh){
            left1 = (screen.availWidth - ww)/2;
            top1 = (screen.availHeight - hh)/2;
              
            eval("window.open('"+url+"', 'win', 'top='+top1+',left='+left1+',toolbar=no,scrollbars=yes,directories=no,menubar=no,resizable=yes,width="+ww+",height="+hh+"');");
   }
   ///////////////
   
   function left_nav_start(NameR, AltR){
            document.write('<Table Width=183 CellPadding=0 CellSpacing=0 Border=0 BackGround="/images/'+NameR+'_bg.gif">');
            document.write('<Tr><Td ColSpan=2 BackGround="/images/'+NameR+'_bg0.gif" Align=right><Img Src="/images/'+NameR+'.gif" Border=0 Width=183 Height=27 Alt="'+AltR+'"></Td></Tr>');
            document.write('<Tr><Td RowSpan=2 Width=162><Img Src="/images/pixel.gif" Border=0 Width=162 Height=7><br>');
            
   }
   function left_nav_end(NameR){
            document.write('</Td><Td BackGround="/images/'+NameR+'_bg1.gif" Width=21 VAlign=top><Img Src="/images/'+NameR+'_cuttop.gif" Width=21 Height=16 Border=0 Alt=""></Td>');
            document.write('</Tr>');
            document.write('<Tr><Td Valign=bottom RowSpan=2><Img Src="/images/'+NameR+'_cutbot.gif" Border=0 Width=21 Height=21></Td></Tr>');
            document.write('<Tr Height=10><Td Valign=bottom><Img Src="/images/'+NameR+'_bot.gif" Border=0 Width=100% Height=10></Td></Tr>');
            document.write('</Table><br>');
   }
   
   function right_nav_start(NameR, AltR){
            document.write('<Table Width=120 CellPadding=0 CellSpacing=0 Border=0 BackGround="/images/'+NameR+'_bg.gif">');
            document.write('<Tr><Td ColSpan=2><Img Src="/images/'+NameR+'.gif" Border=0 Width=120 Height=37 Alt="'+AltR+'"></Td></Tr>');
            document.write('<Tr><Td Width=11 VAlign=top><Img Src="/images/'+NameR+'_cuttop.gif" Width=11 Height=14 Border=0 Alt=""></Td><Td RowSpan=2>');
   
   }
   function right_nav_end(NameR){
            document.write('</Td></Tr>');
            document.write('<Tr><Td Valign=bottom RowSpan=2><Img Src="/images/'+NameR+'_cutbot.gif" Border=0 Width=11 Height=23></Td></Tr>');
            document.write('<Tr Height=14><Td Valign=bottom><Img Src="/images/'+NameR+'_bot.gif" Border=0 Width=109 Height=14></Td></Tr>');
            document.write('</Table><br>');            
   }
   
   function start_list(IdList){
            if(IdList == 2) document.write('<Tr><Td><Img Src="/images/pixel.gif" Border=0 Alt=""></Td><Td>');
            document.write('<Table CellPadding=0 CellSpacing=0 Border=0 class=list'+IdList+'>');
   }
   function end_list(IdList){
            document.write('</Table>');
            if(IdList == 2) document.write('</Td></Tr>');
   }
   
   function dev_list(ListTxt,IdDev){            
            document.write('<Tr VAlign=top><Td><Img Src="/images/bullet2-3.gif" Border=0 Alt="" Align=left VSpace=0 HSpace=0>');            
            document.write('<A class=A1 Href="?id_develop='+IdDev+'">'+ListTxt+'</A></Td></Tr>');            
   }
   
   function vitrina_title(NameGif,NameTxt){
            document.write("<Table Align=center CellPadding=0 CellSpacing=0 Border=0 Width=100% class=txt Height=40 BackGround=\"/images/v_"+NameGif+"_bg.gif\">"+
                           "<Tr><Td><Img Src=\"/images/v_"+NameGif+"_title.gif\" Border=0 Alt=\""+NameTxt+"\" Align=left HSpace=0 VSpace=0><Img Src=\"/images/v_"+NameGif+"_bullet.gif\" Border=0 Alt=\""+NameTxt+"\" Align=right HSpace=0 VSpace=0></Td></Tr>"+
                           "</Table>");
   }
   
   function vitrina_news(NewsDate,NewsTitle,NewsTxt){
            document.write("<Table Align=center CellPadding=1 CellSpacing=0 Border=0 Width=100% class=txt>"+
                           "<Tr><Td><span class=newsdate>"+NewsDate+"</span> <span class=newstitle>"+NewsTitle+"</span></Td></Tr>"+
                           "<Tr><Td>"+NewsTxt+"</Td></Tr>"+
                           "</Table>");
   }
   
   function vitrina_goods(VitrinaName,GoodsName,ImgName,ShortDesc){
            document.write("<Td Width=33%>");
            ramka_start(VitrinaName);
            document.write("<span class=tit3shop>"+GoodsName+"</span><br><Img Src=\""+ImgName+"\" Border=0 Alt=\""+GoodsName+"\" VSpace=10><br><span class=txt><small>"+ShortDesc+"</small></span>");
            ramka_end();
            document.write("</Td>");
   }
   
   function ramka_start(RamkaName){
            document.write("<Table CellPadding=0 CellSpacing=0 Border=0 Width=100% Height=100%>"+
                           "<Tr Height=17>"+
                           "<Td ColSpan=3 BackGround=\"/images/vs_bg_title.gif\"><Img Src=\"/images/vs_bullet.gif\" Border=0 Width=11 Height=17 Alt=\"\" Align=left VSpace=0 HSpace=0><Img Src=\"/images/vs_cut_rt.gif\" Border=0 Width=11 Height=17 Alt=\"\" Align=right VSpace=0 HSpace=0><Table CellPadding=0 CellSpacing=0 Border=0><Tr><Td BgColor=#FFFFFF class=list1><small>"+RamkaName+"</small></Td><Td><Img Src=\"/images/vs_end_title.gif\" Border=0 Width=5 Height=17 Alt=\"\"></Td></Tr></Table></Td>"+                                 
                           "</Tr>"+
                           "<Tr VAlign=top>"+
                           "<Td Width=11 BackGround=\"/images/vs_bg_l.gif\"><Img Src=\"/images/pixel.gif\" Border=0 Alt=\"\" Width=1 Height=1></Td>"+
                           "<Td Align=center>");
   }                        
   
   function ramka_end(){
            document.write("</Td>"+
                           "<Td Width=11 BackGround=\"/images/vs_bg_r.gif\"><Img Src=\"/images/pixel.gif\" Border=0 Alt=\"\" Width=1 Height=1></Td>"+
                           "</Tr>"+
                           "<Tr Height=9>"+
                           "<Td ColSpan=3 BackGround=\"/images/vs_bg_b.gif\">"+
                           "<Img Src=\"/images/vs_cut_lb.gif\" Border=0 Width=11 Height=9 Alt=\"\" Align=left HSpace=0 VSpace=0>"+
                           "<Img Src=\"/images/vs_cut_rb.gif\" Border=0 Width=11 Height=9 Alt=\"\" Align=right HSpace=0 VSpace=0>"+
                           "</Td>"+
                           "</Tr>"+
                           "</Table>");
   }
