function change_number(id, oper) {if(oper){	var popID =id.substr(4);	$('#count' + popID).val(parseInt($('#count' + popID).val())+1);	$('#sum' + popID).text(parseInt($('#price' + popID).text())*$('#count' + popID).val());}else{	var popID =id.substr(5);	if (parseInt($('#count' + popID).val())>1)	{		$('#count' + popID).val(parseInt($('#count' + popID).val())-1);			}	else{		$('#count' + popID).val(1);	}	$('#sum' + popID).text(parseInt($('#price' + popID).text())*$('#count' + popID).val());}}$(document).ready(function() {var advice = $('#advice');var noclose = false;var cartForm = $('#Adviceform');advice.find('.close').click(function(){				advice.hide();		$('#fade').remove();return false;			});	$('.send').click(function(){				 $('#advice').show();		 $('body').append('<div id="fade"></div>');		$('#fade').css({'filter' : 'alpha(opacity=60)'}).fadeIn();return false;			});		$('#advice, .send').live('mouseover mouseout', function(event){		if(event.type == 'mouseover'){			noclose = true;		}else{			noclose = false;		}	});			$('html').live('click', function(){		if( noclose ){			return false;		}			});	cartForm.find('.submit').click(function(){				/*alert('!!!');*/		submitAdvice();				return false;			});	$('#pickup').click(function(){				$('.address').css({display:'none'});			});				$('#company').click(function(){				$('.file').css({display:'block'});			});		$('.radio').click(function(event){		if(event.target.id!='pickup')		{			$('.address').css({display:'block'});		}					if(event.target.id!='company')		{			$('.file').css({display:'none'});		}			/*alert(event.target.id);*/	});	$(".plus").mouseup(function(event){change_number(event.target.id, true);});$(".minus").mouseup(function(event){change_number(event.target.id, false);});});function submitAdvice(){	err = false;	form = $('#Adviceform');		doLoad( getObj('Adviceform'), '/ajax/advice_in/' );		return false;	} 
