function alterPrices(delta, percent){
	var productid = $('productid').getValue();
	
    $$('.price-box').each(function(elm){
    	elm.hide();
	});
	
	/*
$$('.old-price').each(function(elm){
    	elm.hide();
	});
*/
	
	$('ajax-loader').show();

	new Ajax.Request('/catalog/product/customPrices/',
	{
		method:'get',
		parameters: {productid : productid, delta : delta, percent : percent},
		
		onSuccess: function(transport, json){
			$('ajax-loader').hide();
			$$('.special-price .price').each(function(elm){
			    elm.remove();
			});
			$$('.special-price').each(function(elm){
				elm.insert(json.price);
			});
		   $$('.price-box').each(function(elm){
    			elm.show();
			});
		},
		onFailure: function(){ 
			alert('failure');
		}
	});
}