/* Смена режима поиска на № num. */
function other( num )
{
	var search_item, search_form, i;
	
   	document.getElementById( 'DLoader2' ).className = 'visible';
	$('div#autoSuggestionsList2').html('<div></div>');
	/*if (num = 1) $.post("reg?zp=1", {}, function(data){if(data.length >0) {$('#autoSuggestionsList').html(data); document.getElementById( 'DLoader2' ).className = 'hidden';}});
	if (num > 1) $.post("reg?zp="+num, {}, function(data){if(data.length >0) {$('#autoSuggestionsList').html(data); document.getElementById( 'DLoader2' ).className = 'hidden';}});*/
	$.post("reg?sector="+num+'&sub=1', {}, function(data){if(data.length >0) {$('#autoSuggestionsList2').html(data); document.getElementById( 'DLoader2' ).className = 'hidden';}});
	$.post('reg_com?sector='+num+'&p=1&fn=0', {}, function(data){if(data.length >0) {$('#dopinfo').html(data);}});
	/*if (num = 2) $.post("reg?zp=2", {}, function(data){if(data.length >0) {$('#autoSuggestionsList').html(data); document.getElementById( 'DLoader2' ).className = 'hidden';}});*/
	//$('#autoSuggestionsList').html(num);
};

function rubr( num )
{
	$.post("core_nav?kk="+num, {}, function(data){
	 if(data.length >0) {$('#rub2').html(data);
     $('#rub3').html('');
     $('#rub4').html('');
     $('#anketa').html('');	 
	document.getElementById( 'rub2' ).className = 'visible';}
	}
	);
};

function rubr2( num )
{
	$.post("core_nav?zz="+num, {}, function(data){
	 if(data.length >0) {$('#rub3').html(data); 
	document.getElementById( 'rub3' ).className = 'visible';}
	}
	);
};

function rubr3( num, name )
{
	$.post("core_nav?aa="+num+'&name='+name, {}, function(data){
	 if(data.length >0) {$('#rub4').html(data); 
	document.getElementById( 'rub4' ).className = 'visible';}
	}
	);
};

