/*
$(document).ready(function() {

	$jq('#nav li a').click(function(){

//		var my_hash = $jq(this).attr('href').substr(15,$jq(this).attr('href').length-1);
		var s_id = $jq(this).attr('s_id');

//		var toLoad = $jq(this).attr('href').substr(0,14)+'s='+my_hash;
		var toLoad = "/price.php?s_ids=" + s_id;

		$jq('#content').hide('fast',loadContent);
		$jq('#content').remove();
		$jq('#loader').remove();
		$jq('#cont_list').append('<div id="loader"></div>');
		$jq('#loader').fadeIn('normal');

		//window.location.href = 'index.php#' + my_hash;

		function loadContent() {
			$jq('#cont_list').append('<div id="content"></div>');
			$jq('#content').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$jq.scrollTo( $jq('body'), {speed:0} );

			$jq('#content').show('fast',hideLoader());
		}
		function hideLoader() {
			$jq('#loader').fadeOut('normal');
		}

		document.title = $jq(this).attr('title') + " // " + COMMON_TITLE;

		return false;

	});

});*/

function deletepart( part, sect, pl_descr )
{
	if( confirm( "Удалить из прайса?" ) )
	{
		location.href = "http://www.link.kg/app/app.prices.php?part="+part+"&sect="+sect+"&rejim_u=1";
	}
}

function rejim_u( sect, stat )
{
	if( stat == 1 )
	{
		if( confirm( "Хотите выключить режим удаления товара с прайса?" ) )
		{
			location.href = "http://www.link.kg/catalog/"+sect+"/";
		}
	}
	else
	{
		if( confirm( "Хотите включить режим удаления товара с прайса?" ) )
		{
			location.href = "http://www.link.kg/catalog/"+sect+"&rejim_u=1/";
		}
	}
}

