+ }
+ document.getElementById('charge_storage').value = str;
+ cClick();
+ overlib( OLiframeContent('http://localhost/freeside//browse/part_pkg_taxproduct.cgi?_type=select&id=taxproductnum&onclick=taxproductquickchargemagic&taxproductnum='+document.getElementById('taxproductnum').value, 1000, 400, 'tax_product_popup'), CAPTION, 'Select product', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK);
+}
+
+function taxproductquickchargemagic() {
+ var str = document.getElementById('charge_storage').value;
+ if (str.length){str += ';';}
+ str += 'magic=taxproductnum;taxproductnum=';
+ str += escape(document.getElementById('taxproductnum').value);
+ cClick();
+ overlib( OLiframeContent('http://localhost/freeside//edit/quick-charge.html?'+str, 545, 336, 'One-time charge'), CAPTION, 'One-time charge', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', CLOSETEXT, 'Close');
+
+}
+
+function taxoverridemagic(which) {
+ var str = '';
+ var elements = which.ownerDocument.QuickChargeForm.elements;
+ for (var i = 0; i<elements.length; i++) {
+ if (elements[i].name == 'tax_override'){
+ document.getElementById('tax_override').value = elements[i].value;
+ continue;
+ }
+ if (str.length){str += ';';}
+ str += elements[i].name + '=' + escape(elements[i].value);
+ }
+ document.getElementById('charge_storage').value = str;
+ cClick();
+ overlib( OLiframeContent('http://localhost/freeside//edit/part_pkg_taxoverride.html?element_name=tax_override;onclick=taxoverridequickchargemagic;selected='+document.getElementById('tax_override').value, 1100, 600, 'tax_product_popup'), CAPTION, 'Edit product tax overrides', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK);
+}
+
+function taxoverridequickchargemagic() {
+ var str = document.getElementById('charge_storage').value;
+ if (str.length){str += ';';}
+ str += 'magic=taxoverride;tax_override=';
+ str += document.getElementById('tax_override').value;
+ cClick();
+ overlib( OLiframeContent('http://localhost/freeside//edit/quick-charge.html?'+str, 545, 336, 'One-time charge'), CAPTION, 'One-time charge', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', CLOSETEXT, 'Close');
+
+}
+
+</SCRIPT>
+<A HREF="javascript:void(0);"
+ onClick="overlib( OLiframeContent('http://localhost/freeside/edit/quick-charge.html?custnum=135', 763, 460, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'One-time charge', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', FGCOLOR, '#f8f8f8', CLOSETEXT, 'Close'); return false;"
+
+
+
+>One-time charge</A>
+</li>
+ <li><A HREF="javascript:void(0);"
+ onClick="overlib( OLiframeContent('http://localhost/freeside/edit/bulk-cust_svc-pkgnum.html?custnum=135', 968, 575, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'Move services', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', FGCOLOR, '#f8f8f8', CLOSETEXT, 'Close'); return false;"
+
+
+
+>Move services between packages</A></li>
+ <li> <A HREF="http://localhost/freeside/edit/cust_pkg.cgi?135">Bulk order and cancel packages</A> </li>
+ <li>-</li>
+ <li> <A HREF="http://localhost/freeside/search/report_cust_pkg.html?custnum=135">Package reports</A> </li>
+ <li> <A HREF="http://localhost/freeside/search/qual.cgi?custnum=135">View qualifications</A> </li>
+ <li> <A HREF="http://localhost/freeside/search/report_svc_acct.html?custnum=135">View accounts</A> </li>
+ <li> <A HREF="http://localhost/freeside/search/report_cdr.html?custnum=135">View CDRs</A> </li>
+ </ul>
+ </li>
+ <li>
+ <A HREF="http://localhost/freeside/view/cust_main.cgi?custnum=135;show=payment_history">Payment History</A>
+ <ul class="customer_submenu">
+ <li><a href="javascript:void(0);">Enter payment<span class="arrow"></span></a><ul class="customer_subsubmenu"><li><li><li><li><li></ul></li>
+ <li><a href="javascript:void(0);">Process payment<span class="arrow"></span></a><ul class="customer_subsubmenu"><li><li></ul></li>
+ <li>-</li>
+ <li><A HREF="javascript:void(0);"
+ onClick="overlib( OLiframeContent('http://localhost/freeside/edit/cust_credit.cgi?custnum=135', 763, 410, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'Enter credit', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', FGCOLOR, '#f8f8f8', CLOSETEXT, 'Close'); return false;"
+
+
+
+>Enter credit</A></li>
+ <li><A HREF="javascript:void(0);"
+ onClick="overlib( OLiframeContent('http://localhost/freeside/edit/credit-cust_bill_pkg.html?custnum=135', 968, 575, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'Credit line items', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#333399', CGCOLOR, '#333399', FGCOLOR, '#f8f8f8', CLOSETEXT, 'Close'); return false;"
+
+
+
+>Credit line items</A></li>
+ <li>-</li>
+ <li><a href="javascript:void(0);">Enter refund<span class="arrow"></span></a><ul class="customer_subsubmenu"><li><li><li><li></ul></li>
+ <li>-</li>
+ <li> <A HREF="http://localhost/freeside/view/cust_main_statement-pdf.cgi?135">Download PDF statement</A> </li>
+ <li> <A HREF="http://localhost/freeside/search/report_cust_bill.html?custnum=135">Search invoices</A> </li>
+ <li> <A HREF="http://localhost/freeside/search/cust_tax_exempt_pkg.cgi?custnum=135">View tax exemptions</A> </li>
+ </ul>
+ </li>
+ <li>
+ <A HREF="http://localhost/freeside/view/cust_main.cgi?custnum=135;show=change_history" class="current_show">Change History</A>
+ </li>
+</ul>
+
+<script type="text/javascript">
+
+ $("#customer_menu").menu({
+ position: { my: "left top", at: "left+1 bottom+3" },
+ blur: function() {
+ $(this).menu("option", "position", { my:"left top", at:"left+1 bottom+3" } );
+ },
+ focus: function(e,ui) {
+ if ($("#customer_menu").get(0) !== $(ui).get(0).item.parent().get(0)) {
+ $(this).menu("option", "position", { my:"left top", at:"right+2 top"} );
+ }
+ },
+ });
+
+</script>