function print_shcala(num,width1,width2,name,nameb,namee,color,design,lang)
{
//    alert('test');
    document.write('<tr>');    
    document.write('<td rowspan="3" valign="middle" class="sch_t" align="left" width="25%">'+nameb+' </td>');
    document.write('<td height="30px">');
    document.write('<table cellspacing="0" cellpadding="0" border="0">');    
    document.write('<tr>');    
    document.write('<td id="ubegin'+num+'"></td>');
    document.write('<td id="umiddle'+num+'"><img name="arrowd'+num+'" src=""></td>');
    document.write('<td id="uend'+num+'"></td>');
    document.write('</tr>');        
    document.write('</table>');        
    document.write('</td>');        
    document.write('<td rowspan="3" valign="middle" class="sch_t" align="right" width="25%"> '+namee+'</td>');    
    document.write('</tr>');
    document.write('<tr>');
//    document.write('<td class="sch_t" align="right">'+nameb+' - </td>');    
    document.write('<td valign="middle" width="338px" height="10px" align="center">');    
    document.write('<table cellspacing="0" cellpadding="0" width="320px" align="center">');
    document.write('<tr height="10px">');    
    document.write('<td width="40px" class="'+color+'_sc1"></td>');
    document.write('<td width="40px" class="'+color+'_sc2"></td>');
    document.write('<td width="160px" class="'+color+'_sc3"></td>');
    document.write('<td width="40px" class="'+color+'_sc2"></td>');    
    document.write('<td width="40px" class="'+color+'_sc1"></td>');    
    document.write('</tr>');   
    document.write('</table>');     
    document.write('</td>');    
//    document.write('<td class="sch_t"> - '+namee+'</td>');        
    document.write('</tr>');
    if(width2)
    {
	document.write('<tr>');
//	document.write('<td>&nbsp;</td>');        
	document.write('<td>');
	document.write('<table cellspacing="0" cellpadding="0" border="0">');    
	document.write('<tr>');    	
	if( width2 == 1000000 )
	{	
	    document.write('<td><img src="'+design+'/ky4a.gif" width="320px"></td>');
	}
	else	
	{
	    document.write('<td id="dbegin'+num+'"></td>');
	    document.write('<td id="dmiddle'+num+'"><img name="arrowu'+num+'" src=""></td>');
	    document.write('<td id="dend'+num+'"></td>');
	}    
	document.write('</tr>');        
	document.write('</table>');        
	document.write('</td>');        	
//	document.write('<td>&nbsp;</td>');        
	document.write('</tr>');
    }	
    theObj = eval("document.getElementById(\'ubegin"+num+"\')");
    theImg = eval("document.arrowd"+num);    
//    theObj.style.width = width1+"px";
    postfix = '';
    if( lang == 'russian' )postfix='_ru';
    if( lang == 'german' )postfix='_de';
    if( lang == 'italian' )postfix='_it';
    if(width1<160)
    {
	theImg.src = "/static/images" + "/lu"+postfix+".gif";    
//	theObj.style.width = (width1-9)+"px";	
	theObj.style.width = (width1)+"px";	
    }	
    else	
    {
	theImg.src = "static/images" + "/ru"+postfix+".gif";        
	theObj.style.width = (width1-63)+"px";	
    }	
    if(width2 && (width2<1000000))
    {
	theObj1 = eval("document.getElementById(\'dbegin"+num+"\')");
//	theObj1.style.width = width2+"px";    
	theImg1 = eval("document.arrowu"+num);        
//	alert(width2);
	if(width2<160)
	{    
	    theImg1.src = "static/images" + "/ld"+postfix+".gif"; 
//	    theObj1.style.width = (width2-9)+"px";    	           
	    theObj1.style.width = (width2)+"px";    	           
	}    
	else
	{
	    theImg1.src = "static/images" + "/rd"+postfix+".gif";	
	    theObj1.style.width = (width2-63)+"px";    	    
	}    
    }	    
}
