	function popInvoice(iDealerId, sOrderType, iId, bPrint)
	{
		sUrl = "invoice.php?dealer=" + iDealerId + "&type=" + sOrderType + "&id=" + iId;
		if (typeof(bPrint) != "undefined" && bPrint == true) {
			sUrl += "&print=1";
		}
		open(sUrl, "rd_invoice", "width=550,height=500,resizable=yes,menubar=yes,scrollbars=yes");
	}
