		function ShowDiv(show, div_id)
		{
			div_show = document.getElementById(div_id);
			if(div_show.style.display == 'block')
			{
				div_show.style.display = 'none';
				ShowDiv2('on', 'select_div'); 
				ShowDiv2('on', 'select2_div')
			}
			else
			{
				div_show.style.display = 'block';
				ShowDiv2('off', 'select_div'); 
				ShowDiv2('off', 'select2_div')
			}		
		}
		
		function ShowDiv2(show, div_id)
		{
			div_show = document.getElementById(div_id);
			if(show == 'off')
			{
				div_show.style.display = 'none';
			}
			else
			{
				div_show.style.display = 'block';
			}		
		}
		
		function ShowDiv3(show, div_id)
		{
			div_show = document.getElementById(div_id);
			if(div_show.style.display == 'none')
			{
				div_show.style.display = '';
			}
			else
			{
				div_show.style.display = 'none';
			}		
		}
		
		function Selector(oh,ah,th) {
			//eval("selected_r.innerHTML=th.name");
			//eval ("ch=th.");
			var ff;
			if (th.checked==true) {
				eval("cont_"+ah+"_var=th.title");
				//alert (th.title);
			} else {
				eval("cont_"+ah+"_var=''");
			}
			selected_r.innerHTML='';
			for (y=1;y<=total;y++) {
				eval ("ch=cont_"+y+"_var");
				if (ch) {
					eval("selected_r.innerHTML=selected_r.innerHTML+ch+'<br>'");
					ff=1;
				}
			}
			if (!ff) selected_r.innerHTML='Все регионы';
			//alert(ff);
		}
		
		function Selector2(oh,ah,th) {
			//eval("selected_r.innerHTML=th.name");
			//eval ("ch=th.");
			var hh;
			if (th.checked==true) {
				eval("area_"+ah+"_var=th.title");
				//alert (th.title);
			} else {
				eval("area_"+ah+"_var=''");
			}
			selected_a.innerHTML='';
			for (y=1;y<=total2;y++) {
				eval ("ch=area_"+y+"_var");
				//alert(y);
				if (ch) {
					eval("selected_a.innerHTML=selected_a.innerHTML+ch+'<br>'");
					hh=1;
				}
			}
			if (!hh) selected_a.innerHTML='Все сферы';
			//alert(hh);
		}