function showPriceOnDemandForm(productId){	
	dialogPopup = new DialogPopup();
	
	new Ajax.Request('product/showPriceOnDemandForm/', {
		method: 'post',	
		evalJSON: 'true',
		postBody: 'productId=' + productId,	
		onSuccess: function(tp) {	
			checkAjaxRequest(tp, function(tp){				
		
				//new Effect.Appear('accessoryDetails', { duration: 0.2, from: 0.0, to: 1.0 });
				//$('accessoryDetails').innerHTML = root.data.content;
				
				dialogPopup.show(root.data.content);
			});
		}
	});
}


function sendPriceOnDemand(button){
	button.disabled = true;
	
	new Ajax.Request('product/sendPriceOnDemand/', {
		method: 'post',	
		evalJSON: 'true',
		postBody: Form.serialize('priceondemandform'),	
		onSuccess: function(tp) {	
			checkAjaxRequest(tp, function(tp){				
					$('shop:priceondemandform:message').innerHTML = 'Ihre Anfrage wurde an unseren Kundendienst weitergeleitet';
					$('shop:priceondemandform:errormessage').innerHTML = '';
			}, $('shop:priceondemandform:errormessage'));
		}
	});
	button.disabled = false;
}