// JavaScript Document
function showForm(productId, minimalOrder)
{
      
	  $.ajax({
		type: 'POST',
		url: '_show_form.php',
		data: {id_product:[productId]},
		success: function(data){
			$('#order').html(data);
			$.getScript('http://www.aladdinties.com/scripts/js/numeric.js');
		}
	  });
      jQuery.blockUI({ message: $('#order') });
	  if ($("div#note").length > 0)
	  {
		   setTimeout('jQuery.unblockUI()',2000);
		   $('#order').empty();
	  }
	  return false;

}

function hideForm()
{
	$('#order').empty();
	jQuery.unblockUI();
}

function showFormColor(productId, minimalOrder, colorId)
{
      
	  $.ajax({
		type: 'POST',
		url: '_show_form_color.php',
		data: {id_product:[productId],id_color:[colorId]},
		success: function(data){
			$('#order').html(data);
			$.getScript('http://www.aladdinties.com/scripts/js/numeric.js');
		}
	  });
      jQuery.blockUI({ message: $('#order') });
	  if ($("div#note").length > 0)
	  {
		   setTimeout('jQuery.unblockUI()',2000);
		   $('#order').empty();
	  }
	  return false;

}
