//	script for juridcenter
	var out_dot  = new Image()
	var over_dot = new Image()
	out_dot.src = "Img/dot_white.gif"
	over_dot.src = "Img/dot_blue.gif"
	
	function Set_Tbl_Color()
	{
		var doc = document.all.tbl_tax.rows
		doc[0].bgColor = '#003a7b'
		doc[0].style.color = '#ffffff'
		for (var i=1; i<doc.length-1; i+=2)
		{
			doc[i].bgColor = '#eaeaea'
			doc[i+1].bgColor = '#fcfcfc'
		}
	}
	
	function Set_Active_Link(url)
{
	
	var str = new Array(10)
	var n=0
	//for (i=1; i<=10; i++)
	//{
	//	str[i] =  document.anchors[i].outerText
	//}
	file_name = url.substr(url.lastIndexOf('/')+1)
	
	switch(file_name)
	{
		case 'about.php':
			n=1;
			//Set_BG(document.all.tarif_tbl.rows, 1)
			
		break;
		case 'nauka.php':
			n=2;
			//Set_BG(document.all.tarif_tbl.rows, 1)
		break;
		case 'arb_tribunal.php':
			n=3;
			
			//Show_Back_Img();
		break;
		case 'press.php':
			n=4;
			//Set_BG(document.all.reg_tbl.rows, 0);
		break;
		case 'shop.php':
			n=5
			//Set_BG(document.all.co_loc_tbl.rows, 1);
		break;
		case 'audit.php':
			n=6;
			//Set_BG(document.all.banner_tbl.rows, 0)
		break;
		case 'realter.php':
			n=7;
		break;
		case 'perevod.php':
			n=8;
			//Set_BG(document.all.partner_reg_tbl.rows,0)
		break;
		case 'gb.php':
			n=9;
			//Set_BG(document.all.rikv_tbl.rows,0)
		break;
		case 'contacts_2.php':
			n=10;
			//Set_Plan(location.search,0)
			//Set_BG(document.all.nt_1_tbl.rows,0)
		break;
		case 'pril.php':
			Set_Tbl_Color();
		break;
	}
	if (n != 0)
	{	
		eval('str = document.all.td_anchor_'+ n +'.outerHTML')
		str_1 = str.substring(0, str.indexOf('<A'))
		str_2 = str.substring(str.indexOf('<IMG'), str.indexOf('onmouse'))
		str_3 = str.substring(str.lastIndexOf(')')+1, str.indexOf('</A>')) + '</TD>'
		all = str_1+str_2+str_3
		//alert (all);
		eval('document.all.td_anchor_'+ n +'.innerHTML = \'<nobr>\' + all +\'</nobr>\'' );
		eval('document.all.dot_'+ n +'.src = over_dot.src')
	}
	/*	
	if (file_name.indexOf('news_') != -1)
	{
		news_number = file_name.substr(file_name.lastIndexOf('.')-1,1)
		eval('txt = document.all.news_text_'+ news_number +'.outerHTML')
		eval('document.all.news_text_'+news_number+'.innerHTML = \'<b>\' + txt.substring(txt.indexOf(\'>\')+1, txt.indexOf(\'<A\')) + \'</b>\' + \'<img src=\"Img/phantom.gif\" alt=\"\" height=8px widhr=8px><br></nobr>\'')
	}
	*/
}
	
	function Over(n)
	{
	//alert(over_dot.src)
	 eval("document.images.dot_" + n + ".src = over_dot.src")
	}
	
	function Out(n)
	{
	 eval("document.images.dot_" + n + ".src = out_dot.src")
	}
	
	function View(num)
	{ 
	 var url="descr.php?num="+num;window.open(url,'Desc'+num,'width=620,height=355,scrollbars=yes');
	}
function checkGB()
{

if ((document.forms.myGB.name.value == '') || (document.forms.myGB.message.value == ''))
{
alert('Fill in required fields!');
}
else {
                document.forms.myGB.submit();
                }
}

function book_del(id){
   document.cookie='book['+id+']=;expires=Thu 01-Jan-70 00:00:01 GMT';
}

function book_add(id){
   document.cookie='book['+id+']=;expires=Thu 01-Jan-05 00:00:01 GMT';
}

