function UpdatePriceAndStock(prodID, optionGroups) {
  var urlparams = '';
  $("#prod_liveinfo").html('<div style="text-align:center; height:45px;"><img src="images/template/ajax-loader.gif" width="16" height="16" style="margin-top:10px;" /></div>');

  // if an array has been passed in we need to get the option values
  if (optionGroups != '') {
    urlparams = "&options=true";
    for (i=0; i < optionGroups.length; i++) {
      urlparams += "&" + optionGroups[i] + "=" + $("#"+optionGroups[i]).val();
    }
  }

  $("#prod_liveinfo").load(path_to_site+"includes/ajax/prodinfo.php?id="+prodID+urlparams);
}
function PopUpReceipt(code) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open('"+ path_to_site +"page/printreceipt/"+ code +"/', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=620,height=500,left=440,top=262');");
}