function pics(img,ref)
{
	document.getElementById(img).src = ref;
}

function openwin(img,w,h,title)
{
 var hWnd;
 if(hWnd!=null) hWnd.close();
 hWnd=window.open(img,"","toolbar=no,location=no,directories=no,resizable=yes,scrollbars=yes,left=100,top=100,width="+w+",height="+h);
 hWnd.document.open();
 hWnd.document.write("<html><head><title>"+title+"</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
 hWnd.document.write("<img src=\""+img+"\" width="+w+" height="+h+">");
 hWnd.document.write("</body></html>");
 hWnd.document.close();
}

function IEPngFix( pngimg, gifimg, width, height, unique_name )
{
	var code = '<img src="'+ gifimg +'" width="' + width + '" height="' + height + '" border="0" id="'+ unique_name +'" style="background:url('+pngimg+') no-repeat 0px 0px;" alt="'+unique_name+'"/>';
	if( navigator.userAgent.indexOf("Opera") > 1 ) document.write(code);
	else
		if( navigator.userAgent.indexOf("MSIE 6") > 1 ) document.write('<img src="'+gifimg+'" width="' + width + '" height="' + height + '" border="0" alt="'+unique_name+'" id="'+ unique_name +'" style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=' + pngimg + ' , sizingMethod=crop );"/>');
		else
			if(navigator.userAgent.indexOf("MSIE 5") != -1) document.write(code);
			else document.write(code);
}


function clicks()
{
	$(".zoom a").fancybox();

	//голос за интерьер
	$('.interior_vote_button').click(
		function(){
			id = $(this).attr('article_id');
			points = $(this).attr('points');
			$.ajax({
				url: "/inc/refresh_interior_votes_block.php?id="+id+"&points="+points,
				cache: false,
				success: refresh_interior_votes
			});			
		}
	);

	//голос за рецепт
	$('.recipe_vote_button').click(
		function(){
			id = $(this).attr('article_id');
			points = $(this).attr('points');
			$.ajax({
				url: "/inc/refresh_recipe_votes_block.php?id="+id+"&points="+points,
				cache: false,
				success: refresh_recipe_votes
			});			
		}
	);

	//голос за совет
	$('.advice_vote_button').click(
		function(){
			id = $(this).attr('article_id');
			points = $(this).attr('points');
			$.ajax({
				url: "/inc/refresh_advice_votes_block.php?id="+id+"&points="+points,
				cache: false,
				success: refresh_advice_votes
			});			
		}
	);

	//голос за здоровье
	$('.healph_vote_button').click(
		function(){
			id = $(this).attr('article_id');
			points = $(this).attr('points');
			$.ajax({
				url: "/inc/refresh_healph_votes_block.php?id="+id+"&points="+points,
				cache: false,
				success: refresh_healph_votes
			});			
		}
	);

	
	//интерьер слайд
	$('#interier_slide_next').click(
		function(){
			id = $(this).attr('interier_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_interior_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_interier_pic
			});			
		}
	);
	$('#interier_slide_prev').click(
		function(){
			id = $(this).attr('interier_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_interior_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_interier_pic
			});			
		}
	);

	//рецепт слайд
	$('#recipe_slide_next').click(
		function(){
			id = $(this).attr('recipe_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_recipe_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_recipe_pic
			});			
		}
	);
	$('#recipe_slide_prev').click(
		function(){
			id = $(this).attr('recipe_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_recipe_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_recipe_pic
			});			
		}
	);

	//советы слайд
	$('#advice_slide_next').click(
		function(){
			id = $(this).attr('advice_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_advice_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_advice_pic
			});			
		}
	);
	$('#advice_slide_prev').click(
		function(){
			id = $(this).attr('advice_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_advice_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_advice_pic
			});			
		}
	);

	//прод слайд
	$('#prod_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);
	$('#prod_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);

	//прод магазина слайд
	$('#eshop_prod_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_eshop_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);
	$('#eshop_prod_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_eshop_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);



	//здоровье слайд
	$('#healph_slide_next').click(
		function(){
			id = $(this).attr('healph_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_healph_gallery.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_healph
			});
		}
	);
	$('#healph_slide_prev').click(
		function(){
			id = $(this).attr('healph_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_healph_gallery?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_healph
			});
		}
	);





//-------------
	//похожие продукты
	$('#same_prod_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_same_prod_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_same_prod
			});
		}
	);
	$('#same_prod_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_same_prod_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_same_prod
			});
		}
	);


	//прод слайд стили
	$('#style_prod_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_style_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);
	$('#style_prod_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('slide');
			$.ajax({
				url: "/inc/refresh_style_prod_card.php?id="+id+"&slide="+slide,
				cache: false,
				success: refresh_prod
			});
		}
	);


	//похожие продукты стили
	$('#same_style_prod_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_same_style_prod_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_same_prod
			});
		}
	);
	$('#same_style_prod_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_same_style_prod_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_same_prod
			});
		}
	);



	//остальные мастер-классы
	$('#other_mc_slide_next').click(
		function(){
			page = $(this).attr('page');
			slide = $(this).attr('q_slide');
			id = $('#other_mc_block').attr('mc_id');
			$.ajax({
				url: "/inc/refresh_other_mc_queue.php?page="+page+"&q_num="+slide+"&id="+id,
				cache: false,
				success: refresh_mc_block
			});
		}
	);
	$('#other_mc_slide_prev').click(
		function(){
			page = $(this).attr('page');
			slide = $(this).attr('q_slide');
			id = $('#other_mc_block').attr('mc_id');
			$.ajax({
				url: "/inc/refresh_other_mc_queue.php?page="+page+"&q_num="+slide+"&id="+id,
				cache: false,
				success: refresh_mc_block
			});
		}
	);


	//остальные все мастер-классы
	$('#other_mc_slide_next2').click(
		function(){
			page = $(this).attr('page');
			slide = $(this).attr('q_slide');
			id = $('#other_mc_block').attr('mc_id');
			$.ajax({
				url: "/inc/refresh_other_mc_queue.php?page="+page+"&q_num="+slide+"&id="+id,
				cache: false,
				success: refresh_mc_block
			});
		}
	);
	$('#other_mc_slide_prev2').click(
		function(){
			page = $(this).attr('page');
			slide = $(this).attr('q_slide');
			id = $('#other_mc_block').attr('mc_id');
			$.ajax({
				url: "/inc/refresh_other_mc_queue.php?page="+page+"&q_num="+slide+"&id="+id,
				cache: false,
				success: refresh_mc_block
			});
		}
	);



	//остальные оформление слайд
	$('#other_decor_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_decorating_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_decor_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_decorating_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);


	//остальные интерьеры слайд
	$('#other_interior_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_interiors_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_interior_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_interiors_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);


	//остальные рецепты слайд
	$('#other_recipe_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_recipes_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_recipe_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_recipes_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//остальные совет слайд
	$('#other_advice_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_advices_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_advice_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_advices_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);


	//остальные стили
	$('#other_style_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_style_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_style_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_style_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);


	//остальные здоровье слайд
	$('#other_healph_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_healph_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_healph_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_healph_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//остальные товары магазина слайд
	$('#other_eshop_product_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_eshop_products_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#other_eshop_product_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_other_eshop_products_queue.php?id="+id+"&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);







	//последние рецепты менеджера слайд
	$('#last_mrecipe_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_mrecipes_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#last_mrecipe_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_mrecipes_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//последние советы менеджера слайд
	$('#last_madvice_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_madvices_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#last_madvice_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_madvices_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//последние интерьеры менеджера слайд
	$('#last_minterior_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_minteriors_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#last_minterior_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_last_minteriors_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);




	//новые рецепты менеджера слайд
	$('#new_mrecipe_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_mrecipes_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#new_mrecipe_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_mrecipes_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//новые советы менеджера слайд
	$('#new_madvice_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_madvices_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#new_madvice_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_madvices_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

	//новые интерьеры менеджера слайд
	$('#new_minterior_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_minteriors_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#new_minterior_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_minteriors_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);


	//новые здоровья слайд
	$('#new_healph_slide_next').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_healph_queue.php?q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);
	$('#new_healph_slide_prev').click(
		function(){
			id = $(this).attr('prod_id');
			slide = $(this).attr('q_slide');
			$.ajax({
				url: "/inc/refresh_new_healph_queue.php?&q_num="+slide,
				cache: false,
				success: refresh_queue_block
			});
		}
	);

}


function ch_l()
{
	$('#but_show_form').css({'cursor':'auto', 'color':'#2B2B2B', 'border':'0px'});
}



///////
$(document).ready(function(){

	//удал. фото товара
	$('.del_prod_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_prod_pic.php?id="+num
			});
			return false;
		}
	);

	//удал. фото товара
	$('.del_eshop_prod_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_eshop_prod_pic.php?id="+num
			});
			return false;
		}
	);


	
	//удал. фото интерьера
	$('.del_interior_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_interior_pic.php?id="+num
			});
			return false;
		}
	);

	//удал. фото рецепта
	$('.del_recipe_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_recipe_pic.php?id="+num
			});
			return false;
		}
	);

	//удал. фото совета
	$('.del_advice_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_advice_pic.php?id="+num
			});
			return false;
		}
	);

	//удал. фото здоровья
	$('.del_healph_pic').click(
		function(){
			num = $(this).attr('num');
			$(this).parent().parent().css({"display":"none"});
			$.ajax({
				url: "/inc/del_healph_pic.php?id="+num
			});
			return false;
		}
	);

	clicks();


	$('.tocart_count').keypress(function(evt){
		 var charCode = (evt.which) ? evt.which : event.keyCode;
		 if (charCode!=13 && charCode!=9 && charCode!=8 && /*charCode!=46 && */charCode!=36 && charCode!=35 && charCode!=37  && charCode!=39 && charCode!=0 && (charCode<48 || charCode>57) )
			 return false;
		 return true;
	});


	$('#but_show_form').click(
		function(){
			$('#form_block').fadeIn(200);
			ch_l();
	});


});


function refresh_queue_block(data)
{
	$("#queue_block").html(data);
	clicks();
}

function refresh_interior_votes(data)
{
	$("#votes_block").html(data);
	clicks();
}
function refresh_interier_pic(data)
{
	$("#interier_card").html(data);
	clicks();
}

function refresh_advice_votes(data)
{
	$("#votes_block").html(data);
	clicks();
}
function refresh_healph_votes(data)
{
	$("#votes_block").html(data);
	clicks();
}
function refresh_advice_pic(data)
{
	$("#advice_card").html(data);
	clicks();
}

function refresh_recipe_votes(data)
{
	$("#votes_block").html(data);
	clicks();
}
function refresh_recipe_pic(data)
{
	$("#recipe_card").html(data);
	clicks();
}




function refresh_prod(data)
{
	$("#prod_card").html(data);
	clicks();
}

function refresh_same_prod(data)
{
	$("#same_products_block").html(data);
	clicks();
}

function refresh_mc_block(data)
{
	$("#other_mc_block").html(data);
	clicks();
}
function refresh_healph(data)
{
	$("#healph_card").html(data);
	clicks();
}

function show_div(id)
{
	var div;
	div = document.getElementById(id);
	if ( div.style.display == "none" ) div.style.display = "block";
		else div.style.display = "none";
}

function addFileInput(cont_id)
{
	$cont = $('#' + cont_id);
	//для фото
	name = 	$('input[type=file]:first', $cont).attr('name');
	$input = $('input[type=file]:last', $cont);
	$last_text = $('input[type=file]:last', $cont);
	$new_input = $input.clone(true);
	new_name = name + ($('input[type=file]', $cont).length + 1);
	$new_input.attr('name', new_name);
	$new_input.val('');
	$new_input.insertAfter($last_text);

	return false;
}







function post_to_del()
{
	document.getElementById("show_table").value=1;
	document.cartlist.submit();
}

function check_count(id, count)
{
	var c = parseInt(document.getElementById("count_id"+id).value);
	if( document.getElementById("kolonfirm_id"+id).value < c)
	{
		document.getElementById("count_id"+id).value = count;
		alert("Количество товара недопустимо, для заказа необходимо связаться с менеджером");
	}
}
///////




////////////////------считает общую цену и количество единиц товара
function Count(form, infoprice, infoamount)
{
	var Amount = 0;
	var Price = 0;
	var ss = "";

	InputsCollection = document.getElementsByTagName("INPUT");

	for (i=0; i<InputsCollection.length; i+=1)
	{
		CurrentInputID = InputsCollection[i].id;
		if (CurrentInputID.indexOf('count_id') >= 0)
		{
			eval('CurrentCount = document.getElementById(\'' + CurrentInputID + '\');');

			ss = new String(CurrentInputID); //определяем id инпута
			ss = ss.substr(8,ss.length);

			eval('var CurrentCheck = document.getElementById(\'check_id' + ss + '\');');

			if ( parseInt(CurrentCount.value) > 0 )
			{
				eval('var CurrentPrice = document.getElementById(\'price_id' + ss + '\');');				
				if (CurrentCheck.checked)
				{
					Amount += parseInt(CurrentCount.value);
					Price += (CurrentPrice.value) * (CurrentCount.value);
				}
			}
		}
	}

	Price = Price.toFixed(2);
	eval('document.getElementById(\'price\').innerHTML = \'Общая стоимость: <span>\'+Price+\' руб</span>\'');
//	eval('document.getElementById(\'amount\').innerHTML = Amount');
}