
     function start_block(nameBlock) {
              wwbb = 70;
              
              document.write("<Table Border=0 CellPadding=0 CellSpacing=0 Width=100%><Tr><Td Align=right>"+
                             "<Table Border=0 Align=right CellPadding=0 CellSpacing=1 Width=200 BgColor=#5786A8><Tr><Td>");
              document.write("<Table Border=0 CellPadding=2 CellSpacing=0 Width=100% class=topmenu>"+
                             "<Tr>"+
                             "<Td BgColor=#1E2E3A Width="+wwbb+" Align=center>"+nameBlock+"</Td>"+
                             "<Td BgColor=#3F6682>");
              
     }
     
     function end_block() {
     
              document.write("</Td>"+
                             "</Tr></Table>");
              document.write("</Td>"+
                             "</Tr></Table>");
              document.write("</Td>"+
                             "</Tr></Table>");
     }
     
     function tr_textblock(idBlock,bgBlock,topbotBlock){
     
              document.write("<Tr>"+
                             "<Td Width=6><Img Src='images/block"+idBlock+"_"+topbotBlock+"_left.gif' Border=0></Td>"+
                             "<Td BgColor=#"+bgBlock+"><Img Src='images/pixel.gif' Height=6 Border=0></Td>"+
                             "<Td Width=6><Img Src='images/block"+idBlock+"_"+topbotBlock+"_right.gif' Border=0></Td>"+
                             "</Tr>");
                          
     }
     
     var addtextblock ="";
     function start_textblock(idBlock,nameBlock){
     
              document.write("<Img Src='images/pixel.gif' Height=20 Border=0 Width=250><br>"+
                             "<Table Width=100% CellPadding=5 CellSpacing=1 Border=0 BgColor=#3C5C72><Tr><Td BgColor=#273F4F>");
              
              document.write("<Table Width=100% Border=0 CellPadding=0 CellSpacing=0 class=maintext>");
              
              tr_textblock(idBlock,"3F6682","top");
              document.write("<Tr BgColor=#3F6682><Td></Td><Td style='padding-bottom:5px'><b style='font-family:tahoma'>"+nameBlock+"</b></Td><Td></Td></Tr>");
              
              if(addtextblock != "")
              document.write("<Tr BgColor=#344F63><Td></Td><Td>"+addtextblock+"</Td><Td></Td></Tr>");
              
              document.write("<Tr BgColor=#344F63><Td></Td><Td Valign=top style='padding-top:5px'>");
              addtextblock = "";
     }
     
     function end_textblock(idBlock){

              document.write("</Td><Td></Td></Tr>");
              
              tr_textblock(idBlock,"344F63","bottom");
              
              document.write("</Table>");
              
              document.write("</Td></Tr></Table>");
     }
     
     function att_textblock(typeWin,linkUrl,nameTxt,imgName,imgWW,imgHH){
              
              if(typeWin){
                 linkUrl = 'LookWin("'+linkUrl+'",640,480)';
              } else {
                 linkUrl = 'document.location="'+linkUrl+'"';
              }
              
              promstr = ("<Table CellPadding=0 CellSpacing=0 Border=0 Align=right Height=16 style='cursor:hand' onClick='"+linkUrl+"'><Tr>"+
                         "<Td class=smalltextmain>"+nameTxt+"</Td>"+
                         "<Td Align=right Width=25><Img Src='images/"+imgName+"' Border=0 Width="+imgWW+" Height="+imgHH+"></Td>"+
                         "</Tr></Table>");
                         
              return promstr;           
     }
     
     
     function attstat_textblock(nameLook,valLook,nameRate,valRate,nameRes,valRes,urlRes){
              
              nameRes = "<A Href=\"javascript:LookWin('"+urlRes+"',640,480)\" style='color:#33CC00'>"+nameRes+"</A>";
              
              imgTop = "";
              if(valRate == 100) imgTop = "<Img Src=\"images/otz/top100.gif\" Width=38 Height=16 Border=0>";
              if(valRate >= 80 & valRate < 100) imgTop = "<Img Src=\"images/otz/top80.gif\" Width=38 Height=16 Border=0>";
       
              promstr = ("<Table Border=0 style='font-size:11px' BgColor=#2C4354><Tr>"+
                         "<Td>"+imgTop+"<Td>"+
                         "<Td><code style='color:#FF6600'>"+nameLook+": <b>"+valLook+"</b></code></Td>"+
                         "<Td>&nbsp;&nbsp;&nbsp;&nbsp;</Td>"+
                         "<Td><code style='color:#00CCFF'>"+nameRate+": <b>"+valRate+"%</b></code></Td>"+
                         "<Td>&nbsp;&nbsp;&nbsp;&nbsp;</Td>"+
                         "<Td><code style='color:#33CC00'>"+nameRes+": <b>"+valRes+"</b></code></Td>"+
                         "</Tr></Table>");
      
              return promstr;
     }