refresh tests with August 2015 updates
[freeside.git] / FS-Test / share / output / edit / part_pkg.cgi / 2
1
2
3
4   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <HTML>
6   <HEAD>
7     <TITLE>
8       Edit Package definition
9     </TITLE>
10     <!-- per RT, to prevent IE compatibility mode -->
11     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
12     <!-- The X-UA-Compatible <meta> tag above must be very early in <head> -->
13     <META HTTP-Equiv="Cache-Control" Content="no-cache">
14     <META HTTP-Equiv="Pragma" Content="no-cache">
15     <META HTTP-Equiv="Expires" Content="0"> 
16
17     <script type="text/javascript" src="http://localhost/freeside/elements/cssexpr.js"></script>
18
19
20   <script type="text/javascript" src="http://localhost/freeside/elements/xmenu.top.js"></script>
21   <link href="http://localhost/freeside/elements/xmenu.top.css" type="text/css" rel="stylesheet">
22
23
24   <link href="http://localhost/freeside/elements/freeside.css" type="text/css" rel="stylesheet">
25   <link href="http://localhost/freeside/elements/freeside-print.css" type="text/css" rel="stylesheet" media="print">
26 <link href="http://localhost/freeside/elements/freeside-menu.css" type="text/css" rel="stylesheet">
27
28 <SCRIPT TYPE="text/javascript">
29
30   function about_freeside() {
31     overlib( OLiframeContent('http://localhost/freeside/docs/about.html', 300, 375, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'About', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#7e0079', CGCOLOR, '#7e0079', CLOSETEXT, 'Close'); 
32   }
33
34   webfxMenuImagePath      = "http://localhost/freeside/images/";
35   webfxMenuUseHover       = 1;
36   webfxMenuShowTime       = 300;
37   webfxMenuHideTime       = 500;
38
39   var myBar = new WebFXMenuBar;
40
41     
42           myBar.add(new WebFXMenuButton('Billing Main', "http://localhost/freeside/", 'Billing start page' ));
43
44     
45           myBar.add(new WebFXMenuButton('Ticketing Main', "http://localhost/freeside/rt/", 'Ticketing start page' ));
46
47     
48           myBar.add(new WebFXMenuButton('New prospect', "http://localhost/freeside/edit/prospect_main.html", 'Add a new prospect' ));
49
50     
51           myBar.add(new WebFXMenuButton('New customer', "http://localhost/freeside/edit/cust_main.cgi", 'Add a new customer' ));
52
53
54           var myMenu0 = new WebFXMenu;
55 myMenu0.emptyText = '';
56 var myMenu1 = new WebFXMenu;
57 myMenu1.emptyText = '';
58 myMenu1.add(new WebFXMenuItem("List prospects", "http://localhost/freeside/search/prospect_main.html", "" ));
59 myMenu1.add(new WebFXMenuItem("Advanced prospect reports", "http://localhost/freeside/search/report_prospect_main.html", "" ));
60 myMenu1.add(new WebFXMenuSeparator());
61 myMenu1.add(new WebFXMenuItem("Prospect contacts", "http://localhost/freeside/search/report_contact.html?link=prospect_main", "" ));
62 myMenu1.width = 256;
63
64 myMenu0.add(new WebFXMenuItem("Prospects", null, "Prospect reports", myMenu1 ));
65 var myMenu2 = new WebFXMenu;
66 myMenu2.emptyText = '';
67 myMenu2.add(new WebFXMenuItem("List quotations", "http://localhost/freeside/search/quotation.html", "" ));
68 myMenu2.add(new WebFXMenuItem("Advanced quotation reports", "http://localhost/freeside/search/report_quotation.html", "" ));
69 myMenu2.width = 256;
70
71 myMenu0.add(new WebFXMenuItem("Quotations", null, "Quotation reports", myMenu2 ));
72 var myMenu3 = new WebFXMenu;
73 myMenu3.emptyText = '';
74 var myMenu4 = new WebFXMenu;
75 myMenu4.emptyText = '';
76 myMenu4.add(new WebFXMenuItem("by customer number", "http://localhost/freeside/search/cust_main.cgi?browse=custnum", "" ));
77 myMenu4.add(new WebFXMenuItem("by last name", "http://localhost/freeside/search/cust_main.cgi?browse=last", "" ));
78 myMenu4.add(new WebFXMenuItem("by company name", "http://localhost/freeside/search/cust_main.cgi?browse=company", "" ));
79 myMenu4.add(new WebFXMenuItem("by active trouble tickets", "http://localhost/freeside/search/cust_main.cgi?browse=tickets", "" ));
80 myMenu4.width = 256;
81
82 myMenu3.add(new WebFXMenuItem("List customers", null, "List customers", myMenu4 ));
83 myMenu3.add(new WebFXMenuItem("Zip code distribution", "http://localhost/freeside/search/report_cust_main-zip.html", "Zip codes by number of customers" ));
84 myMenu3.add(new WebFXMenuItem("Customer signup report", "http://localhost/freeside/graph/report_cust_signup.html", "New customer signups by date" ));
85 myMenu3.add(new WebFXMenuItem("Customer churn report", "http://localhost/freeside/graph/report_cust_churn.html", "New customers, suspensions, and cancellations summary" ));
86 myMenu3.add(new WebFXMenuItem("Signup date report", "http://localhost/freeside/graph/report_signupdate.html", "Signup date report (by date of signup)" ));
87 myMenu3.add(new WebFXMenuItem("Advanced customer reports", "http://localhost/freeside/search/report_cust_main.html", "by status, signup date, agent, etc." ));
88 myMenu3.add(new WebFXMenuSeparator());
89 myMenu3.add(new WebFXMenuItem("Customer contacts", "http://localhost/freeside/search/report_contact.html?link=cust_main", "" ));
90 myMenu3.width = 256;
91
92 myMenu0.add(new WebFXMenuItem("Customers", null, "Customer reports", myMenu3 ));
93 var myMenu5 = new WebFXMenu;
94 myMenu5.emptyText = '';
95 var myMenu6 = new WebFXMenu;
96 myMenu6.emptyText = '';
97 myMenu6.add(new WebFXMenuItem("All open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN_date", "All invoices with an unpaid balance" ));
98 myMenu6.add(new WebFXMenuItem("15 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN15_date", "Invoices 15 days or older with an unpaid balance" ));
99 myMenu6.add(new WebFXMenuItem("30 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN30_date", "Invoices 30 days or older with an unpaid balance" ));
100 myMenu6.add(new WebFXMenuItem("60 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN60_date", "Invoices 60 days or older with an unpaid balance" ));
101 myMenu6.add(new WebFXMenuItem("90 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN90_date", "Invoices 90 days or older with an unpaid balance" ));
102 myMenu6.add(new WebFXMenuItem("120 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN120_date", "Invoices 120 days or older with an unpaid balance" ));
103 myMenu6.width = 256;
104
105 myMenu5.add(new WebFXMenuItem("Open invoices", null, "Open invoices", myMenu6 ));
106 myMenu5.add(new WebFXMenuItem("All invoices", "http://localhost/freeside/search/cust_bill.html?date", "List all invoices" ));
107 myMenu5.add(new WebFXMenuItem("Advanced invoice reports", "http://localhost/freeside/search/report_cust_bill.html", "by agent, date range, etc." ));
108 myMenu5.add(new WebFXMenuSeparator());
109 myMenu5.add(new WebFXMenuItem("Line items", "http://localhost/freeside/search/report_cust_bill_pkg.html", "Individual line item detail" ));
110 myMenu5.add(new WebFXMenuItem("Voided invoices", "http://localhost/freeside/search/report_cust_bill_void.html", "Search for voided invoices" ));
111 myMenu5.width = 256;
112
113 myMenu0.add(new WebFXMenuItem("Invoices", null, "Invoice reports", myMenu5 ));
114 var myMenu7 = new WebFXMenu;
115 myMenu7.emptyText = '';
116 myMenu7.add(new WebFXMenuItem("Discount graph", "http://localhost/freeside/graph/report_cust_bill_pkg_discount.html", "Discount overview per month" ));
117 myMenu7.add(new WebFXMenuItem("Discount detail", "http://localhost/freeside/search/report_cust_bill_pkg_discount.html", "Discount report (by employee and/or date range)" ));
118 myMenu7.add(new WebFXMenuItem("Package discounts", "http://localhost/freeside/search/report_cust_pkg_discount.html", "Active/inactive discounts by package" ));
119 myMenu7.width = 256;
120
121 myMenu0.add(new WebFXMenuItem("Discounts", null, "Discount reports", myMenu7 ));
122 var myMenu8 = new WebFXMenu;
123 myMenu8.emptyText = '';
124 myMenu8.add(new WebFXMenuItem("Payments", "http://localhost/freeside/search/report_cust_pay.html", "Payment report (by type and/or date range)" ));
125 myMenu8.add(new WebFXMenuItem("Payment application detail", "http://localhost/freeside/search/report_cust_bill_pay_pkg.html", "Line item application detail" ));
126 myMenu8.add(new WebFXMenuItem("Pending Payments", "http://localhost/freeside/search/cust_pay_pending.html?magic=_date;statusNOT=done", "Pending real-time payments" ));
127 myMenu8.add(new WebFXMenuItem("Unapplied Payments", "http://localhost/freeside/search/report_cust_pay.html?unapplied=1", "Unapplied payment report (by type and/or date range)" ));
128 myMenu8.add(new WebFXMenuItem("Voided Payments", "http://localhost/freeside/search/report_cust_pay.html?void=1", "Voided payment report (by type and/or date range)" ));
129 myMenu8.add(new WebFXMenuItem("Unapplied Payment Aging", "http://localhost/freeside/search/report_unapplied_cust_pay.html", "Unapplied payment aging report" ));
130 myMenu8.width = 256;
131
132 myMenu0.add(new WebFXMenuItem("Payments", null, "Payment reports", myMenu8 ));
133 var myMenu9 = new WebFXMenu;
134 myMenu9.emptyText = '';
135 myMenu9.add(new WebFXMenuItem("Package definitions (by # active)", "http://localhost/freeside/browse/part_pkg.cgi?active=1", "Package definitions by number of active packages" ));
136 myMenu9.add(new WebFXMenuItem("Package costs", "http://localhost/freeside/graph/report_cust_pkg_cost.html", "Package setup and recurring costs graph" ));
137 myMenu9.add(new WebFXMenuSeparator());
138 myMenu9.add(new WebFXMenuItem("Package churn", "http://localhost/freeside/graph/report_cust_pkg.html", "Orders, suspensions and cancellations summary graph" ));
139 myMenu9.add(new WebFXMenuSeparator());
140 myMenu9.add(new WebFXMenuItem("All customer packages", "http://localhost/freeside/search/cust_pkg.cgi?pkgnum", "List all customer packages" ));
141 myMenu9.add(new WebFXMenuItem("Package summary", "http://localhost/freeside/search/cust_pkg_summary.html", "Show package sales summary" ));
142 myMenu9.add(new WebFXMenuItem("Suspended customer packages", "http://localhost/freeside/search/cust_pkg.cgi?magic=suspended", "List suspended packages" ));
143 myMenu9.add(new WebFXMenuItem("Suspension summary", "http://localhost/freeside/search/cust_pkg_susp.html", "Show suspension activity" ));
144 myMenu9.add(new WebFXMenuItem("Customer packages with unconfigured services", "http://localhost/freeside/search/cust_pkg.cgi?APKG_pkgnum", "List packages which have provisionable services" ));
145 myMenu9.add(new WebFXMenuItem("Advanced package reports", "http://localhost/freeside/search/report_cust_pkg.html", "by agent, date range, status, package definition" ));
146 myMenu9.width = 256;
147
148 myMenu0.add(new WebFXMenuItem("Packages", null, "Package reports", myMenu9 ));
149 var myMenu10 = new WebFXMenu;
150 myMenu10.emptyText = '';
151 myMenu10.add(new WebFXMenuItem("Service definitions", "http://localhost/freeside/browse/part_svc.cgi?orderby=active", "Service definitions by number of active packages" ));
152 myMenu10.add(new WebFXMenuSeparator());
153 myMenu10.add(new WebFXMenuItem("Unprovisioned services", "http://localhost/freeside/search/report_unprovisioned_services.html", "Unprovisioned services" ));
154 myMenu10.add(new WebFXMenuSeparator());
155 var myMenu11 = new WebFXMenu;
156 myMenu11.emptyText = '';
157 myMenu11.add(new WebFXMenuItem("All accounts by Username", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=username", "" ));
158 myMenu11.add(new WebFXMenuItem("All accounts by UID", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=uid", "" ));
159 myMenu11.add(new WebFXMenuItem("All accounts with Time Remaining", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=seconds", "" ));
160 myMenu11.add(new WebFXMenuItem("All accounts by Last login", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=last_login", "" ));
161 myMenu11.add(new WebFXMenuItem("All accounts never logged in", "http://localhost/freeside/search/svc_acct.cgi?magic=nologin;sortby=svcnum", "" ));
162 myMenu11.add(new WebFXMenuItem("Advanced account reports", "http://localhost/freeside/search/report_svc_acct.html", "" ));
163 myMenu11.width = 256;
164
165 myMenu10.add(new WebFXMenuItem("Accounts", null, "Access accounts and mailboxes", myMenu11 ));
166 var myMenu12 = new WebFXMenu;
167 myMenu12.emptyText = '';
168 myMenu12.add(new WebFXMenuItem("All domains", "http://localhost/freeside/search/svc_domain.cgi?magic=all;sortby=domain", "" ));
169 myMenu12.width = 256;
170
171 myMenu10.add(new WebFXMenuItem("Domains", null, "Domains", myMenu12 ));
172 var myMenu13 = new WebFXMenu;
173 myMenu13.emptyText = '';
174 myMenu13.add(new WebFXMenuItem("All certificates", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cert;magic=all;sortby=svcnum", "" ));
175 myMenu13.width = 256;
176
177 myMenu10.add(new WebFXMenuItem("Certificates", null, "Example services", myMenu13 ));
178 var myMenu14 = new WebFXMenu;
179 myMenu14.emptyText = '';
180 myMenu14.add(new WebFXMenuItem("All mail forwards", "http://localhost/freeside/search/svc_forward.cgi?magic=all;sortby=svcnum", "" ));
181 myMenu14.width = 256;
182
183 myMenu10.add(new WebFXMenuItem("Mail forwards", null, "Mail forwards", myMenu14 ));
184 var myMenu15 = new WebFXMenu;
185 myMenu15.emptyText = '';
186 myMenu15.add(new WebFXMenuItem("All mailing lists", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_mailinglist;magic=all;sortby=svcnum", "" ));
187 myMenu15.width = 256;
188
189 myMenu10.add(new WebFXMenuItem("Mailing lists", null, "Mailing lists", myMenu15 ));
190 var myMenu16 = new WebFXMenu;
191 myMenu16.emptyText = '';
192 myMenu16.add(new WebFXMenuItem("All virtual hosting services", "http://localhost/freeside/search/svc_www.cgi?magic=all;sortby=svcnum", "" ));
193 myMenu16.width = 256;
194
195 myMenu10.add(new WebFXMenuItem("Virtual hosting services", null, "Virtual hosting services", myMenu16 ));
196 var myMenu17 = new WebFXMenu;
197 myMenu17.emptyText = '';
198 myMenu17.add(new WebFXMenuItem("All wireless broadband services", "http://localhost/freeside/search/svc_broadband.cgi?magic=all;sortby=svcnum", "" ));
199 myMenu17.add(new WebFXMenuItem("Advanced wireless broadband reports", "http://localhost/freeside/search/report_svc_broadband.html", "" ));
200 myMenu17.width = 256;
201
202 myMenu10.add(new WebFXMenuItem("Wireless broadband services", null, "Fixed wireless broadband services", myMenu17 ));
203 var myMenu18 = new WebFXMenu;
204 myMenu18.emptyText = '';
205 myMenu18.add(new WebFXMenuItem("All cable subscribers by Service", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=svcnum", "" ));
206 myMenu18.add(new WebFXMenuItem("All cable subscribers by Serial number", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=serialnum", "" ));
207 myMenu18.add(new WebFXMenuItem("All cable subscribers by MAC address", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=mac_addr", "" ));
208 myMenu18.width = 256;
209
210 myMenu10.add(new WebFXMenuItem("Cable Subscribers", null, "Cable Subscribers", myMenu18 ));
211 var myMenu19 = new WebFXMenu;
212 myMenu19.emptyText = '';
213 myMenu19.add(new WebFXMenuItem("All DSLs", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_dsl;magic=all;sortby=phonenum", "" ));
214 myMenu19.add(new WebFXMenuItem("Qualifications", "http://localhost/freeside/search/qual.cgi", "" ));
215 myMenu19.width = 256;
216
217 myMenu10.add(new WebFXMenuItem("DSLs", null, "DSLs", myMenu19 ));
218 var myMenu20 = new WebFXMenu;
219 myMenu20.emptyText = '';
220 myMenu20.add(new WebFXMenuItem("All dish services", "http://localhost/freeside/search/svc_dish.cgi?magic=all;sortby=svcnum", "" ));
221 myMenu20.width = 256;
222
223 myMenu10.add(new WebFXMenuItem("Dish services", null, "Dish services", myMenu20 ));
224 var myMenu21 = new WebFXMenu;
225 myMenu21.emptyText = '';
226 myMenu21.add(new WebFXMenuItem("All hardware", "http://localhost/freeside/search/svc_hardware.cgi?magic=all;sortby=svcnum", "" ));
227 myMenu21.add(new WebFXMenuItem("Advanced hardware reports", "http://localhost/freeside/search/report_svc_hardware.html", "" ));
228 myMenu21.width = 256;
229
230 myMenu10.add(new WebFXMenuItem("Hardware", null, "Hardware", myMenu21 ));
231 var myMenu22 = new WebFXMenu;
232 myMenu22.emptyText = '';
233 myMenu22.add(new WebFXMenuItem("All phone numbers", "http://localhost/freeside/search/svc_phone.cgi?magic=all;sortby=phonenum", "" ));
234 myMenu22.add(new WebFXMenuItem("Phone numbers' total usage by time period", "http://localhost/freeside/search/report_svc_phone_usage.html", "Total usage (minutes, and amount billed) for the specified time period, per phone number." ));
235 myMenu22.add(new WebFXMenuItem("Phone numbers by state", "http://localhost/freeside/search/phone_state.html", "Current or historical phone services broken down by state." ));
236 myMenu22.add(new WebFXMenuItem("Advanced phone number reports", "http://localhost/freeside/search/report_svc_phone.html", "" ));
237 myMenu22.add(new WebFXMenuItem("Phone number (DID) availability", "http://localhost/freeside/search/report_phone_avail.html", "" ));
238 myMenu22.add(new WebFXMenuItem("Inventory/Provisioning Status", "http://localhost/freeside/search/phone_inventory_provisioned.html", "" ));
239 myMenu22.width = 256;
240
241 myMenu10.add(new WebFXMenuItem("Phone numbers", null, "Phone numbers", myMenu22 ));
242 var myMenu23 = new WebFXMenu;
243 myMenu23.emptyText = '';
244 myMenu23.add(new WebFXMenuItem("All PBXs", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_pbx;magic=all;sortby=svcnum", "" ));
245 myMenu23.width = 256;
246
247 myMenu10.add(new WebFXMenuItem("PBXs", null, "PBXs", myMenu23 ));
248 var myMenu24 = new WebFXMenu;
249 myMenu24.emptyText = '';
250 myMenu24.add(new WebFXMenuItem("All circuits", "http://localhost/freeside/search/svc_circuit.cgi?magic=all;sortby=svcnum", "" ));
251 myMenu24.width = 256;
252
253 myMenu10.add(new WebFXMenuItem("Circuits", null, "Voice and data circuit services", myMenu24 ));
254 var myMenu25 = new WebFXMenu;
255 myMenu25.emptyText = '';
256 myMenu25.add(new WebFXMenuItem("All ports", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_port;magic=all;sortby=serviceid", "" ));
257 myMenu25.width = 256;
258
259 myMenu10.add(new WebFXMenuItem("Ports", null, "Ports", myMenu25 ));
260 var myMenu26 = new WebFXMenu;
261 myMenu26.emptyText = '';
262 myMenu26.add(new WebFXMenuItem("All alarm services", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_alarm;magic=all;sortby=acctnum", "" ));
263 myMenu26.width = 256;
264
265 myMenu10.add(new WebFXMenuItem("Alarm services", null, "Alarm services", myMenu26 ));
266 var myMenu27 = new WebFXMenu;
267 myMenu27.emptyText = '';
268 myMenu27.add(new WebFXMenuItem("All external services", "http://localhost/freeside/search/svc_external.cgi?magic=all;sortby=id", "" ));
269 myMenu27.width = 256;
270
271 myMenu10.add(new WebFXMenuItem("External services", null, "External services", myMenu27 ));
272 myMenu10.width = 256;
273
274 myMenu0.add(new WebFXMenuItem("Services", null, "Services reports", myMenu10 ));
275 var myMenu28 = new WebFXMenu;
276 myMenu28.emptyText = '';
277 myMenu28.add(new WebFXMenuItem("Inventory by agent", "http://localhost/freeside/search/report_agent_inventory.html", "" ));
278 myMenu28.add(new WebFXMenuItem("Inventory activity", "http://localhost/freeside/search/report_h_inventory_item.html", "" ));
279 myMenu28.width = 256;
280
281 myMenu0.add(new WebFXMenuItem("Inventory", null, "Inventory reports", myMenu28 ));
282 var myMenu29 = new WebFXMenu;
283 myMenu29.emptyText = '';
284 myMenu29.add(new WebFXMenuItem("RADIUS sessions", "http://localhost/freeside/search/sqlradius.html", "" ));
285 myMenu29.add(new WebFXMenuItem("RADIUS data usage", "http://localhost/freeside/search/report_sqlradius_usage.html", "" ));
286 myMenu29.add(new WebFXMenuItem("Call Detail Records (CDRs)", "http://localhost/freeside/search/report_cdr.html", "" ));
287 myMenu29.add(new WebFXMenuItem("Unrateable CDRs", "http://localhost/freeside/search/cdr.html?freesidestatus=failed;cdrbatchnum=_ALL_", "" ));
288 myMenu29.width = 256;
289
290 myMenu0.add(new WebFXMenuItem("Usage", null, "Usage reports", myMenu29 ));
291 var myMenu30 = new WebFXMenu;
292 myMenu30.emptyText = '';
293 var myMenu31 = new WebFXMenu;
294 myMenu31.emptyText = '';
295 myMenu31.add(new WebFXMenuItem("Tickets per day per Queue", "http://localhost/freeside/rt/RTx/Statistics/CallsQueueDay", "View the number of tickets created, resolved or deleted in a specific Queue, over the requested period of days" ));
296 myMenu31.add(new WebFXMenuItem("Ticket status by Queue", "http://localhost/freeside/rt/RTx/Statistics/OpenStalled", "View numbers of new, open and stalled tickets in a selected Queue" ));
297 myMenu31.add(new WebFXMenuItem("Tickets per day (multiple Queues)", "http://localhost/freeside/rt/RTx/Statistics/CallsMultiQueue", "View tickets created, resolved or deleted on in one or more Queues over a specified time period" ));
298 myMenu31.add(new WebFXMenuItem("Tickets per Day of Week", "http://localhost/freeside/rt/RTx/Statistics/DayOfWeek", "View trends showing when tickets are created, resolved or deleted" ));
299 myMenu31.add(new WebFXMenuItem("Time to resolve", "http://localhost/freeside/rt/RTx/Statistics/Resolution", "View how long tickets take to be resolved by Queue" ));
300 myMenu31.add(new WebFXMenuItem("Time to resolve (scatter graph)", "http://localhost/freeside/rt/RTx/Statistics/TimeToResolve", "View a detailed scatter graph of time to resolve tickets by Queue" ));
301 myMenu31.width = 256;
302
303 myMenu30.add(new WebFXMenuItem("Statistics", null, "", myMenu31 ));
304 myMenu30.add(new WebFXMenuSeparator());
305 myMenu30.add(new WebFXMenuItem("Advanced ticket reports", "http://localhost/freeside/rt/Search/Build.html?NewQuery=1", "List tickets by any criteria" ));
306 myMenu30.width = 256;
307
308 myMenu0.add(new WebFXMenuItem("Tickets", null, "Ticket reports", myMenu30 ));
309 var myMenu32 = new WebFXMenu;
310 myMenu32.emptyText = '';
311 myMenu32.add(new WebFXMenuItem("Employee Commission Report", "http://localhost/freeside/search/report_employee_commission.html", "" ));
312 myMenu32.add(new WebFXMenuItem("Employee Audit Report", "http://localhost/freeside/search/report_employee_audit.html", "Employee audit report" ));
313 myMenu32.width = 256;
314
315 myMenu0.add(new WebFXMenuItem("Employees", null, "Employee reports", myMenu32 ));
316 var myMenu33 = new WebFXMenu;
317 myMenu33.emptyText = '';
318 myMenu33.add(new WebFXMenuItem("All billing events", "http://localhost/freeside/search/report_cust_event.html", "All billing events for a date range" ));
319 myMenu33.add(new WebFXMenuItem("Billing event errors", "http://localhost/freeside/search/report_cust_event.html?failed=1", "Failed credit cards, processor or printer problems, etc." ));
320 myMenu33.width = 256;
321
322 myMenu0.add(new WebFXMenuItem("Billing events", null, "Billing events", myMenu33 ));
323 var myMenu34 = new WebFXMenu;
324 myMenu34.emptyText = '';
325 var myMenu35 = new WebFXMenu;
326 myMenu35.emptyText = '';
327 myMenu35.add(new WebFXMenuItem("Sales, Credits and Receipts", "http://localhost/freeside/graph/report_money_time.html", "Sales, credits and receipts summary graph" ));
328 myMenu35.add(new WebFXMenuItem("Daily Sales, Credits and Receipts", "http://localhost/freeside/graph/report_money_time_daily.html", "Sales, credits and receipts (broken down by day) summary graph" ));
329 myMenu35.add(new WebFXMenuItem("Sales Report", "http://localhost/freeside/graph/report_cust_bill_pkg.html", "Sales report and graph (by agent, package class and/or date range)" ));
330 myMenu35.add(new WebFXMenuItem("Rated Call Sales Report", "http://localhost/freeside/graph/report_cust_bill_pkg_detail.html", "Sales report and graph (by agent, package class, usage class and/or date range)" ));
331 myMenu35.add(new WebFXMenuItem("Sales with Advertising Source", "http://localhost/freeside/search/report_cust_bill_pkg_referral.html", "" ));
332 myMenu35.width = 256;
333
334 myMenu34.add(new WebFXMenuItem("Sales", null, "Sales reports", myMenu35 ));
335 var myMenu36 = new WebFXMenu;
336 myMenu36.emptyText = '';
337 myMenu36.add(new WebFXMenuItem("Credit Report", "http://localhost/freeside/search/report_cust_credit.html", "Credit report (by employee and/or date range)" ));
338 myMenu36.add(new WebFXMenuItem("Credit application detail", "http://localhost/freeside/search/report_cust_credit_bill_pkg.html", "Line item application detail" ));
339 myMenu36.add(new WebFXMenuItem("Unapplied Credits", "http://localhost/freeside/search/report_cust_credit.html?unapplied=1", "Unapplied credit report (by type and/or date range)" ));
340 myMenu36.add(new WebFXMenuItem("Voided Credits", "http://localhost/freeside/search/report_cust_credit_void.html", "Voided credit report (by employee and/or date range)" ));
341 myMenu36.width = 256;
342
343 myMenu34.add(new WebFXMenuItem("Credits", null, "Credit reports", myMenu36 ));
344 var myMenu37 = new WebFXMenu;
345 myMenu37.emptyText = '';
346 myMenu37.add(new WebFXMenuItem("Refund Report", "http://localhost/freeside/search/report_cust_refund.html", "Refund report (by type and/or date range)" ));
347 myMenu37.add(new WebFXMenuItem("Unapplied Refunds", "http://localhost/freeside/search/report_cust_refund.html?unapplied=1", "Unapplied refund report (by type and/or date range)" ));
348 myMenu37.width = 256;
349
350 myMenu34.add(new WebFXMenuItem("Refunds", null, "Refund reports", myMenu37 ));
351 var myMenu38 = new WebFXMenu;
352 myMenu38.emptyText = '';
353 myMenu38.add(new WebFXMenuItem("Agent Commissions", "http://localhost/freeside/search/report_agent_commission.html", "" ));
354 myMenu38.add(new WebFXMenuItem("Agent Commissions Per Package", "http://localhost/freeside/search/report_agent_commission_pkg.html", "" ));
355 myMenu38.add(new WebFXMenuItem("Sales Person Commissions", "http://localhost/freeside/search/report_sales_commission.html", "" ));
356 myMenu38.add(new WebFXMenuItem("Sales Person Commissions Per Package", "http://localhost/freeside/search/report_sales_commission_pkg.html", "" ));
357 myMenu38.add(new WebFXMenuItem("Employee Commissions", "http://localhost/freeside/search/report_employee_commission.html", "" ));
358 myMenu38.width = 256;
359
360 myMenu34.add(new WebFXMenuItem("Commissions", null, "Commission reports", myMenu38 ));
361 myMenu34.add(new WebFXMenuItem("A/R Aging", "http://localhost/freeside/search/report_receivables.html", "Accounts Receivable Aging report" ));
362 myMenu34.add(new WebFXMenuItem("Prepaid Income", "http://localhost/freeside/search/report_prepaid_income.html", "Prepaid income (unearned revenue)  report" ));
363 myMenu34.add(new WebFXMenuItem("Tax Liability", "http://localhost/freeside/search/report_tax.html", "Tax liability report (internal tax data)" ));
364 myMenu34.add(new WebFXMenuItem("E911 Fee Summary", "http://localhost/freeside/search/report_e911.html", "E911 fee summary" ));
365 myMenu34.add(new WebFXMenuItem("Customer Accounting Summary", "http://localhost/freeside/search/report_customer_accounting_summary.html", "Customer accounting summary report" ));
366 myMenu34.width = 256;
367
368 myMenu0.add(new WebFXMenuItem("Financial", null, "Financial reports", myMenu34 ));
369 var myMenu39 = new WebFXMenu;
370 myMenu39.emptyText = '';
371 myMenu39.add(new WebFXMenuItem("Credit limit incidents", "http://localhost/freeside/search/report_cust_main_credit_limit.html", "" ));
372 myMenu39.add(new WebFXMenuItem("System log", "http://localhost/freeside/search/log.html", "View system events and debugging information." ));
373 myMenu39.add(new WebFXMenuItem("Outgoing messages", "http://localhost/freeside/search/cust_msg.html", "View outgoing message log" ));
374 myMenu39.width = 256;
375
376 myMenu0.add(new WebFXMenuItem("Logs", null, "System and email logs", myMenu39 ));
377 myMenu0.width = 256;
378
379           myBar.add(new WebFXMenuButton('Reports', null, 'Lists, reporting and graphing', myMenu0 ));
380
381
382           var myMenu40 = new WebFXMenu;
383 myMenu40.emptyText = '';
384 myMenu40.add(new WebFXMenuItem("Quick payment entry", "http://localhost/freeside/misc/batch-cust_pay.html", "Enter multiple payments in a batch" ));
385 myMenu40.add(new WebFXMenuItem("Download invoice batches", "http://localhost/freeside/search/bill_batch.cgi", "" ));
386 myMenu40.add(new WebFXMenuItem("Bulk DID Orders", "http://localhost/freeside/browse/did_order.html", "View/manage bulk DID orders" ));
387 myMenu40.add(new WebFXMenuItem("Job Queue", "http://localhost/freeside/search/queue.html", "View pending job queue" ));
388 var myMenu41 = new WebFXMenu;
389 myMenu41.emptyText = '';
390 var myMenu42 = new WebFXMenu;
391 myMenu42.emptyText = '';
392 myMenu42.add(new WebFXMenuItem("Overview", "http://localhost/freeside/rt/Articles/index.html", "" ));
393 myMenu42.add(new WebFXMenuItem("Search", "http://localhost/freeside/rt/Articles/Article/Search.html", "" ));
394 myMenu42.add(new WebFXMenuItem("Topics", "http://localhost/freeside/rt/Articles/Topics.html", "" ));
395 myMenu42.width = 256;
396
397 myMenu41.add(new WebFXMenuItem("Articles", null, "", myMenu42 ));
398 myMenu41.add(new WebFXMenuItem("My Day", "http://localhost/freeside/rt/Tools/MyDay.html", "" ));
399 myMenu41.add(new WebFXMenuItem("My Reminders", "http://localhost/freeside/rt/Tools/MyReminders.html", "" ));
400 myMenu41.add(new WebFXMenuItem("Offline", "http://localhost/freeside/rt/Tools/Offline.html", "" ));
401 myMenu41.add(new WebFXMenuItem("Approval", "http://localhost/freeside/rt/Approvals/", "" ));
402 myMenu41.width = 256;
403
404 myMenu40.add(new WebFXMenuItem("Ticketing", null, "Ticketing tools", myMenu41 ));
405 myMenu40.add(new WebFXMenuItem("Customer email settings", "http://localhost/freeside/misc/manage_cust_email.html", "" ));
406 myMenu40.add(new WebFXMenuItem("Business card scan", "http://localhost/freeside/edit/prospect_main-upload.html", "" ));
407 myMenu40.add(new WebFXMenuItem("Attachments", "http://localhost/freeside/browse/cust_attachment.html", "View customer attachments" ));
408 var myMenu43 = new WebFXMenu;
409 myMenu43.emptyText = '';
410 myMenu43.add(new WebFXMenuItem("Customers", "http://localhost/freeside/misc/cust_main-import.cgi", "" ));
411 myMenu43.add(new WebFXMenuItem("Package definitions", "http://localhost/freeside/misc/part_pkg-import.html", "" ));
412 myMenu43.add(new WebFXMenuItem("Customer packages", "http://localhost/freeside/misc/cust_pkg-import.html", "" ));
413 myMenu43.add(new WebFXMenuItem("Customer comments", "http://localhost/freeside/misc/cust_main_note-import.html", "" ));
414 myMenu43.add(new WebFXMenuItem("One-time charges", "http://localhost/freeside/misc/cust_main-import_charges.cgi", "" ));
415 myMenu43.add(new WebFXMenuItem("Payments", "http://localhost/freeside/misc/cust_pay-import.cgi", "" ));
416 myMenu43.add(new WebFXMenuItem("Credits", "http://localhost/freeside/misc/cust_credit-import.html", "" ));
417 myMenu43.add(new WebFXMenuItem("Phone numbers (DIDs)", "http://localhost/freeside/misc/phone_avail-import.html", "" ));
418 myMenu43.add(new WebFXMenuItem("Call Detail Records (CDRs)", "http://localhost/freeside/misc/cdr-import.html", "" ));
419 myMenu43.width = 256;
420
421 myMenu40.add(new WebFXMenuItem("Importing", null, "Import tools", myMenu43 ));
422 var myMenu44 = new WebFXMenu;
423 myMenu44.emptyText = '';
424 myMenu44.add(new WebFXMenuItem("Download database dump", "http://localhost/freeside/misc/dump.cgi", "" ));
425 myMenu44.width = 256;
426
427 myMenu40.add(new WebFXMenuItem("Exporting", null, "Export tools", myMenu44 ));
428 myMenu40.add(new WebFXMenuItem("Status", "http://localhost/freeside/view/Status.html", "System status" ));
429 myMenu40.width = 256;
430
431           myBar.add(new WebFXMenuButton('Tools', null, 'Tools', myMenu40 ));
432
433
434           var myMenu45 = new WebFXMenu;
435 myMenu45.emptyText = '';
436 myMenu45.add(new WebFXMenuItem("Settings", "http://localhost/freeside/config/config-view.cgi", "" ));
437 myMenu45.add(new WebFXMenuSeparator());
438 var myMenu46 = new WebFXMenu;
439 myMenu46.emptyText = '';
440 myMenu46.add(new WebFXMenuItem("Agent types", "http://localhost/freeside/browse/agent_type.cgi", "Agent types define groups of package definitions that you can then assign to particular agents" ));
441 myMenu46.add(new WebFXMenuItem("Agents", "http://localhost/freeside/browse/agent.cgi", "Agents are resellers of your service. Agents may be limited to a subset of your full offerings (via their type)" ));
442 myMenu46.add(new WebFXMenuItem("Agent payment gateways", "http://localhost/freeside/browse/payment_gateway.html", "Credit card and electronic check processors for agent overrides" ));
443 myMenu46.width = 256;
444
445 myMenu45.add(new WebFXMenuItem("Companies", null, "", myMenu46 ));
446 var myMenu47 = new WebFXMenu;
447 myMenu47.emptyText = '';
448 myMenu47.add(new WebFXMenuItem("Sales People", "http://localhost/freeside/browse/sales.html", "Sales people bring in new business." ));
449 myMenu47.width = 256;
450
451 myMenu45.add(new WebFXMenuItem("Sales People", null, "", myMenu47 ));
452 var myMenu48 = new WebFXMenu;
453 myMenu48.emptyText = '';
454 myMenu48.add(new WebFXMenuItem("Employees", "http://localhost/freeside/browse/access_user.html", "Setup internal users" ));
455 myMenu48.add(new WebFXMenuItem("Employee groups", "http://localhost/freeside/browse/access_group.html", "Employee groups allow you to control access to the backend" ));
456 myMenu48.add(new WebFXMenuItem("Installer availability", "http://localhost/freeside/browse/sched_item.html", "Installer availability" ));
457 myMenu48.width = 256;
458
459 myMenu45.add(new WebFXMenuItem("Employees", null, "", myMenu48 ));
460 myMenu45.add(new WebFXMenuSeparator());
461 var myMenu49 = new WebFXMenu;
462 myMenu49.emptyText = '';
463 myMenu49.add(new WebFXMenuItem("Customer tags", "http://localhost/freeside/browse/part_tag.html", "" ));
464 myMenu49.add(new WebFXMenuItem("Customer classes", "http://localhost/freeside/browse/cust_class.html", "Customer classes define groups of customers for reporting." ));
465 myMenu49.add(new WebFXMenuItem("Customer categories", "http://localhost/freeside/browse/cust_category.html", "Customer categories define groups of customer classes." ));
466 myMenu49.add(new WebFXMenuSeparator());
467 myMenu49.add(new WebFXMenuItem("Contact types", "http://localhost/freeside/browse/contact_class.html", "" ));
468 myMenu49.width = 256;
469
470 myMenu45.add(new WebFXMenuItem("Customers", null, "", myMenu49 ));
471 var myMenu50 = new WebFXMenu;
472 myMenu50.emptyText = '';
473 myMenu50.add(new WebFXMenuItem("Package definitions", "http://localhost/freeside/browse/part_pkg.cgi", "One or more services are grouped together into a package and given pricing information. Customers purchase packages, not services" ));
474 myMenu50.add(new WebFXMenuItem("Package classes", "http://localhost/freeside/browse/pkg_class.html", "Package classes define groups of packages, for taxation, ordering convenience and reporting." ));
475 myMenu50.add(new WebFXMenuItem("Package categories", "http://localhost/freeside/browse/pkg_category.html", "Package categories define groups of package classes, for invoice sections." ));
476 myMenu50.add(new WebFXMenuItem("Package report classes", "http://localhost/freeside/browse/part_pkg_report_option.html", "Package classes define optional groups of packages for reporting only." ));
477 myMenu50.add(new WebFXMenuItem("Fees", "http://localhost/freeside/browse/part_fee.html", "" ));
478 myMenu50.add(new WebFXMenuItem("Discounts", "http://localhost/freeside/browse/discount.html", "" ));
479 myMenu50.add(new WebFXMenuItem("Discount classes", "http://localhost/freeside/browse/discount_class.html", "" ));
480 var myMenu51 = new WebFXMenu;
481 myMenu51.emptyText = '';
482 myMenu51.add(new WebFXMenuItem("Cancel reasons", "http://localhost/freeside/browse/reason.html?class=C", "Cancel reasons explain why a service was cancelled." ));
483 myMenu51.add(new WebFXMenuItem("Cancel reason types", "http://localhost/freeside/browse/reason_type.html?class=C", "Cancel reason types define groups of reasons." ));
484 myMenu51.add(new WebFXMenuItem("Suspend reasons", "http://localhost/freeside/browse/reason.html?class=S", "Suspend reasons explain why a service was suspended." ));
485 myMenu51.add(new WebFXMenuItem("Suspend reason types", "http://localhost/freeside/browse/reason_type.html?class=S", "Suspend reason types define groups of reasons." ));
486 myMenu51.width = 256;
487
488 myMenu50.add(new WebFXMenuItem("Cancel/Suspend Reasons", null, "", myMenu51 ));
489 myMenu50.width = 256;
490
491 myMenu45.add(new WebFXMenuItem("Packages", null, "", myMenu50 ));
492 var myMenu52 = new WebFXMenu;
493 myMenu52.emptyText = '';
494 myMenu52.add(new WebFXMenuItem("Service definitions", "http://localhost/freeside/browse/part_svc.cgi", "Services are items you offer to your customers" ));
495 myMenu52.add(new WebFXMenuItem("Service classes", "http://localhost/freeside/browse/part_svc_class.html", "Services classes are user-defined, informational types for services" ));
496 myMenu52.add(new WebFXMenuItem("Provisioning exports", "http://localhost/freeside/browse/part_export.cgi", "Provisioning services to external machines, databases and APIs" ));
497 var myMenu53 = new WebFXMenu;
498 myMenu53.emptyText = '';
499 myMenu53.add(new WebFXMenuItem("Access numbers", "http://localhost/freeside/browse/svc_acct_pop.cgi", "Points of Presence" ));
500 myMenu53.width = 256;
501
502 myMenu52.add(new WebFXMenuItem("Dialup", null, "", myMenu53 ));
503 var myMenu54 = new WebFXMenu;
504 myMenu54.emptyText = '';
505 myMenu54.add(new WebFXMenuItem("Towers", "http://localhost/freeside/browse/tower.html", "Towers and sectors" ));
506 myMenu54.add(new WebFXMenuItem("Routers", "http://localhost/freeside/browse/router.cgi", "Broadband access routers" ));
507 myMenu54.add(new WebFXMenuItem("Address blocks", "http://localhost/freeside/browse/addr_block.cgi", "Manage address blocks and block assignments to broadband routers" ));
508 myMenu54.add(new WebFXMenuItem("Address ranges", "http://localhost/freeside/browse/addr_range.html", "Designate special address ranges" ));
509 myMenu54.width = 256;
510
511 myMenu52.add(new WebFXMenuItem("Wireless broadband", null, "", myMenu54 ));
512 var myMenu55 = new WebFXMenu;
513 myMenu55.emptyText = '';
514 myMenu55.add(new WebFXMenuItem("View/Edit phone device types", "http://localhost/freeside/browse/part_device.html", "Phone device types" ));
515 myMenu55.add(new WebFXMenuItem("View/Edit bulk DID vendors", "http://localhost/freeside/browse/did_vendor.html", "Bulk DID vendors" ));
516 myMenu55.add(new WebFXMenuItem("View/Edit Carriers", "http://localhost/freeside/browse/cdr_carrier.html", "Carriers" ));
517 myMenu55.width = 256;
518
519 myMenu52.add(new WebFXMenuItem("Phone", null, "", myMenu55 ));
520 var myMenu56 = new WebFXMenu;
521 myMenu56.emptyText = '';
522 myMenu56.add(new WebFXMenuItem("RADIUS Groups", "http://localhost/freeside/browse/radius_group.html", "Manage RADIUS groups" ));
523 myMenu56.add(new WebFXMenuItem("RADIUS Clients", "http://localhost/freeside/browse/nas.html", "Manage RADIUS clients" ));
524 myMenu56.width = 256;
525
526 myMenu52.add(new WebFXMenuItem("RADIUS", null, "", myMenu56 ));
527 var myMenu57 = new WebFXMenu;
528 myMenu57.emptyText = '';
529 myMenu57.add(new WebFXMenuItem("Cable providers", "http://localhost/freeside/browse/cable_provider.html", "" ));
530 myMenu57.add(new WebFXMenuItem("Cable modem models", "http://localhost/freeside/browse/cable_model.html", "" ));
531 myMenu57.width = 256;
532
533 myMenu52.add(new WebFXMenuItem("Cable", null, "", myMenu57 ));
534 var myMenu58 = new WebFXMenu;
535 myMenu58.emptyText = '';
536 myMenu58.add(new WebFXMenuItem("Alarm system vendors", "http://localhost/freeside/browse/alarm_system.html", "" ));
537 myMenu58.add(new WebFXMenuItem("Alarm system types", "http://localhost/freeside/browse/alarm_type.html", "" ));
538 myMenu58.add(new WebFXMenuItem("Alarm central stations", "http://localhost/freeside/browse/alarm_station.html", "" ));
539 myMenu58.width = 256;
540
541 myMenu52.add(new WebFXMenuItem("Alarm", null, "", myMenu58 ));
542 var myMenu59 = new WebFXMenu;
543 myMenu59.emptyText = '';
544 myMenu59.add(new WebFXMenuItem("Circuit types", "http://localhost/freeside/browse/circuit_type.html", "" ));
545 myMenu59.add(new WebFXMenuItem("Circuit providers", "http://localhost/freeside/browse/circuit_provider.html", "" ));
546 myMenu59.add(new WebFXMenuItem("Termination types", "http://localhost/freeside/browse/circuit_termination.html", "" ));
547 myMenu59.width = 256;
548
549 myMenu52.add(new WebFXMenuItem("Circuits", null, "", myMenu59 ));
550 myMenu52.add(new WebFXMenuItem("Hardware types", "http://localhost/freeside/browse/hardware_class.html", "Set up hardware type catalog" ));
551 myMenu52.width = 256;
552
553 myMenu45.add(new WebFXMenuItem("Services", null, "", myMenu52 ));
554 myMenu45.add(new WebFXMenuSeparator());
555 var myMenu60 = new WebFXMenu;
556 myMenu60.emptyText = '';
557 myMenu60.add(new WebFXMenuItem("Billing events", "http://localhost/freeside/browse/part_event.html", "Billing actions for customers, invoices and packages" ));
558 myMenu60.add(new WebFXMenuItem("Invoice configurations", "http://localhost/freeside/browse/invoice_conf.html", "Adjust invoice settings for special-purpose notices" ));
559 myMenu60.add(new WebFXMenuItem("Invoice templates", "http://localhost/freeside/browse/invoice_template.html", "Edit templates for HTML, plaintext and typeset invoices" ));
560 myMenu60.add(new WebFXMenuItem("Prepaid cards", "http://localhost/freeside/search/prepay_credit.html", "View outstanding cards, generate new cards" ));
561 var myMenu61 = new WebFXMenu;
562 myMenu61.emptyText = '';
563 myMenu61.add(new WebFXMenuItem("Rate plans", "http://localhost/freeside/browse/rate.cgi", "Manage rate plans" ));
564 myMenu61.add(new WebFXMenuItem("Regions and prefixes", "http://localhost/freeside/browse/rate_region.html", "Manage regions and prefixes" ));
565 myMenu61.add(new WebFXMenuItem("Usage classes", "http://localhost/freeside/browse/usage_class.html", "Usage classes define groups of usage for taxation." ));
566 myMenu61.add(new WebFXMenuItem("Time periods", "http://localhost/freeside/browse/rate_time.html", "Time periods define days and hours for rate plans" ));
567 myMenu61.add(new WebFXMenuItem("Edit rates with Excel", "http://localhost/freeside/misc/rate_edit_excel.html", "Download and edit rates with Excel, then upload changes." ));
568 myMenu61.add(new WebFXMenuSeparator());
569 myMenu61.add(new WebFXMenuItem("Tiering plans", "http://localhost/freeside/browse/rate_tier.html", "Rating tiers" ));
570 myMenu61.width = 256;
571
572 myMenu60.add(new WebFXMenuItem("Call rates and regions", null, "Manage rate plans, regions and prefixes for VoIP and call billing", myMenu61 ));
573 myMenu60.add(new WebFXMenuItem("Locales and tax rates", "http://localhost/freeside/browse/cust_main_county.cgi", "Change tax rates, or break down a country into states, or a state into counties and assign different tax rates to each" ));
574 myMenu60.add(new WebFXMenuItem("Tax classes", "http://localhost/freeside/browse/part_pkg_taxclass.html", "Tax classes" ));
575 myMenu60.add(new WebFXMenuItem("Credit reasons", "http://localhost/freeside/browse/reason.html?class=R", "Credit reasons explain why a credit was issued." ));
576 myMenu60.add(new WebFXMenuItem("Credit reason types", "http://localhost/freeside/browse/reason_type.html?class=R", "Credit reason types define groups of reasons." ));
577 myMenu60.width = 256;
578
579 myMenu45.add(new WebFXMenuItem("Billing", null, "", myMenu60 ));
580 myMenu45.add(new WebFXMenuSeparator());
581 var myMenu62 = new WebFXMenu;
582 myMenu62.emptyText = '';
583 myMenu62.add(new WebFXMenuItem("Message templates", "http://localhost/freeside/browse/msg_template.html", "Templates for customer notices" ));
584 myMenu62.add(new WebFXMenuItem("Advertising sources", "http://localhost/freeside/browse/part_referral.html", "Where a customer heard about your service." ));
585 myMenu62.add(new WebFXMenuItem("Custom fields", "http://localhost/freeside/browse/part_virtual_field.html", "Locally defined fields" ));
586 myMenu62.add(new WebFXMenuItem("Translation strings", "http://localhost/freeside/browse/msgcat.html", "Translations and other customizable labels for each locale" ));
587 myMenu62.add(new WebFXMenuItem("Inventory classes and inventory", "http://localhost/freeside/browse/inventory_class.html", "Setup inventory classes and stock inventory" ));
588 myMenu62.add(new WebFXMenuItem("Upload targets", "http://localhost/freeside/browse/upload_target.html", "Billing and payment upload destinations" ));
589 myMenu62.width = 256;
590
591 myMenu45.add(new WebFXMenuItem("Miscellaneous", null, "", myMenu62 ));
592 myMenu45.width = 256;
593
594           myBar.add(new WebFXMenuButton('Configuration', null, 'Configuration and setup', myMenu45 ));
595
596
597           var myMenu63 = new WebFXMenu;
598 myMenu63.emptyText = '';
599 myMenu63.add(new WebFXMenuItem("Billing documentation", "http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation", "Freeside documentation" ));
600 myMenu63.add(new WebFXMenuItem("Ticketing documentation", "http://wiki.bestpractical.com/", "Request Tracker Wiki" ));
601 myMenu63.add(new WebFXMenuSeparator());
602 myMenu63.add(new WebFXMenuItem("About Freeside v3.8git", "javascript:about_freeside()", "" ));
603 myMenu63.add(new WebFXMenuItem("About RT v4.0.23", "http://www.bestpractical.com/rt", "Request Tracker Homepage" ));
604 myMenu63.width = 256;
605
606           myBar.add(new WebFXMenuButton('Help', null, '', myMenu63 ));
607
608
609   myBar.show( null, 'vertical' );
610   myBar.width = 154;
611
612 </SCRIPT>
613
614
615
616
617     
618     <SCRIPT TYPE="text/javascript">
619
620   function rs_init_object() {
621     var A;
622     try {
623       A=new ActiveXObject("Msxml2.XMLHTTP");
624     } catch (e) {
625       try {
626         A=new ActiveXObject("Microsoft.XMLHTTP");
627       } catch (oc) {
628         A=null;
629       }
630     }
631     if(!A && typeof XMLHttpRequest != "undefined")
632       A = new XMLHttpRequest();
633     if (!A)
634       alert("Can't create XMLHttpRequest object");
635     return A;
636
637   }
638
639 </SCRIPT>
640
641     <SCRIPT TYPE="text/javascript">
642
643   function logout() {
644     // count args; build URL
645     var url = "http://localhost/freeside/loginout/logout.html";
646
647     var xmlhttp = rs_init_object();
648     xmlhttp.open("GET", url, false, "magic", "notyet");
649     xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
650     xmlhttp.send(null);
651
652     if (xmlhttp.readyState != 4) {
653       alert("Logout failed: readyState is " + xmlhttp.readyState);
654       return;
655     }
656
657     if (xmlhttp.status != 200) {
658       alert("Logout failed: status is " + xmlhttp.status);
659     } else {
660       var data = xmlhttp.responseText;
661       // alert('received response: ' + data);
662       if ( data.indexOf("<b>System error</b>") > -1 ) {
663         var w;
664         if ( w = window.open("about:blank") ) {
665           w.document.write(data);
666         } else {
667           // popup blocking?  should use an overlib popup instead 
668           alert("Error popup disabled; try disabling popup blocking to see");
669         }
670       } else {
671         window.location = "http://localhost/freeside/loginout/logout.html";
672       }
673     }
674   }
675
676 </SCRIPT>
677
678
679     
680
681   </HEAD>
682   <BODY BGCOLOR="#f8f8f8" onLoad="agent_changed(document.edit_topform.agentnum);
683                          hide_supp_pkgs()" STYLE="margin-top:0; margin-bottom:0; margin-left:0px; margin-right:0px">
684     <table width="100%" CELLPADDING=0 CELLSPACING=0 STYLE="padding-left:0px; padding-right:4px" CLASS="fshead">
685       <tr>
686         <td BGCOLOR="#ffffff"><IMG BORDER=0 ALT="freeside" HEIGHT="36" SRC="http://localhost/freeside/view/REAL_logo.cgi"></td>
687         <td align=left BGCOLOR="#ffffff"> <!-- valign="top" -->
688           <font size=6>Freeside Test 3.8.1</font>
689         </td>
690         <td align=right valign=top BGCOLOR="#ffffff"><FONT SIZE="-1">Logged in as <b>test&nbsp;</b> <FONT SIZE="-2"><a href="javascript:void(0);" onClick="logout();">logout</a></FONT><br></FONT><FONT SIZE="-2"><a href="http://localhost/freeside/pref/pref.html" STYLE="color: #000000">Preferences</a>
691           <BR></FONT>
692         </td>
693       </tr>
694     </table>
695
696     <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0>
697
698 <link href="http://localhost/freeside/elements/freeside-menu.css" type="text/css" rel="stylesheet">
699
700
701       <TR CLASS="fsmenubar">
702
703
704         <TD COLSPAN="7" WIDTH="100%" STYLE="padding:1px 0px 0px 0px;border-top: 1px solid #7e0079" BGCOLOR="#cccccc">
705           <SCRIPT TYPE="text/javascript">
706             document.write(myBar);
707           </SCRIPT>
708         </TD>
709
710       </TR>
711
712       <TR CLASS="fssearchbar">
713
714         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
715           
716   <FORM ACTION="http://localhost/freeside/search/prospect_main.html" METHOD="GET" STYLE="margin:0">
717     <INPUT NAME="search_prospect" TYPE="text" VALUE="(name, company or phone)" STYLE="width:155px" onFocus="clearhint_search_prospect(this);" onClick="clearhint_search_prospect(this);" CLASS="fstext"><BR>
718     <A HREF="http://localhost/freeside/search/report_prospect_main.html" CLASS="fslink" STYLE="font-size: 11px">Adv</A>
719     <INPUT TYPE="submit" VALUE="Search prospects" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px;padding-left:1px;padding-right:1px">
720   </FORM>
721   
722
723
724 <SCRIPT TYPE="text/javascript">
725
726   function clearhint_search_prospect (what) {
727     if ( what.value == '(name, company or phone)' )
728       what.value = '';
729   }
730
731 </SCRIPT>
732
733         </TD>
734
735         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
736           
737   <FORM ACTION="http://localhost/freeside/search/cust_main.cgi" METHOD="POST" STYLE="margin:0">
738     <INPUT NAME="search_cust" TYPE="text" VALUE="(cust #, name, company or contact phone)" STYLE="width:246px" onFocus="clearhint_search_cust(this);" onClick="clearhint_search_cust(this);" CLASS="fstext"><BR>
739     <A HREF="http://localhost/freeside/search/report_cust_main.html" CLASS="fslink" STYLE="font-size: 11px">Advanced</A>
740     <INPUT TYPE="submit" VALUE="Search customers" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
741   </FORM>
742   
743
744
745 <SCRIPT TYPE="text/javascript">
746
747   function clearhint_search_cust (what) {
748     if ( what.value == '(cust #, name, company or contact phone)' )
749       what.value = '';
750   }
751
752 </SCRIPT>
753
754         </TD>
755
756         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="center">
757           
758 <SCRIPT TYPE="text/javascript">
759
760   function clearhint_search_address2 (what) {
761     if ( what.value == '(Unit #)' )
762       what.value = '';
763   }
764
765 </SCRIPT>
766
767         </TD>
768
769         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right">
770           
771   <FORM ACTION="http://localhost/freeside/search/cust_bill.html" METHOD="GET" STYLE="margin:0;display:inline">
772     <INPUT NAME="invnum" TYPE="text" VALUE="(inv #)" STYLE="width:56px" onFocus="clearhint_search_invoice(this);" onClick="clearhint_search_invoice(this);" CLASS="fstext">
773     <A HREF="http://localhost/freeside/search/report_cust_bill.html" CLASS="fslink" STYLE="font-size: 11px">Adv</A>    <BR>
774     <INPUT TYPE="submit" VALUE="Search invoices" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px;padding-left:1px;padding-right:1px;margin-top:3px">
775   </FORM>
776   
777
778
779 <SCRIPT TYPE="text/javascript">
780
781   function clearhint_search_invoice (what) {
782     if ( what.value == '(inv #)' )
783       what.value = '';
784   }
785
786 </SCRIPT>
787
788         </TD>
789
790         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
791           
792   <FORM ACTION="http://localhost/freeside/search/cust_svc.html" METHOD="GET" STYLE="margin:0">
793     <INPUT NAME="search_svc" TYPE="text" VALUE="(user, email, ip, mac, domain or service phone)" STYLE="width:271px" onFocus="clearhint_search_svc(this);" onClick="clearhint_search_svc(this);" CLASS="fstext"><BR>
794     <A NOTYET="http://localhost/freeside/search/svc_Smarter.html" STYLE="color: #cccccc; font-size:11px">Advanced</A>
795     <INPUT TYPE="submit" VALUE="Search services" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
796   </FORM>
797   
798
799
800 <SCRIPT TYPE="text/javascript">
801
802   function clearhint_search_svc (what) {
803     if ( what.value == '(user, email, ip, mac, domain or service phone)' )
804       what.value = '';
805   }
806
807 </SCRIPT>
808
809         </TD>
810
811         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px;padding-right:2px">
812           
813   <FORM ACTION="http://localhost/freeside//rt/index.html" METHOD="GET" STYLE="margin:0">
814     <INPUT NAME="q" TYPE="text" VALUE="(ticket #, subject, email or fulltext:text)" STYLE="width:223px" onFocus="clearhint_search_ticket(this);" onClick="clearhint_search_ticket(this);" CLASS="fstext"><BR>
815     <A HREF="http://localhost/freeside//rt/Search/Build.html?NewQuery=1" CLASS="fslink" STYLE="font-size:11px">Advanced</A>
816     <INPUT TYPE="submit" VALUE="Search tickets" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
817   </FORM>
818   
819
820
821 <SCRIPT TYPE="text/javascript">
822
823   function clearhint_search_ticket (what) {
824     if ( what.value == '(ticket #, subject, email or fulltext:text)' )
825       what.value = '';
826   }
827
828 </SCRIPT>
829
830         </TD>
831
832       </TR>
833     </TABLE>
834
835
836
837     <TABLE WIDTH="100%" HEIGHT="100%" CELLSPACING=0 CELLPADDING=4>
838
839       <TR HEIGHT="100%">
840
841         <TD CLASS="background" HEIGHT="100%" VALIGN="top"> <!-- WIDTH="100%"> -->
842
843           <FONT SIZE=6>
844             Edit Package definition
845           </FONT>
846
847           <BR><BR>
848
849           
850    <A HREF="http://localhost/freeside/browse/part_pkg.cgi" >View all Package definitions</A>
851
852 <BR><BR>
853
854
855     <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws.js"></SCRIPT>
856   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_iframe.js"></SCRIPT>
857   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_draggable.js"></SCRIPT>
858   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_crossframe.js"></SCRIPT>
859   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/iframecontentmws.js"></SCRIPT>
860   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/ajaxcontentmws.js"></SCRIPT>
861   <SCRIPT TYPE="text/javascript">
862
863     function freq_changed(what) {
864       var freq = what.options[what.selectedIndex].value;
865
866       if ( freq == '0' ) {
867         what.form.recur_fee.disabled = true;
868         what.form.recur_fee.style.backgroundColor = '#dddddd';
869         what.form.recur_show_zero.disabled = true;
870         //what.form.recur_show_zero.style.backgroundColor= '#dddddd';
871       } else {
872         what.form.recur_fee.disabled = false;
873         what.form.recur_fee.style.backgroundColor = '#ffffff';
874         recur_changed( what.form.recur_fee );
875         //what.form.recur_show_zero.style.backgroundColor= '#ffffff';
876       }
877
878     }
879
880     function setup_changed(what) {
881       var setup = what.value;
882       if ( parseFloat(setup) == 0 ) {
883         what.form.setup_show_zero.disabled = false;
884       } else {
885         what.form.setup_show_zero.disabled = true;
886       }
887     }
888
889     function recur_changed(what) {
890       var recur = what.value;
891       if ( parseFloat(recur) == 0 ) {
892         what.form.recur_show_zero.disabled = false;
893       } else {
894         what.form.recur_show_zero.disabled = true;
895       }
896     }
897
898     function agent_changed(what) {
899
900       var agentnum;
901       if ( what.type == 'select-one' ) {
902         agentnum = what.options[what.selectedIndex].value;
903       } else {
904         agentnum = what.value;
905       }
906
907       if ( agentnum == 0 ) {
908         what.form.agent_type.disabled = false;
909         //what.form.agent_type.style.backgroundColor = '#ffffff';
910         what.form.agent_type.style.visibility = '';
911       } else {
912         what.form.agent_type.disabled = true;
913         //what.form.agent_type.style.backgroundColor = '#dddddd';
914         what.form.agent_type.style.visibility = 'hidden';
915       }
916
917     }
918
919     function aux_planchanged(what) { //?
920
921       var plan = what.options[what.selectedIndex].value;
922       var table = document.getElementById('TableNumber6') // XXX NOT ROBUST
923
924       if ( plan == 'flat' || plan == 'prorate' || plan == 'subscription' ) {
925         //table.disabled = false;
926         table.style.visibility = '';
927       } else {
928         //table.disabled = true;
929         table.style.visibility = 'hidden';
930       }
931
932     }
933
934     // some magic to make "supplemental packages" less obvious
935     var supp_pkg_rows = [];
936     function show_supp_pkgs_click() {
937       supp_pkg_rows[0].style.display = '';
938       this.onclick = '';
939       this.style.backgroundColor = '';
940       this.style.border = '';
941       this.style.padding = '';
942     }
943
944     function hide_supp_pkgs() {
945       var all_selects = document.getElementsByTagName('select');
946       for (var i=0; i < all_selects.length; i++) {
947         if ( all_selects[i].id.match(/^supp_dst_pkgpart/) ) {
948           supp_pkg_rows.push( all_selects[i].parentNode.parentNode );
949         }
950       }
951       if ( supp_pkg_rows.length == 1 ) {
952         // there are none configured, so hide the row to create a new one
953         supp_pkg_rows[0].style.display = 'none';
954         var button = document.getElementById('show_supp_pkgs');
955         button.onclick = show_supp_pkgs_click;
956         button.style.backgroundColor = '#cccccc';
957         button.style.border = '1px solid #7e0079';
958         button.style.padding = '1px';
959       }
960     }
961
962     function finish_edit_fcc(id) {
963       cClick();
964       show_fcc_options(id); // refresh the display
965     }
966
967 function confirm_submit(f) {
968   return true;
969 }
970 </SCRIPT>
971
972   
973
974
975   <FORM NAME   = "edit_topform"
976         METHOD = POST
977         ACTION = "http://localhost/freeside/edit/process/part_pkg.cgi"
978         onSubmit="return confirm_submit(this)"
979   >
980
981   <INPUT TYPE="hidden" NAME="svcdb" VALUE="part_pkg">
982   <INPUT TYPE="hidden" NAME="pkgpart" VALUE="2">
983
984   <FONT SIZE="+1"><B>
985   Package Definition
986   </B></FONT>
987   #2
988
989
990 <TABLE ID="TableNumber0" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
991
992
993       <INPUT TYPE  = "hidden"
994        NAME  = "clone"
995        ID    = "clone"
996        VALUE = ""
997 >
998
999
1000
1001
1002
1003       <INPUT TYPE  = "hidden"
1004        NAME  = "pkgnum"
1005        ID    = "pkgnum"
1006        VALUE = ""
1007 >
1008
1009
1010
1011
1012
1013       <INPUT TYPE  = "hidden"
1014        NAME  = "custom"
1015        ID    = "custom"
1016        VALUE = ""
1017 >
1018
1019
1020
1021
1022
1023       <INPUT TYPE  = "hidden"
1024        NAME  = "family_pkgpart"
1025        ID    = "family_pkgpart"
1026        VALUE = "2"
1027 >
1028
1029
1030
1031
1032
1033       <INPUT TYPE  = "hidden"
1034        NAME  = "successor"
1035        ID    = "successor"
1036        VALUE = ""
1037 >
1038
1039
1040
1041
1042
1043       <TR>
1044   <TD CLASS="background" COLSPAN=99>
1045     <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 id="table00000000">
1046       <TR>
1047         <TD VALIGN="top">
1048           <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
1049
1050
1051
1052
1053       <TR>
1054
1055   <TD ALIGN  = "right"
1056       VALIGN = "top"
1057       STYLE  = "padding-top: 3px"
1058       ID     = "pkg_label"
1059   >Package</TD>
1060
1061
1062
1063   <TD   ID="pkg_input0"><INPUT TYPE  = "text"
1064                            NAME  = "pkg"
1065                            ID    = "pkg"
1066                            VALUE = "Monthly prorated account"
1067                            SIZE="40"
1068                            MAXLENGTH="50"
1069                            
1070                            
1071                            
1072                            
1073                     >
1074 </TD>
1075
1076 </TR>
1077
1078
1079
1080
1081
1082       <TR>
1083
1084   <TD ALIGN  = "right"
1085       VALIGN = "top"
1086       STYLE  = "padding-top: 3px"
1087       ID     = "comment_label"
1088   >Comment (customer-hidden)</TD>
1089
1090
1091
1092   <TD   ID="comment_input0"><INPUT TYPE  = "text"
1093                            NAME  = "comment"
1094                            ID    = "comment"
1095                            VALUE = ""
1096                            SIZE="40"
1097                            
1098                            
1099                            
1100                            
1101                            
1102                     >
1103 </TD>
1104
1105 </TR>
1106
1107
1108
1109
1110
1111       
1112   <INPUT TYPE  = "hidden"
1113          NAME  = "agentnum"
1114          ID    = "agentnum"
1115          VALUE = "1"
1116   >
1117
1118       <TR>
1119       </TR>
1120
1121
1122
1123
1124
1125       
1126   <TR>
1127     <TD ALIGN="right">Package class</TD>
1128     <TD>
1129       
1130 <SELECT 
1131         NAME = "classnum"
1132         ID   = "classnum"
1133         
1134         
1135         
1136 >
1137
1138
1139     <OPTION VALUE="">(none)
1140
1141     <OPTION VALUE="1"
1142             
1143     >
1144      Fees
1145
1146
1147 </SELECT>
1148
1149
1150
1151     </TD>
1152   </TR>
1153
1154
1155
1156
1157
1158
1159       <TR>
1160
1161   <TD ALIGN  = "right"
1162       VALIGN = "top"
1163       STYLE  = "padding-top: 3px"
1164       ID     = "disabled_label"
1165   >Disable new orders</TD>
1166
1167
1168
1169   <TD >
1170     <INPUT TYPE  = "checkbox"
1171                            NAME  = "disabled"
1172                            ID    = "disabled"
1173                            VALUE = "Y"
1174                            
1175                            
1176                            
1177                     >
1178
1179   </TD>
1180
1181 </TR>
1182
1183
1184
1185
1186
1187       <TR>
1188
1189   <TD ALIGN  = "right"
1190       VALIGN = "top"
1191       STYLE  = "padding-top: 3px"
1192       ID     = "disable_line_item_date_ranges_label"
1193   >Disable line item date ranges</TD>
1194
1195
1196
1197   <TD >
1198     <INPUT TYPE  = "checkbox"
1199                            NAME  = "disable_line_item_date_ranges"
1200                            ID    = "disable_line_item_date_ranges"
1201                            VALUE = "Y"
1202                            
1203                            
1204                            
1205                     >
1206
1207   </TD>
1208
1209 </TR>
1210
1211
1212
1213
1214
1215       <TR>
1216
1217   <TD ALIGN  = "right"
1218       VALIGN = "top"
1219       STYLE  = "padding-top: 3px"
1220       ID     = "start_on_hold_label"
1221   >Start on hold</TD>
1222
1223
1224
1225   <TD >
1226     <INPUT TYPE  = "checkbox"
1227                            NAME  = "start_on_hold"
1228                            ID    = "start_on_hold"
1229                            VALUE = "Y"
1230                            
1231                            
1232                            
1233                     >
1234
1235   </TD>
1236
1237 </TR>
1238
1239
1240
1241
1242
1243       </TABLE>
1244
1245 <TABLE ID="TableNumber1" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
1246
1247 <TR>
1248   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
1249 </TR>
1250
1251 <TR>
1252   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
1253     <FONT SIZE="+1">Pricing</FONT>
1254   </TH>
1255 </TR>
1256
1257
1258
1259
1260
1261
1262
1263
1264       
1265   <TR>
1266
1267   <TD ALIGN  = "right"
1268       VALIGN = "top"
1269       STYLE  = "padding-top: 3px"
1270       ID     = "plan_label"
1271   >Price plan</TD>
1272
1273
1274
1275     <TD >
1276
1277
1278       
1279     <SELECT NAME          = "plan"
1280             ID            = "plan"
1281             previousValue = "prorate"
1282             previousText  = "Prorate (Nth of month billing)"
1283             onChange="planchanged(this);"
1284     >
1285
1286
1287         <OPTION VALUE="flat"
1288                 
1289         >Anniversary</OPTION>
1290
1291
1292         <OPTION VALUE="flat_delayed"
1293                 
1294         >Anniversary, with intro period</OPTION>
1295
1296
1297         <OPTION VALUE="flat_introrate"
1298                 
1299         >Anniversary, with intro price</OPTION>
1300
1301
1302         <OPTION VALUE="prorate"
1303                  SELECTED
1304         >Prorate (Nth of month billing)</OPTION>
1305
1306
1307         <OPTION VALUE="prorate_delayed"
1308                 
1309         >Prorate (Nth of month billing), with intro period</OPTION>
1310
1311
1312         <OPTION VALUE="prorate_calendar"
1313                 
1314         >Prorate (calendar cycle)</OPTION>
1315
1316
1317         <OPTION VALUE="prepaid"
1318                 
1319         >Prepaid, no automatic cycle</OPTION>
1320
1321
1322         <OPTION VALUE="subscription"
1323                 
1324         >Subscription (Nth of month, full charge for first)</OPTION>
1325
1326
1327         <OPTION VALUE="sqlradacct_hour"
1328                 
1329         >Usage charges from RADIUS</OPTION>
1330
1331
1332         <OPTION VALUE="sqlradacct_daily"
1333                 
1334         >Daily usage charges from RADIUS</OPTION>
1335
1336
1337         <OPTION VALUE="voip_cdr"
1338                 
1339         >VoIP/telco CDR rating (standard)</OPTION>
1340
1341
1342         <OPTION VALUE="voip_inbound"
1343                 
1344         >VoIP/telco CDR rating (inbound)</OPTION>
1345
1346
1347         <OPTION VALUE="voip_tiered"
1348                 
1349         >VoIP/telco CDR tiered rating</OPTION>
1350
1351
1352         <OPTION VALUE="cdr_termination"
1353                 
1354         >VoIP/telco CDR termination</OPTION>
1355
1356
1357         <OPTION VALUE="prepaid_nibblebill"
1358                 
1359         >Prepaid FreeSWITCH mod_nibblebill</OPTION>
1360
1361
1362         <OPTION VALUE="bulk_simple"
1363                 
1364         >Bulk billing based on number of active services (at invoice generation)</OPTION>
1365
1366
1367         <OPTION VALUE="bulk"
1368                 
1369         >Bulk billing based on number of active services (during billing period)</OPTION>
1370
1371
1372         <OPTION VALUE="agent"
1373                 
1374         >Wholesale bulk billing for agent</OPTION>
1375
1376
1377         <OPTION VALUE="agent_cdr"
1378                 
1379         >Wholesale CDR cost billing for agent</OPTION>
1380
1381
1382         <OPTION VALUE="torrus_bw_percentile"
1383                 
1384         >Bandwidth (95th percentile)</OPTION>
1385
1386
1387         <OPTION VALUE="torrus_bw_usage"
1388                 
1389         >Bandwidth (volume)</OPTION>
1390
1391
1392         <OPTION VALUE="rt_time"
1393                 
1394         >Project Billing (RT)</OPTION>
1395
1396
1397         <OPTION VALUE="sql_generic"
1398                 
1399         >Bulk (per-domain from SQL query)</OPTION>
1400
1401
1402         <OPTION VALUE="sql_external"
1403                 
1404         >External SQL query</OPTION>
1405
1406
1407         <OPTION VALUE="flat_comission_cust"
1408                 
1409         >Commission per active customer</OPTION>
1410
1411
1412         <OPTION VALUE="flat_comission"
1413                 
1414         >Commission per (any) active package</OPTION>
1415
1416
1417         <OPTION VALUE="flat_comission_pkg"
1418                 
1419         >Commission per (selected) active package</OPTION>
1420
1421
1422     </SELECT>
1423
1424
1425
1426
1427     </TD>
1428
1429   </TR>
1430
1431
1432
1433
1434
1435
1436
1437       <TR>
1438
1439   <TD ALIGN  = "right"
1440       VALIGN = "top"
1441       STYLE  = "padding-top: 3px"
1442       ID     = "setup_fee_label"
1443   >Setup fee</TD>
1444
1445
1446
1447   <TD   ID="setup_fee_input0">$<INPUT TYPE  = "text"
1448                            NAME  = "setup_fee"
1449                            ID    = "setup_fee"
1450                            VALUE = "20"
1451                            SIZE="8"
1452                            
1453                            
1454                            
1455                            
1456                            onChange="setup_changed(this)" onKeyDown="setup_changed(this)" onKeyUp="setup_changed(this)" onKeyPress="setup_changed(this)"
1457                     >
1458 </TD>
1459
1460 </TR>
1461
1462
1463
1464
1465
1466
1467
1468       <TR>
1469
1470   <TD ALIGN  = "right"
1471       VALIGN = "top"
1472       STYLE  = "padding-top: 3px"
1473       ID     = "setup_show_zero_label"
1474   >Show zero setup</TD>
1475
1476
1477
1478   <TD >
1479     <INPUT TYPE  = "checkbox"
1480                            NAME  = "setup_show_zero"
1481                            ID    = "setup_show_zero"
1482                            VALUE = "Y"
1483                            
1484                            DISABLED
1485                            
1486                     >
1487
1488   </TD>
1489
1490 </TR>
1491
1492
1493
1494
1495
1496       
1497     <TR>
1498
1499   <TD ALIGN  = "right"
1500       VALIGN = "top"
1501       STYLE  = "padding-top: 3px"
1502       ID     = "freq_label"
1503   >Recurring fee frequency</TD>
1504
1505
1506
1507       <TD  >
1508
1509     
1510 <SELECT NAME          = "freq"
1511         ID            = "freq"
1512         previousValue = "1"
1513         previousText  = "monthly"
1514         
1515         
1516         
1517         
1518         onChange="freq_changed(this)"
1519 >
1520
1521
1522       <OPTION VALUE="0"
1523               
1524       >
1525         (no recurring fee)
1526       </OPTION>
1527
1528
1529       <OPTION VALUE="1h"
1530               
1531       >
1532         hourly
1533       </OPTION>
1534
1535
1536       <OPTION VALUE="1d"
1537               
1538       >
1539         daily
1540       </OPTION>
1541
1542
1543       <OPTION VALUE="2d"
1544               
1545       >
1546         every two days
1547       </OPTION>
1548
1549
1550       <OPTION VALUE="3d"
1551               
1552       >
1553         every three days
1554       </OPTION>
1555
1556
1557       <OPTION VALUE="1w"
1558               
1559       >
1560         weekly
1561       </OPTION>
1562
1563
1564       <OPTION VALUE="2w"
1565               
1566       >
1567         biweekly (every 2 weeks)
1568       </OPTION>
1569
1570
1571       <OPTION VALUE="1"
1572               SELECTED
1573       >
1574         monthly
1575       </OPTION>
1576
1577
1578       <OPTION VALUE="45d"
1579               
1580       >
1581         every 45 days
1582       </OPTION>
1583
1584
1585       <OPTION VALUE="2"
1586               
1587       >
1588         bimonthly (every 2 months)
1589       </OPTION>
1590
1591
1592       <OPTION VALUE="3"
1593               
1594       >
1595         quarterly (every 3 months)
1596       </OPTION>
1597
1598
1599       <OPTION VALUE="4"
1600               
1601       >
1602         every 4 months
1603       </OPTION>
1604
1605
1606       <OPTION VALUE="137d"
1607               
1608       >
1609         every 4 1/2 months (137 days)
1610       </OPTION>
1611
1612
1613       <OPTION VALUE="6"
1614               
1615       >
1616         semiannually (every 6 months)
1617       </OPTION>
1618
1619
1620       <OPTION VALUE="12"
1621               
1622       >
1623         annually
1624       </OPTION>
1625
1626
1627       <OPTION VALUE="13"
1628               
1629       >
1630         every 13 months (annually +1 month)
1631       </OPTION>
1632
1633
1634       <OPTION VALUE="24"
1635               
1636       >
1637         biannually (every 2 years)
1638       </OPTION>
1639
1640
1641       <OPTION VALUE="36"
1642               
1643       >
1644         triannually (every 3 years)
1645       </OPTION>
1646
1647
1648       <OPTION VALUE="48"
1649               
1650       >
1651         (every 4 years)
1652       </OPTION>
1653
1654
1655       <OPTION VALUE="60"
1656               
1657       >
1658         (every 5 years)
1659       </OPTION>
1660
1661
1662       <OPTION VALUE="120"
1663               
1664       >
1665         (every 10 years)
1666       </OPTION>
1667
1668
1669 </SELECT>
1670
1671
1672
1673       </TD>
1674     </TR>
1675
1676
1677
1678
1679
1680       <TR>
1681
1682   <TD ALIGN  = "right"
1683       VALIGN = "top"
1684       STYLE  = "padding-top: 3px"
1685       ID     = "recur_fee_label"
1686   >Recurring fee</TD>
1687
1688
1689
1690   <TD   ID="recur_fee_input0">$<INPUT TYPE  = "text"
1691                            NAME  = "recur_fee"
1692                            ID    = "recur_fee"
1693                            VALUE = "30"
1694                            SIZE="8"
1695                            
1696                            
1697                            
1698                            0
1699                            onChange="recur_changed(this)" onKeyDown="recur_changed(this)" onKeyUp="recur_changed(this)" onKeyPress="recur_changed(this)"
1700                     >
1701 </TD>
1702
1703 </TR>
1704
1705
1706
1707
1708
1709
1710
1711       <TR>
1712
1713   <TD ALIGN  = "right"
1714       VALIGN = "top"
1715       STYLE  = "padding-top: 3px"
1716       ID     = "recur_show_zero_label"
1717   >Show zero recurring</TD>
1718
1719
1720
1721   <TD >
1722     <INPUT TYPE  = "checkbox"
1723                            NAME  = "recur_show_zero"
1724                            ID    = "recur_show_zero"
1725                            VALUE = "Y"
1726                            
1727                            DISABLED
1728                            
1729                     >
1730
1731   </TD>
1732
1733 </TR>
1734
1735
1736
1737
1738
1739                 </TABLE>
1740         </TD>
1741         <TD VALIGN="top" STYLE="padding-left:12px">
1742           <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
1743
1744
1745
1746
1747       <TR>
1748   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
1749     <FONT SIZE="+1">Taxation</FONT>
1750   </TH>
1751 </TR>
1752
1753
1754
1755
1756
1757       <TR>
1758
1759   <TD ALIGN  = "right"
1760       VALIGN = "top"
1761       STYLE  = "padding-top: 3px"
1762       ID     = "setuptax_label"
1763   >Setup fee tax exempt</TD>
1764
1765
1766
1767   <TD >
1768     <INPUT TYPE  = "checkbox"
1769                            NAME  = "setuptax"
1770                            ID    = "setuptax"
1771                            VALUE = "Y"
1772                            
1773                            
1774                            
1775                     >
1776
1777   </TD>
1778
1779 </TR>
1780
1781
1782
1783
1784
1785       <TR>
1786
1787   <TD ALIGN  = "right"
1788       VALIGN = "top"
1789       STYLE  = "padding-top: 3px"
1790       ID     = "recurtax_label"
1791   >Recurring fee tax exempt</TD>
1792
1793
1794
1795   <TD >
1796     <INPUT TYPE  = "checkbox"
1797                            NAME  = "recurtax"
1798                            ID    = "recurtax"
1799                            VALUE = "Y"
1800                            
1801                            
1802                            
1803                     >
1804
1805   </TD>
1806
1807 </TR>
1808
1809
1810
1811
1812
1813       
1814   <INPUT TYPE="hidden" NAME="taxclass" VALUE="">
1815
1816
1817
1818
1819
1820       <INPUT TYPE  = "hidden"
1821        NAME  = "taxproductnums"
1822        ID    = "taxproductnums"
1823        VALUE = "setup,recur,1,2,3"
1824 >
1825
1826
1827
1828
1829
1830       
1831   <TR>
1832
1833   <TD ALIGN  = "right"
1834       VALIGN = "top"
1835       STYLE  = "padding-top: 3px; display:none"
1836       ID     = "taxproduct_select_label"
1837   >Tax products</TD>
1838
1839
1840
1841     <TD STYLE="display:none">
1842
1843
1844       
1845
1846       <DIV ID="taxproduct_selectd(default)"
1847            STYLE="display: none; z-index: 0"
1848       >
1849
1850         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum" VALUE="">
1851
1852   <INPUT TYPE="hidden" NAME="tax_override" VALUE="">
1853
1854 </TABLE>
1855
1856       </DIV>
1857
1858
1859       <DIV ID="taxproduct_selectdsetup"
1860            STYLE="display: none; z-index: 0"
1861       >
1862
1863         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum_setup" VALUE="">
1864
1865   <INPUT TYPE="hidden" NAME="tax_override_setup" VALUE="">
1866
1867 </TABLE>
1868
1869       </DIV>
1870
1871
1872       <DIV ID="taxproduct_selectdrecur"
1873            STYLE="display: none; z-index: 0"
1874       >
1875
1876         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum_recur" VALUE="">
1877
1878   <INPUT TYPE="hidden" NAME="tax_override_recur" VALUE="">
1879
1880 </TABLE>
1881
1882       </DIV>
1883
1884
1885       <DIV ID="taxproduct_selectd1"
1886            STYLE="display: none; z-index: 0"
1887       >
1888
1889         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum_1" VALUE="">
1890
1891   <INPUT TYPE="hidden" NAME="tax_override_1" VALUE="">
1892
1893 </TABLE>
1894
1895       </DIV>
1896
1897
1898       <DIV ID="taxproduct_selectd2"
1899            STYLE="display: none; z-index: 0"
1900       >
1901
1902         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum_2" VALUE="">
1903
1904   <INPUT TYPE="hidden" NAME="tax_override_2" VALUE="">
1905
1906 </TABLE>
1907
1908       </DIV>
1909
1910
1911       <DIV ID="taxproduct_selectd3"
1912            STYLE="display: none; z-index: 0"
1913       >
1914
1915         <TABLE>  <INPUT TYPE="hidden" NAME="taxproductnum_3" VALUE="">
1916
1917   <INPUT TYPE="hidden" NAME="tax_override_3" VALUE="">
1918
1919 </TABLE>
1920
1921       </DIV>
1922
1923
1924
1925
1926
1927     </TD>
1928
1929   </TR>
1930
1931
1932
1933
1934
1935
1936       </TABLE>
1937
1938 <TABLE ID="TableNumber2" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
1939
1940 <TR>
1941   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
1942 </TR>
1943
1944 <TR>
1945   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
1946     <FONT SIZE="+1">Promotions</FONT>
1947   </TH>
1948 </TR>
1949
1950
1951
1952
1953
1954
1955
1956
1957       <TR>
1958
1959   <TD ALIGN  = "right"
1960       VALIGN = "top"
1961       STYLE  = "padding-top: 3px"
1962       ID     = "promo_code_label"
1963   >Promotional code</TD>
1964
1965
1966
1967   <TD   ID="promo_code_input0"><INPUT TYPE  = "text"
1968                            NAME  = "promo_code"
1969                            ID    = "promo_code"
1970                            VALUE = ""
1971                            SIZE="15"
1972                            
1973                            
1974                            
1975                            
1976                            
1977                     >
1978 </TD>
1979
1980 </TR>
1981
1982
1983
1984
1985
1986       </TABLE>
1987
1988 <TABLE ID="TableNumber3" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
1989
1990 <TR>
1991   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
1992 </TR>
1993
1994 <TR>
1995   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
1996     <FONT SIZE="+1">Cost tracking</FONT>
1997   </TH>
1998 </TR>
1999
2000
2001
2002
2003
2004
2005
2006
2007       <TR>
2008
2009   <TD ALIGN  = "right"
2010       VALIGN = "top"
2011       STYLE  = "padding-top: 3px"
2012       ID     = "setup_cost_label"
2013   >Setup cost</TD>
2014
2015
2016
2017   <TD   ID="setup_cost_input0">$<INPUT TYPE  = "text"
2018                            NAME  = "setup_cost"
2019                            ID    = "setup_cost"
2020                            VALUE = ""
2021                            SIZE="8"
2022                            
2023                            
2024                            
2025                            
2026                            
2027                     >
2028 </TD>
2029
2030 </TR>
2031
2032
2033
2034
2035
2036
2037
2038       <TR>
2039
2040   <TD ALIGN  = "right"
2041       VALIGN = "top"
2042       STYLE  = "padding-top: 3px"
2043       ID     = "recur_cost_label"
2044   >Recur cost</TD>
2045
2046
2047
2048   <TD   ID="recur_cost_input0">$<INPUT TYPE  = "text"
2049                            NAME  = "recur_cost"
2050                            ID    = "recur_cost"
2051                            VALUE = ""
2052                            SIZE="8"
2053                            
2054                            
2055                            
2056                            
2057                            
2058                     >
2059 </TD>
2060
2061 </TR>
2062
2063
2064
2065
2066
2067
2068
2069                 </TABLE>
2070         </TD>
2071         <TD VALIGN="top" STYLE="padding-left:12px">
2072           <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2073
2074
2075
2076
2077       <TR>
2078   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
2079     <FONT SIZE="+1">Agent (reseller) types</FONT>
2080   </TH>
2081 </TR>
2082
2083
2084
2085
2086
2087       
2088   <INPUT TYPE="hidden" NAME="agent_type" VALUE="1">
2089
2090
2091
2092
2093
2094
2095       </TABLE>
2096
2097 <TABLE ID="TableNumber4" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2098
2099 <TR>
2100   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
2101 </TR>
2102
2103 <TR>
2104   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
2105     <FONT SIZE="+1">External Links</FONT>
2106   </TH>
2107 </TR>
2108
2109
2110
2111
2112
2113
2114
2115
2116       <TR>
2117
2118   <TD ALIGN  = "right"
2119       VALIGN = "top"
2120       STYLE  = "padding-top: 3px"
2121       ID     = "agent_pkgpartid_label"
2122   >External ID</TD>
2123
2124
2125
2126   <TD   ID="agent_pkgpartid_input0"><INPUT TYPE  = "text"
2127                            NAME  = "agent_pkgpartid"
2128                            ID    = "agent_pkgpartid"
2129                            VALUE = ""
2130                            SIZE="21"
2131                            
2132                            
2133                            
2134                            
2135                            
2136                     >
2137 </TD>
2138
2139 </TR>
2140
2141
2142
2143
2144
2145       </TABLE>
2146
2147 <TABLE ID="TableNumber5" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2148
2149 <TR>
2150   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
2151 </TR>
2152
2153 <TR>
2154   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
2155     <FONT SIZE="+1">Line-item revenue recogition</FONT>
2156   </TH>
2157 </TR>
2158
2159
2160
2161
2162
2163
2164
2165
2166       <TR>
2167
2168   <TD ALIGN  = "right"
2169       VALIGN = "top"
2170       STYLE  = "padding-top: 3px"
2171       ID     = "pay_weight_label"
2172   >Payment weight</TD>
2173
2174
2175
2176   <TD   ID="pay_weight_input0"><INPUT TYPE  = "text"
2177                            NAME  = "pay_weight"
2178                            ID    = "pay_weight"
2179                            VALUE = ""
2180                            SIZE="6"
2181                            
2182                            
2183                            
2184                            
2185                            
2186                     >
2187 </TD>
2188
2189 </TR>
2190
2191
2192
2193
2194
2195       <TR>
2196
2197   <TD ALIGN  = "right"
2198       VALIGN = "top"
2199       STYLE  = "padding-top: 3px"
2200       ID     = "credit_weight_label"
2201   >Credit weight</TD>
2202
2203
2204
2205   <TD   ID="credit_weight_input0"><INPUT TYPE  = "text"
2206                            NAME  = "credit_weight"
2207                            ID    = "credit_weight"
2208                            VALUE = ""
2209                            SIZE="6"
2210                            
2211                            
2212                            
2213                            
2214                            
2215                     >
2216 </TD>
2217
2218 </TR>
2219
2220
2221
2222
2223
2224                 </TABLE>
2225         </TD>
2226       </TR>
2227     </TABLE>
2228   </TD>
2229 </TR>
2230
2231
2232
2233
2234       <INPUT TYPE  = "hidden"
2235        NAME  = "census_title"
2236        ID    = "census_title"
2237        VALUE = "Optional report classes"
2238 >
2239
2240
2241
2242
2243
2244       <INPUT TYPE  = "hidden"
2245        NAME  = "report_option"
2246        ID    = "report_option"
2247        VALUE = ""
2248 >
2249
2250
2251
2252
2253
2254       </TABLE>
2255
2256 <TABLE ID="TableNumber6" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2257
2258 <TR>
2259   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
2260 </TR>
2261
2262 <TR>
2263   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
2264     <FONT SIZE="+1">Term discounts</FONT>
2265   </TH>
2266 </TR>
2267
2268
2269
2270
2271
2272
2273
2274
2275       <TR>
2276
2277   <TD ALIGN  = "right"
2278       VALIGN = "top"
2279       STYLE  = "padding-top: 3px"
2280       ID     = "discountnum_label0"
2281   >Offer discounts for longer terms</TD>
2282
2283
2284       <TD COLSPAN="1">
2285       
2286 <SELECT 
2287         NAME = "discountnum0"
2288         ID   = "discountnum0"
2289         onChange="
2290 spawn_discountnum(this);"
2291         
2292         
2293 >
2294
2295
2296     <OPTION VALUE="">Select discount
2297
2298
2299
2300 </SELECT>
2301
2302
2303       </TD>
2304
2305
2306       </TR>
2307
2308
2309       <SCRIPT TYPE="text/javascript">
2310
2311         var discountnum_rownum = 3;
2312         var discountnum_fieldnum = 0;
2313
2314         function spawn_discountnum(what) {
2315
2316           // only spawn if we're the last element... return if not
2317
2318           var field_regex = /(\d+)(_[a-z_]+)?$/;
2319           var match = field_regex.exec(what.name);
2320           if ( !match ) {
2321             alert(what.name + " didn't match for " + what);
2322             return;
2323           }
2324           if ( match[1] != discountnum_fieldnum ) {
2325             return;
2326           }
2327
2328           // change the label on the last entry & add a remove button
2329           var prev_label = document.getElementById('discountnum_label' + discountnum_fieldnum );
2330           prev_label.innerHTML = '<INPUT TYPE="button" VALUE="X" TITLE="Remove this offer discounts for longer terms" onClick="remove_discountnum(' + discountnum_fieldnum + ');" STYLE="color:#ff0000;font-weight:bold;padding-left:2px;padding-right:2px" >&nbsp;Offer discounts for longer terms';
2331
2332           discountnum_fieldnum++;
2333
2334           //get the new widget
2335
2336
2337           var newrow =  '\n<SELECT \n        NAME = "discountnumMAGIC_NUMBER"\n        ID   = "discountnumMAGIC_NUMBER"\n        onChange="\nspawn_discountnum(this);"\n        \n        \n>\n\n\n    <OPTION VALUE="">Select discount\n\n\n\n</SELECT>\n\n';
2338
2339             var newfunc = '';
2340
2341           // substitute in the new field name
2342           var magic_regex = /MAGIC_NUMBER/g;
2343           newrow  = newrow.replace(  magic_regex, discountnum_fieldnum );
2344           newfunc = newfunc.replace( magic_regex, discountnum_fieldnum );
2345
2346           // evaluate new_func
2347           if (window.ActiveXObject) {
2348             window.execScript(newfunc);
2349           } else { /* (window.XMLHttpRequest) */
2350             //window.eval(newfunc);
2351             setTimeout(newfunc, 0);
2352           }
2353
2354           // add new row
2355
2356           //hmm, can't use selectlayers after a tablebreak-title for now
2357           var table = document.getElementById('TableNumber6');
2358
2359           var row = table.insertRow(discountnum_rownum++);
2360
2361           var label_cell = document.createElement('TD');
2362
2363           label_cell.id = 'discountnum_label' + discountnum_fieldnum;
2364
2365           label_cell.style.textAlign = "right";
2366           label_cell.style.verticalAlign = "top";
2367           label_cell.style.borderTop = "1px solid black";
2368           label_cell.style.paddingTop = "5px";
2369
2370           label_cell.innerHTML = 'Offer discounts for longer terms';
2371
2372           row.appendChild(label_cell);
2373           
2374           var widget_cell = document.createElement('TD');
2375
2376           widget_cell.style.borderTop = "1px solid black";
2377           widget_cell.style.paddingTop = "3px";
2378           widget_cell.colSpan = "1";
2379
2380           widget_cell.innerHTML = newrow;
2381
2382           row.appendChild(widget_cell);
2383
2384
2385
2386         }
2387
2388         function remove_discountnum(remove_fieldnum) {
2389           //alert("remove discountnum " + remove_fieldnum);
2390           var select = document.getElementById('discountnum' + remove_fieldnum);
2391
2392           if ( ! select ) {
2393             alert("can't find element discountnum" + remove_fieldnum);
2394             return;
2395           }
2396
2397
2398           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
2399           var label_td = document.getElementById('discountnum_label' + remove_fieldnum );
2400           label_td.parentNode.style.display = 'none';
2401
2402
2403         }
2404
2405       </SCRIPT>
2406
2407
2408
2409       </TABLE>
2410
2411 <TABLE ID="TableNumber7" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2412
2413 <TR>
2414   <TD CLASS="background" COLSPAN=4>&nbsp;</TD>
2415 </TR>
2416
2417 <TR>
2418   <TH CLASS="background" COLSPAN=4 ALIGN="left" >
2419     <FONT SIZE="+1">Pricing add-ons</FONT>
2420   </TH>
2421 </TR>
2422
2423
2424
2425
2426
2427
2428
2429
2430       <TR>
2431
2432   <TD ALIGN  = "right"
2433       VALIGN = "top"
2434       STYLE  = "padding-top: 3px"
2435       ID     = "bill_dst_pkgpart_label0"
2436   >Include line item(s) from package</TD>
2437
2438
2439       <TD COLSPAN="1">
2440       
2441
2442 <SELECT 
2443         NAME = "bill_dst_pkgpart0"
2444         ID   = "bill_dst_pkgpart0"
2445         onChange="
2446 spawn_bill_dst_pkgpart(this);"
2447         
2448         
2449 >
2450
2451
2452     <OPTION VALUE="">Select package
2453
2454     <OPTION VALUE="4"
2455             
2456     >
2457      4: Annual subscription domain
2458     <OPTION VALUE="5"
2459             
2460     >
2461      5: Monthly anniversary phone x4
2462     <OPTION VALUE="3"
2463             
2464     >
2465      3: Monthly prorated broadband
2466     <OPTION VALUE="1"
2467             
2468     >
2469      1: System Domain - (NOT FOR CUSTOMERS)
2470
2471
2472 </SELECT>
2473
2474
2475
2476       </TD>
2477
2478
2479           <TD id='bill_dst_pkgpart__hidden_label0'
2480               style='text-align:right;vertical-align:top;
2481                      border-top:1px solid black;padding-top:5px;'>
2482             Bundle
2483           </TD>
2484           <TD style='border-top:1px solid black;padding-top:3px;'>
2485             <INPUT TYPE  = "checkbox"
2486                            NAME  = "bill_dst_pkgpart__hidden0"
2487                            ID    = "bill_dst_pkgpart__hidden0"
2488                            VALUE = "Y"
2489                            
2490                            
2491                            
2492                     >
2493
2494           </TD>
2495
2496       </TR>
2497
2498
2499       <SCRIPT TYPE="text/javascript">
2500
2501         var bill_dst_pkgpart_rownum = 3;
2502         var bill_dst_pkgpart_fieldnum = 0;
2503
2504         function spawn_bill_dst_pkgpart(what) {
2505
2506           // only spawn if we're the last element... return if not
2507
2508           var field_regex = /(\d+)(_[a-z_]+)?$/;
2509           var match = field_regex.exec(what.name);
2510           if ( !match ) {
2511             alert(what.name + " didn't match for " + what);
2512             return;
2513           }
2514           if ( match[1] != bill_dst_pkgpart_fieldnum ) {
2515             return;
2516           }
2517
2518           // change the label on the last entry & add a remove button
2519           var prev_label = document.getElementById('bill_dst_pkgpart_label' + bill_dst_pkgpart_fieldnum );
2520           prev_label.innerHTML = '<INPUT TYPE="button" VALUE="X" TITLE="Remove this include line item(s) from package" onClick="remove_bill_dst_pkgpart(' + bill_dst_pkgpart_fieldnum + ');" STYLE="color:#ff0000;font-weight:bold;padding-left:2px;padding-right:2px" >&nbsp;Include line item(s) from package';
2521
2522           bill_dst_pkgpart_fieldnum++;
2523
2524           //get the new widget
2525
2526
2527           var newrow =  '\n\n<SELECT \n        NAME = "bill_dst_pkgpartMAGIC_NUMBER"\n        ID   = "bill_dst_pkgpartMAGIC_NUMBER"\n        onChange="\nspawn_bill_dst_pkgpart(this);"\n        \n        \n>\n\n\n    <OPTION VALUE="">Select package\n\n    <OPTION VALUE="4"\n            \n    >\n     4: Annual subscription domain\n    <OPTION VALUE="5"\n            \n    >\n     5: Monthly anniversary phone x4\n    <OPTION VALUE="3"\n            \n    >\n     3: Monthly prorated broadband\n    <OPTION VALUE="1"\n            \n    >\n     1: System Domain - (NOT FOR CUSTOMERS)\n\n\n</SELECT>\n\n\n';
2528
2529             var newfunc = '';
2530
2531           // substitute in the new field name
2532           var magic_regex = /MAGIC_NUMBER/g;
2533           newrow  = newrow.replace(  magic_regex, bill_dst_pkgpart_fieldnum );
2534           newfunc = newfunc.replace( magic_regex, bill_dst_pkgpart_fieldnum );
2535
2536           // evaluate new_func
2537           if (window.ActiveXObject) {
2538             window.execScript(newfunc);
2539           } else { /* (window.XMLHttpRequest) */
2540             //window.eval(newfunc);
2541             setTimeout(newfunc, 0);
2542           }
2543
2544           // add new row
2545
2546           //hmm, can't use selectlayers after a tablebreak-title for now
2547           var table = document.getElementById('TableNumber7');
2548
2549           var row = table.insertRow(bill_dst_pkgpart_rownum++);
2550
2551           var label_cell = document.createElement('TD');
2552
2553           label_cell.id = 'bill_dst_pkgpart_label' + bill_dst_pkgpart_fieldnum;
2554
2555           label_cell.style.textAlign = "right";
2556           label_cell.style.verticalAlign = "top";
2557           label_cell.style.borderTop = "1px solid black";
2558           label_cell.style.paddingTop = "5px";
2559
2560           label_cell.innerHTML = 'Include line item(s) from package';
2561
2562           row.appendChild(label_cell);
2563           
2564           var widget_cell = document.createElement('TD');
2565
2566           widget_cell.style.borderTop = "1px solid black";
2567           widget_cell.style.paddingTop = "3px";
2568           widget_cell.colSpan = "1";
2569
2570           widget_cell.innerHTML = newrow;
2571
2572           row.appendChild(widget_cell);
2573
2574
2575               var column =  '<INPUT TYPE  = "checkbox"\n                           NAME  = "bill_dst_pkgpart__hiddenMAGIC_NUMBER"\n                           ID    = "bill_dst_pkgpart__hiddenMAGIC_NUMBER"\n                           VALUE = "Y"\n                           \n                           \n                           \n                    >\n';
2576               column  = column.replace(  magic_regex, bill_dst_pkgpart_fieldnum );
2577
2578               var column_label = document.createElement('TD');
2579               column_label.id =
2580                 'bill_dst_pkgpart__hidden_label' + bill_dst_pkgpart_fieldnum;
2581
2582               column_label.style.textAlign = "right";
2583               column_label.style.verticalAlign = "top";
2584               column_label.style.borderTop = "1px solid black";
2585               column_label.style.paddingTop = "5px";
2586
2587               column_label.innerHTML = 'Bundle';
2588
2589               row.appendChild(column_label);
2590           
2591               var column_widget = document.createElement('TD');
2592
2593               column_widget.style.borderTop = "1px solid black";
2594               column_widget.style.paddingTop = "3px";
2595
2596               column_widget.innerHTML = column;
2597
2598               row.appendChild(column_widget);
2599
2600
2601
2602         }
2603
2604         function remove_bill_dst_pkgpart(remove_fieldnum) {
2605           //alert("remove bill_dst_pkgpart " + remove_fieldnum);
2606           var select = document.getElementById('bill_dst_pkgpart' + remove_fieldnum);
2607
2608           if ( ! select ) {
2609             alert("can't find element bill_dst_pkgpart" + remove_fieldnum);
2610             return;
2611           }
2612
2613
2614           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
2615           var label_td = document.getElementById('bill_dst_pkgpart_label' + remove_fieldnum );
2616           label_td.parentNode.style.display = 'none';
2617
2618
2619         }
2620
2621       </SCRIPT>
2622
2623
2624
2625       </TABLE>
2626
2627 <TABLE ID="TableNumber8" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2628
2629 <TR>
2630   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
2631 </TR>
2632
2633 <TR>
2634   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
2635     <FONT SIZE="+1">Services</FONT>
2636   </TH>
2637 </TR>
2638
2639
2640
2641
2642
2643
2644
2645
2646       <TR>
2647   <TD CLASS="background" COLSPAN=99>
2648
2649 <SCRIPT>
2650 var provision_hold_td = [];
2651 var provision_hold_input = [];
2652 </SCRIPT>
2653
2654 <TABLE BORDER=0 CELLSPACING=4 ><TR><TD VALIGN="top">
2655
2656
2657 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH><TH BGCOLOR="#dcdcdc" ID="th_provision_hold1"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH></TR><SCRIPT>provision_hold_td.push(document.getElementById('th_provision_hold1'))</SCRIPT>
2658
2659
2660   <TR>
2661     <TD>
2662       <INPUT TYPE="text" NAME="pkg_svc1" SIZE=7 MAXLENGTH=6 VALUE="0">
2663     </TD>
2664    
2665     <TD ALIGN="center">
2666       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="1" >
2667     </TD>
2668
2669     <TD>
2670       <A HREF="part_svc.cgi?1">Domain</A>      
2671     </TD>
2672
2673     <TD>
2674       <INPUT TYPE="checkbox" NAME="hidden1" VALUE="Y">
2675     </TD>
2676
2677     <TD ALIGN="center" ID="td_provision_hold1">
2678       <INPUT TYPE="checkbox" ID="input_provision_hold1" NAME="provision_hold1" VALUE="Y">
2679     </TD>
2680 <SCRIPT>
2681 provision_hold_td.push(document.getElementById('td_provision_hold1'));
2682 provision_hold_input.push(document.getElementById('input_provision_hold1'));
2683 </SCRIPT>
2684
2685   </TR>
2686
2687   <TR>
2688     <TD>
2689       <INPUT TYPE="text" NAME="pkg_svc2" SIZE=7 MAXLENGTH=6 VALUE="1">
2690     </TD>
2691    
2692     <TD ALIGN="center">
2693       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="2" >
2694     </TD>
2695
2696     <TD>
2697       <A HREF="part_svc.cgi?2">Test svc_acct</A>      
2698     </TD>
2699
2700     <TD>
2701       <INPUT TYPE="checkbox" NAME="hidden2" VALUE="Y">
2702     </TD>
2703
2704     <TD ALIGN="center" ID="td_provision_hold2">
2705       <INPUT TYPE="checkbox" ID="input_provision_hold2" NAME="provision_hold2" VALUE="Y">
2706     </TD>
2707 <SCRIPT>
2708 provision_hold_td.push(document.getElementById('td_provision_hold2'));
2709 provision_hold_input.push(document.getElementById('input_provision_hold2'));
2710 </SCRIPT>
2711
2712   </TR>
2713
2714          </TABLE></TD><TD VALIGN="top">
2715
2716 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH><TH BGCOLOR="#dcdcdc" ID="th_provision_hold2"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH></TR><SCRIPT>provision_hold_td.push(document.getElementById('th_provision_hold2'))</SCRIPT>
2717
2718   <TR>
2719     <TD>
2720       <INPUT TYPE="text" NAME="pkg_svc3" SIZE=7 MAXLENGTH=6 VALUE="0">
2721     </TD>
2722    
2723     <TD ALIGN="center">
2724       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="3" >
2725     </TD>
2726
2727     <TD>
2728       <A HREF="part_svc.cgi?3">Test svc_domain</A>      
2729     </TD>
2730
2731     <TD>
2732       <INPUT TYPE="checkbox" NAME="hidden3" VALUE="Y">
2733     </TD>
2734
2735     <TD ALIGN="center" ID="td_provision_hold3">
2736       <INPUT TYPE="checkbox" ID="input_provision_hold3" NAME="provision_hold3" VALUE="Y">
2737     </TD>
2738 <SCRIPT>
2739 provision_hold_td.push(document.getElementById('td_provision_hold3'));
2740 provision_hold_input.push(document.getElementById('input_provision_hold3'));
2741 </SCRIPT>
2742
2743   </TR>
2744
2745   <TR>
2746     <TD>
2747       <INPUT TYPE="text" NAME="pkg_svc4" SIZE=7 MAXLENGTH=6 VALUE="0">
2748     </TD>
2749    
2750     <TD ALIGN="center">
2751       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="4" >
2752     </TD>
2753
2754     <TD>
2755       <A HREF="part_svc.cgi?4">Test svc_broadband</A>      
2756     </TD>
2757
2758     <TD>
2759       <INPUT TYPE="checkbox" NAME="hidden4" VALUE="Y">
2760     </TD>
2761
2762     <TD ALIGN="center" ID="td_provision_hold4">
2763       <INPUT TYPE="checkbox" ID="input_provision_hold4" NAME="provision_hold4" VALUE="Y">
2764     </TD>
2765 <SCRIPT>
2766 provision_hold_td.push(document.getElementById('td_provision_hold4'));
2767 provision_hold_input.push(document.getElementById('input_provision_hold4'));
2768 </SCRIPT>
2769
2770   </TR>
2771
2772          </TABLE></TD><TD VALIGN="top">
2773
2774 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide<BR>from<BR>Invoices</FONT></TH><TH BGCOLOR="#dcdcdc" ID="th_provision_hold3"><FONT SIZE=-1>Remove Hold After Provisioning</FONT></TH></TR><SCRIPT>provision_hold_td.push(document.getElementById('th_provision_hold3'))</SCRIPT>
2775
2776   <TR>
2777     <TD>
2778       <INPUT TYPE="text" NAME="pkg_svc5" SIZE=7 MAXLENGTH=6 VALUE="0">
2779     </TD>
2780    
2781     <TD ALIGN="center">
2782       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="5" >
2783     </TD>
2784
2785     <TD>
2786       <A HREF="part_svc.cgi?5">Test svc_phone</A>      
2787     </TD>
2788
2789     <TD>
2790       <INPUT TYPE="checkbox" NAME="hidden5" VALUE="Y">
2791     </TD>
2792
2793     <TD ALIGN="center" ID="td_provision_hold5">
2794       <INPUT TYPE="checkbox" ID="input_provision_hold5" NAME="provision_hold5" VALUE="Y">
2795     </TD>
2796 <SCRIPT>
2797 provision_hold_td.push(document.getElementById('td_provision_hold5'));
2798 provision_hold_input.push(document.getElementById('input_provision_hold5'));
2799 </SCRIPT>
2800
2801   </TR>
2802
2803 </TR></TABLE></TD></TR></TABLE>
2804
2805 <SCRIPT>
2806 // start_on_hold from edit/part_pkg.cgi
2807 // toggles display of provision_hold checkboxes when that changes
2808 function provision_hold_check () {
2809   var start_on_hold = document.getElementById('start_on_hold');
2810   if (start_on_hold) {
2811     for (i = 0; i < provision_hold_td.length; i++) {
2812       provision_hold_td[i].style.display = start_on_hold.checked ? '' : 'none';
2813     }
2814     for (i = 0; i < provision_hold_input.length; i++) {
2815       provision_hold_input[i].disabled = start_on_hold.checked ? false : true;
2816     }
2817   }
2818 }
2819 function provision_hold_init () {
2820   var start_on_hold = document.getElementById('start_on_hold');
2821   if (start_on_hold) {
2822     start_on_hold.onchange = provision_hold_check;
2823     provision_hold_check();
2824   }
2825 }
2826 provision_hold_init();
2827 </SCRIPT>
2828
2829
2830   </TD>
2831 </TR>
2832
2833
2834
2835
2836
2837       <TR>
2838
2839   <TD ALIGN  = "right"
2840       VALIGN = "top"
2841       STYLE  = "padding-top: 3px"
2842       ID     = "svc_dst_pkgpart_label0"
2843   >Include services of package</TD>
2844
2845
2846       <TD COLSPAN="1">
2847       
2848
2849 <SELECT 
2850         NAME = "svc_dst_pkgpart0"
2851         ID   = "svc_dst_pkgpart0"
2852         onChange="
2853 spawn_svc_dst_pkgpart(this);"
2854         
2855         
2856 >
2857
2858
2859     <OPTION VALUE="">Select package
2860
2861     <OPTION VALUE="4"
2862             
2863     >
2864      4: Annual subscription domain
2865     <OPTION VALUE="5"
2866             
2867     >
2868      5: Monthly anniversary phone x4
2869     <OPTION VALUE="3"
2870             
2871     >
2872      3: Monthly prorated broadband
2873     <OPTION VALUE="1"
2874             
2875     >
2876      1: System Domain - (NOT FOR CUSTOMERS)
2877
2878
2879 </SELECT>
2880
2881
2882
2883       </TD>
2884
2885
2886       </TR>
2887
2888
2889       <SCRIPT TYPE="text/javascript">
2890
2891         var svc_dst_pkgpart_rownum = 4;
2892         var svc_dst_pkgpart_fieldnum = 0;
2893
2894         function spawn_svc_dst_pkgpart(what) {
2895
2896           // only spawn if we're the last element... return if not
2897
2898           var field_regex = /(\d+)(_[a-z_]+)?$/;
2899           var match = field_regex.exec(what.name);
2900           if ( !match ) {
2901             alert(what.name + " didn't match for " + what);
2902             return;
2903           }
2904           if ( match[1] != svc_dst_pkgpart_fieldnum ) {
2905             return;
2906           }
2907
2908           // change the label on the last entry & add a remove button
2909           var prev_label = document.getElementById('svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum );
2910           prev_label.innerHTML = '<INPUT TYPE="button" VALUE="X" TITLE="Remove this include services of package: " onClick="remove_svc_dst_pkgpart(' + svc_dst_pkgpart_fieldnum + ');" STYLE="color:#ff0000;font-weight:bold;padding-left:2px;padding-right:2px" >&nbsp;Include services of package: ';
2911
2912           svc_dst_pkgpart_fieldnum++;
2913
2914           //get the new widget
2915
2916
2917           var newrow =  '\n\n<SELECT \n        NAME = "svc_dst_pkgpartMAGIC_NUMBER"\n        ID   = "svc_dst_pkgpartMAGIC_NUMBER"\n        onChange="\nspawn_svc_dst_pkgpart(this);"\n        \n        \n>\n\n\n    <OPTION VALUE="">Select package\n\n    <OPTION VALUE="4"\n            \n    >\n     4: Annual subscription domain\n    <OPTION VALUE="5"\n            \n    >\n     5: Monthly anniversary phone x4\n    <OPTION VALUE="3"\n            \n    >\n     3: Monthly prorated broadband\n    <OPTION VALUE="1"\n            \n    >\n     1: System Domain - (NOT FOR CUSTOMERS)\n\n\n</SELECT>\n\n\n';
2918
2919             var newfunc = '';
2920
2921           // substitute in the new field name
2922           var magic_regex = /MAGIC_NUMBER/g;
2923           newrow  = newrow.replace(  magic_regex, svc_dst_pkgpart_fieldnum );
2924           newfunc = newfunc.replace( magic_regex, svc_dst_pkgpart_fieldnum );
2925
2926           // evaluate new_func
2927           if (window.ActiveXObject) {
2928             window.execScript(newfunc);
2929           } else { /* (window.XMLHttpRequest) */
2930             //window.eval(newfunc);
2931             setTimeout(newfunc, 0);
2932           }
2933
2934           // add new row
2935
2936           //hmm, can't use selectlayers after a tablebreak-title for now
2937           var table = document.getElementById('TableNumber8');
2938
2939           var row = table.insertRow(svc_dst_pkgpart_rownum++);
2940
2941           var label_cell = document.createElement('TD');
2942
2943           label_cell.id = 'svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum;
2944
2945           label_cell.style.textAlign = "right";
2946           label_cell.style.verticalAlign = "top";
2947           label_cell.style.borderTop = "1px solid black";
2948           label_cell.style.paddingTop = "5px";
2949
2950           label_cell.innerHTML = 'Include services of package';
2951
2952           row.appendChild(label_cell);
2953           
2954           var widget_cell = document.createElement('TD');
2955
2956           widget_cell.style.borderTop = "1px solid black";
2957           widget_cell.style.paddingTop = "3px";
2958           widget_cell.colSpan = "1";
2959
2960           widget_cell.innerHTML = newrow;
2961
2962           row.appendChild(widget_cell);
2963
2964
2965
2966         }
2967
2968         function remove_svc_dst_pkgpart(remove_fieldnum) {
2969           //alert("remove svc_dst_pkgpart " + remove_fieldnum);
2970           var select = document.getElementById('svc_dst_pkgpart' + remove_fieldnum);
2971
2972           if ( ! select ) {
2973             alert("can't find element svc_dst_pkgpart" + remove_fieldnum);
2974             return;
2975           }
2976
2977
2978           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
2979           var label_td = document.getElementById('svc_dst_pkgpart_label' + remove_fieldnum );
2980           label_td.parentNode.style.display = 'none';
2981
2982
2983         }
2984
2985       </SCRIPT>
2986
2987
2988
2989       </TABLE>
2990
2991 <TABLE ID="TableNumber9" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2992
2993 <TR>
2994   <TD CLASS="background" COLSPAN=4>&nbsp;</TD>
2995 </TR>
2996
2997 <TR>
2998   <TH CLASS="background" COLSPAN=4 ALIGN="left" ID="show_supp_pkgs">
2999     <FONT SIZE="+1">Supplemental packages</FONT>
3000   </TH>
3001 </TR>
3002
3003
3004
3005
3006
3007
3008
3009
3010       <TR>
3011
3012   <TD ALIGN  = "right"
3013       VALIGN = "top"
3014       STYLE  = "padding-top: 3px"
3015       ID     = "supp_dst_pkgpart_label0"
3016   >When ordering package, also order</TD>
3017
3018
3019       <TD COLSPAN="1">
3020       
3021
3022 <SELECT 
3023         NAME = "supp_dst_pkgpart0"
3024         ID   = "supp_dst_pkgpart0"
3025         onChange="
3026 spawn_supp_dst_pkgpart(this);"
3027         
3028         
3029 >
3030
3031
3032     <OPTION VALUE="">Select package
3033
3034     <OPTION VALUE="4"
3035             
3036     >
3037      4: Annual subscription domain
3038     <OPTION VALUE="5"
3039             
3040     >
3041      5: Monthly anniversary phone x4
3042     <OPTION VALUE="2"
3043             
3044     >
3045      2: Monthly prorated account
3046     <OPTION VALUE="3"
3047             
3048     >
3049      3: Monthly prorated broadband
3050     <OPTION VALUE="1"
3051             
3052     >
3053      1: System Domain - (NOT FOR CUSTOMERS)
3054
3055
3056 </SELECT>
3057
3058
3059
3060       </TD>
3061
3062
3063       </TR>
3064
3065
3066       <SCRIPT TYPE="text/javascript">
3067
3068         var supp_dst_pkgpart_rownum = 3;
3069         var supp_dst_pkgpart_fieldnum = 0;
3070
3071         function spawn_supp_dst_pkgpart(what) {
3072
3073           // only spawn if we're the last element... return if not
3074
3075           var field_regex = /(\d+)(_[a-z_]+)?$/;
3076           var match = field_regex.exec(what.name);
3077           if ( !match ) {
3078             alert(what.name + " didn't match for " + what);
3079             return;
3080           }
3081           if ( match[1] != supp_dst_pkgpart_fieldnum ) {
3082             return;
3083           }
3084
3085           // change the label on the last entry & add a remove button
3086           var prev_label = document.getElementById('supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum );
3087           prev_label.innerHTML = '<INPUT TYPE="button" VALUE="X" TITLE="Remove this when ordering package, also order" onClick="remove_supp_dst_pkgpart(' + supp_dst_pkgpart_fieldnum + ');" STYLE="color:#ff0000;font-weight:bold;padding-left:2px;padding-right:2px" >&nbsp;When ordering package, also order';
3088
3089           supp_dst_pkgpart_fieldnum++;
3090
3091           //get the new widget
3092
3093
3094           var newrow =  '\n\n<SELECT \n        NAME = "supp_dst_pkgpartMAGIC_NUMBER"\n        ID   = "supp_dst_pkgpartMAGIC_NUMBER"\n        onChange="\nspawn_supp_dst_pkgpart(this);"\n        \n        \n>\n\n\n    <OPTION VALUE="">Select package\n\n    <OPTION VALUE="4"\n            \n    >\n     4: Annual subscription domain\n    <OPTION VALUE="5"\n            \n    >\n     5: Monthly anniversary phone x4\n    <OPTION VALUE="2"\n            \n    >\n     2: Monthly prorated account\n    <OPTION VALUE="3"\n            \n    >\n     3: Monthly prorated broadband\n    <OPTION VALUE="1"\n            \n    >\n     1: System Domain - (NOT FOR CUSTOMERS)\n\n\n</SELECT>\n\n\n';
3095
3096             var newfunc = '';
3097
3098           // substitute in the new field name
3099           var magic_regex = /MAGIC_NUMBER/g;
3100           newrow  = newrow.replace(  magic_regex, supp_dst_pkgpart_fieldnum );
3101           newfunc = newfunc.replace( magic_regex, supp_dst_pkgpart_fieldnum );
3102
3103           // evaluate new_func
3104           if (window.ActiveXObject) {
3105             window.execScript(newfunc);
3106           } else { /* (window.XMLHttpRequest) */
3107             //window.eval(newfunc);
3108             setTimeout(newfunc, 0);
3109           }
3110
3111           // add new row
3112
3113           //hmm, can't use selectlayers after a tablebreak-title for now
3114           var table = document.getElementById('TableNumber9');
3115
3116           var row = table.insertRow(supp_dst_pkgpart_rownum++);
3117
3118           var label_cell = document.createElement('TD');
3119
3120           label_cell.id = 'supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum;
3121
3122           label_cell.style.textAlign = "right";
3123           label_cell.style.verticalAlign = "top";
3124           label_cell.style.borderTop = "1px solid black";
3125           label_cell.style.paddingTop = "5px";
3126
3127           label_cell.innerHTML = 'When ordering package, also order';
3128
3129           row.appendChild(label_cell);
3130           
3131           var widget_cell = document.createElement('TD');
3132
3133           widget_cell.style.borderTop = "1px solid black";
3134           widget_cell.style.paddingTop = "3px";
3135           widget_cell.colSpan = "1";
3136
3137           widget_cell.innerHTML = newrow;
3138
3139           row.appendChild(widget_cell);
3140
3141
3142
3143         }
3144
3145         function remove_supp_dst_pkgpart(remove_fieldnum) {
3146           //alert("remove supp_dst_pkgpart " + remove_fieldnum);
3147           var select = document.getElementById('supp_dst_pkgpart' + remove_fieldnum);
3148
3149           if ( ! select ) {
3150             alert("can't find element supp_dst_pkgpart" + remove_fieldnum);
3151             return;
3152           }
3153
3154
3155           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
3156           var label_td = document.getElementById('supp_dst_pkgpart_label' + remove_fieldnum );
3157           label_td.parentNode.style.display = 'none';
3158
3159
3160         }
3161
3162       </SCRIPT>
3163
3164
3165
3166       </TABLE>
3167
3168 <TABLE ID="TableNumber10" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
3169
3170 <TR>
3171   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
3172 </TR>
3173
3174 <TR>
3175   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
3176     <FONT SIZE="+1">Price plan options</FONT>
3177   </TH>
3178 </TR>
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189 </TABLE>
3190
3191
3192
3193       <DIV ID="plandflat"
3194            STYLE="display: none; z-index: 0"
3195       >
3196
3197         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3198       <SELECT NAME="flat__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3199       <INPUT TYPE="text" NAME="flat__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3200       <INPUT TYPE="text" NAME="flat__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3201       <SELECT NAME="flat__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3202       <INPUT TYPE="checkbox" NAME="flat__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Prorate first month to synchronize with the customer's other packages</TD><TD>
3203       <INPUT TYPE="checkbox" NAME="flat__sync_bill_date" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD>
3204       <INPUT TYPE="checkbox" NAME="flat__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD>
3205       <INPUT TYPE="checkbox" NAME="flat__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3206       <INPUT TYPE="checkbox" NAME="flat__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3207       <INPUT TYPE="checkbox" NAME="flat__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3208       <INPUT TYPE="checkbox" NAME="flat__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3209       <INPUT TYPE="checkbox" NAME="flat__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3210       <INPUT TYPE="text" NAME="flat__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3211       <INPUT TYPE="checkbox" NAME="flat__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3212       <INPUT TYPE="text" NAME="flat__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3213       <INPUT TYPE="text" NAME="flat__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3214       <INPUT TYPE="text" NAME="flat__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3215       <INPUT TYPE="text" NAME="flat__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD>
3216       <INPUT TYPE="text" NAME="flat__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD>
3217       <INPUT TYPE="text" NAME="flat__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD>
3218       <INPUT TYPE="text" NAME="flat__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD>
3219       <INPUT TYPE="text" NAME="flat__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD>
3220       <INPUT TYPE="text" NAME="flat__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD>
3221       <INPUT TYPE="checkbox" NAME="flat__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD>
3222       <INPUT TYPE="checkbox" NAME="flat__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3223       <INPUT TYPE="checkbox" NAME="flat__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3224       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3225       <INPUT TYPE="checkbox" NAME="flat__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3226       <INPUT TYPE="checkbox" NAME="flat__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3227        NAME  = "flat__OPTIONS"
3228        ID    = "flat__OPTIONS"
3229        VALUE = "recur_temporality,expire_months,adjourn_months,contract_end_months,start_1st,sync_bill_date,prorate_defer_bill,prorate_round_day,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,prorate_verbose,seconds,upbytes,downbytes,totalbytes,recharge_amount,recharge_seconds,recharge_upbytes,recharge_downbytes,recharge_totalbytes,usage_rollover,recharge_reset,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3230 >
3231
3232
3233
3234       </DIV>
3235
3236
3237       <DIV ID="plandflat_delayed"
3238            STYLE="display: none; z-index: 0"
3239       >
3240
3241         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3242       <INPUT TYPE="checkbox" NAME="flat_delayed__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3243       <INPUT TYPE="checkbox" NAME="flat_delayed__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3244       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3245       <INPUT TYPE="checkbox" NAME="flat_delayed__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3246       <INPUT TYPE="checkbox" NAME="flat_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD>
3247       <INPUT TYPE="text" NAME="flat_delayed__free_days" VALUE="0"></TD></TR><TR><TD ALIGN="right">Delay setup fee in addition to recurring fee</TD><TD>
3248       <INPUT TYPE="checkbox" NAME="flat_delayed__delay_setup" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Number of days before recurring billing commences to notify customer. (0 means no warning)</TD><TD>
3249       <INPUT TYPE="text" NAME="flat_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE  = "hidden"
3250        NAME  = "flat_delayed__OPTIONS"
3251        ID    = "flat_delayed__OPTIONS"
3252        VALUE = "suspend_bill,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,free_days,delay_setup,recur_notify"
3253 >
3254
3255
3256
3257       </DIV>
3258
3259
3260       <DIV ID="plandflat_introrate"
3261            STYLE="display: none; z-index: 0"
3262       >
3263
3264         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Duration of the introductory period, in number of months</TD><TD>
3265       <INPUT TYPE="text" NAME="flat_introrate__intro_duration" VALUE="0"></TD></TR><TR><TD ALIGN="right">Introductory recurring fee for this package</TD><TD>
3266       <INPUT TYPE="text" NAME="flat_introrate__intro_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3267       <SELECT NAME="flat_introrate__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3268       <INPUT TYPE="text" NAME="flat_introrate__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3269       <INPUT TYPE="text" NAME="flat_introrate__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3270       <SELECT NAME="flat_introrate__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3271       <INPUT TYPE="checkbox" NAME="flat_introrate__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Prorate first month to synchronize with the customer's other packages</TD><TD>
3272       <INPUT TYPE="checkbox" NAME="flat_introrate__sync_bill_date" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD>
3273       <INPUT TYPE="checkbox" NAME="flat_introrate__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD>
3274       <INPUT TYPE="checkbox" NAME="flat_introrate__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3275       <INPUT TYPE="checkbox" NAME="flat_introrate__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3276       <INPUT TYPE="checkbox" NAME="flat_introrate__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3277       <INPUT TYPE="checkbox" NAME="flat_introrate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3278       <INPUT TYPE="checkbox" NAME="flat_introrate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3279       <INPUT TYPE="text" NAME="flat_introrate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3280       <INPUT TYPE="text" NAME="flat_introrate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3281       <INPUT TYPE="text" NAME="flat_introrate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3282       <INPUT TYPE="text" NAME="flat_introrate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3283       <INPUT TYPE="text" NAME="flat_introrate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD>
3284       <INPUT TYPE="text" NAME="flat_introrate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD>
3285       <INPUT TYPE="text" NAME="flat_introrate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD>
3286       <INPUT TYPE="text" NAME="flat_introrate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD>
3287       <INPUT TYPE="text" NAME="flat_introrate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD>
3288       <INPUT TYPE="text" NAME="flat_introrate__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD>
3289       <INPUT TYPE="checkbox" NAME="flat_introrate__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD>
3290       <INPUT TYPE="checkbox" NAME="flat_introrate__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3291       <INPUT TYPE="checkbox" NAME="flat_introrate__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3292       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3293       <INPUT TYPE="checkbox" NAME="flat_introrate__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3294       <INPUT TYPE="checkbox" NAME="flat_introrate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3295        NAME  = "flat_introrate__OPTIONS"
3296        ID    = "flat_introrate__OPTIONS"
3297        VALUE = "intro_duration,intro_fee,recur_temporality,expire_months,adjourn_months,contract_end_months,start_1st,sync_bill_date,prorate_defer_bill,prorate_round_day,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,seconds,upbytes,downbytes,totalbytes,recharge_amount,recharge_seconds,recharge_upbytes,recharge_downbytes,recharge_totalbytes,usage_rollover,recharge_reset,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3298 >
3299
3300
3301
3302       </DIV>
3303
3304
3305       <DIV ID="plandprorate"
3306            STYLE="display: block; z-index: 1"
3307       >
3308
3309         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD>
3310       <INPUT TYPE="text" NAME="prorate__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD>
3311       <INPUT TYPE="checkbox" NAME="prorate__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3312       <INPUT TYPE="checkbox" NAME="prorate__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Round the prorated period to the nearest full day</TD><TD>
3313       <INPUT TYPE="checkbox" NAME="prorate__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3314       <INPUT TYPE="checkbox" NAME="prorate__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3315       <INPUT TYPE="text" NAME="prorate__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3316       <INPUT TYPE="text" NAME="prorate__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3317       <SELECT NAME="prorate__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3318       <INPUT TYPE="checkbox" NAME="prorate__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3319       <INPUT TYPE="checkbox" NAME="prorate__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3320       <INPUT TYPE="checkbox" NAME="prorate__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3321       <INPUT TYPE="checkbox" NAME="prorate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3322       <INPUT TYPE="checkbox" NAME="prorate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3323       <INPUT TYPE="text" NAME="prorate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3324       <INPUT TYPE="text" NAME="prorate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3325       <INPUT TYPE="text" NAME="prorate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3326       <INPUT TYPE="text" NAME="prorate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3327       <INPUT TYPE="text" NAME="prorate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD>
3328       <INPUT TYPE="text" NAME="prorate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD>
3329       <INPUT TYPE="text" NAME="prorate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD>
3330       <INPUT TYPE="text" NAME="prorate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD>
3331       <INPUT TYPE="text" NAME="prorate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD>
3332       <INPUT TYPE="text" NAME="prorate__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD>
3333       <INPUT TYPE="checkbox" NAME="prorate__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD>
3334       <INPUT TYPE="checkbox" NAME="prorate__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3335       <INPUT TYPE="checkbox" NAME="prorate__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3336       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3337       <INPUT TYPE="checkbox" NAME="prorate__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3338       <INPUT TYPE="checkbox" NAME="prorate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3339        NAME  = "prorate__OPTIONS"
3340        ID    = "prorate__OPTIONS"
3341        VALUE = "cutoff_day,prorate_defer_bill,add_full_period,prorate_round_day,prorate_verbose,expire_months,adjourn_months,contract_end_months,start_1st,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,seconds,upbytes,downbytes,totalbytes,recharge_amount,recharge_seconds,recharge_upbytes,recharge_downbytes,recharge_totalbytes,usage_rollover,recharge_reset,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3342 >
3343
3344
3345
3346       </DIV>
3347
3348
3349       <DIV ID="plandprorate_delayed"
3350            STYLE="display: none; z-index: 0"
3351       >
3352
3353         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3354       <INPUT TYPE="checkbox" NAME="prorate_delayed__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3355       <INPUT TYPE="checkbox" NAME="prorate_delayed__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3356       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3357       <INPUT TYPE="checkbox" NAME="prorate_delayed__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3358       <INPUT TYPE="checkbox" NAME="prorate_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD>
3359       <INPUT TYPE="text" NAME="prorate_delayed__free_days" VALUE="0"></TD></TR><TR><TD ALIGN="right">Delay setup fee in addition to recurring fee</TD><TD>
3360       <INPUT TYPE="checkbox" NAME="prorate_delayed__delay_setup" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Number of days before recurring billing commences to notify customer. (0 means no warning)</TD><TD>
3361       <INPUT TYPE="text" NAME="prorate_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE  = "hidden"
3362        NAME  = "prorate_delayed__OPTIONS"
3363        ID    = "prorate_delayed__OPTIONS"
3364        VALUE = "suspend_bill,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,free_days,delay_setup,recur_notify"
3365 >
3366
3367
3368
3369       </DIV>
3370
3371
3372       <DIV ID="plandprorate_calendar"
3373            STYLE="display: none; z-index: 0"
3374       >
3375
3376         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day (1 - end of cycle)</TD><TD>
3377       <INPUT TYPE="text" NAME="prorate_calendar__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD>
3378       <INPUT TYPE="checkbox" NAME="prorate_calendar__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3379       <INPUT TYPE="checkbox" NAME="prorate_calendar__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3380       <INPUT TYPE="text" NAME="prorate_calendar__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3381       <INPUT TYPE="text" NAME="prorate_calendar__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3382       <SELECT NAME="prorate_calendar__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3383       <INPUT TYPE="checkbox" NAME="prorate_calendar__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3384       <INPUT TYPE="checkbox" NAME="prorate_calendar__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3385       <INPUT TYPE="checkbox" NAME="prorate_calendar__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3386       <INPUT TYPE="checkbox" NAME="prorate_calendar__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3387       <INPUT TYPE="checkbox" NAME="prorate_calendar__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3388       <INPUT TYPE="text" NAME="prorate_calendar__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3389       <INPUT TYPE="text" NAME="prorate_calendar__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3390       <INPUT TYPE="text" NAME="prorate_calendar__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3391       <INPUT TYPE="text" NAME="prorate_calendar__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3392       <INPUT TYPE="text" NAME="prorate_calendar__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD>
3393       <INPUT TYPE="text" NAME="prorate_calendar__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD>
3394       <INPUT TYPE="text" NAME="prorate_calendar__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD>
3395       <INPUT TYPE="text" NAME="prorate_calendar__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD>
3396       <INPUT TYPE="text" NAME="prorate_calendar__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD>
3397       <INPUT TYPE="text" NAME="prorate_calendar__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD>
3398       <INPUT TYPE="checkbox" NAME="prorate_calendar__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD>
3399       <INPUT TYPE="checkbox" NAME="prorate_calendar__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3400       <INPUT TYPE="checkbox" NAME="prorate_calendar__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3401       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3402       <INPUT TYPE="checkbox" NAME="prorate_calendar__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3403       <INPUT TYPE="checkbox" NAME="prorate_calendar__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3404        NAME  = "prorate_calendar__OPTIONS"
3405        ID    = "prorate_calendar__OPTIONS"
3406        VALUE = "cutoff_day,prorate_defer_bill,prorate_verbose,expire_months,adjourn_months,contract_end_months,start_1st,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,seconds,upbytes,downbytes,totalbytes,recharge_amount,recharge_seconds,recharge_upbytes,recharge_downbytes,recharge_totalbytes,usage_rollover,recharge_reset,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3407 >
3408
3409
3410
3411       </DIV>
3412
3413
3414       <DIV ID="plandprepaid"
3415            STYLE="display: none; z-index: 0"
3416       >
3417
3418         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Action to take upon reaching end of prepaid period</TD><TD>
3419       <SELECT NAME="prepaid__recur_action"><OPTION VALUE="suspend">suspend<OPTION VALUE="cancel">cancel</SELECT></TD></TR><TR><TD ALIGN="right">Action to take upon reaching a usage limit.</TD><TD>
3420       <SELECT NAME="prepaid__overlimit_action"><OPTION VALUE="overlimit">Default overlimit processing<OPTION VALUE="cancel">Cancel</SELECT></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3421       <INPUT TYPE="text" NAME="prepaid__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3422       <INPUT TYPE="text" NAME="prepaid__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3423       <INPUT TYPE="text" NAME="prepaid__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3424       <INPUT TYPE="text" NAME="prepaid__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3425       <INPUT TYPE="checkbox" NAME="prepaid__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3426       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3427       <INPUT TYPE="checkbox" NAME="prepaid__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3428       <INPUT TYPE="checkbox" NAME="prepaid__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3429        NAME  = "prepaid__OPTIONS"
3430        ID    = "prepaid__OPTIONS"
3431        VALUE = "recur_action,overlimit_action,seconds,upbytes,downbytes,totalbytes,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3432 >
3433
3434
3435
3436       </DIV>
3437
3438
3439       <DIV ID="plandsubscription"
3440            STYLE="display: none; z-index: 0"
3441       >
3442
3443         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day</TD><TD>
3444       <INPUT TYPE="text" NAME="subscription__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD>
3445       <INPUT TYPE="text" NAME="subscription__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD>
3446       <INPUT TYPE="text" NAME="subscription__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD>
3447       <INPUT TYPE="text" NAME="subscription__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD>
3448       <INPUT TYPE="text" NAME="subscription__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD>
3449       <INPUT TYPE="text" NAME="subscription__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD>
3450       <INPUT TYPE="text" NAME="subscription__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD>
3451       <INPUT TYPE="text" NAME="subscription__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD>
3452       <INPUT TYPE="text" NAME="subscription__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD>
3453       <INPUT TYPE="text" NAME="subscription__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll over into current period</TD><TD>
3454       <INPUT TYPE="checkbox" NAME="subscription__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD>
3455       <INPUT TYPE="checkbox" NAME="subscription__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3456       <INPUT TYPE="text" NAME="subscription__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3457       <INPUT TYPE="checkbox" NAME="subscription__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3458       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3459       <INPUT TYPE="checkbox" NAME="subscription__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3460       <INPUT TYPE="checkbox" NAME="subscription__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3461        NAME  = "subscription__OPTIONS"
3462        ID    = "subscription__OPTIONS"
3463        VALUE = "cutoff_day,seconds,upbytes,downbytes,totalbytes,recharge_amount,recharge_seconds,recharge_upbytes,recharge_downbytes,recharge_totalbytes,usage_rollover,recharge_reset,externalid,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3464 >
3465
3466
3467
3468       </DIV>
3469
3470
3471       <DIV ID="plandsqlradacct_hour"
3472            STYLE="display: none; z-index: 0"
3473       >
3474
3475         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included</TD><TD>
3476       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD>
3477       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_hourly_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for hours (0 means no cap)</TD><TD>
3478       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload megabytes included</TD><TD>
3479       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte upload</TD><TD>
3480       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_input_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for upload (0 means no cap)</TD><TD>
3481       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download megabytes included</TD><TD>
3482       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte download</TD><TD>
3483       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_output_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for download (0 means no cap)</TD><TD>
3484       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total megabytes included</TD><TD>
3485       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte total</TD><TD>
3486       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_total_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for total megabytes (0 means no cap)</TD><TD>
3487       <INPUT TYPE="text" NAME="sqlradacct_hour__recur_total_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Global cap on all overage charges (0 means no cap)</TD><TD>
3488       <INPUT TYPE="text" NAME="sqlradacct_hour__global_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3489       <INPUT TYPE="checkbox" NAME="sqlradacct_hour__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3490       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3491       <INPUT TYPE="checkbox" NAME="sqlradacct_hour__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3492       <INPUT TYPE="checkbox" NAME="sqlradacct_hour__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3493        NAME  = "sqlradacct_hour__OPTIONS"
3494        ID    = "sqlradacct_hour__OPTIONS"
3495        VALUE = "recur_included_hours,recur_hourly_charge,recur_hourly_cap,recur_included_input,recur_input_charge,recur_input_cap,recur_included_output,recur_output_charge,recur_output_cap,recur_included_total,recur_total_charge,recur_total_cap,global_cap,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3496 >
3497
3498
3499
3500       </DIV>
3501
3502
3503       <DIV ID="plandsqlradacct_daily"
3504            STYLE="display: none; z-index: 0"
3505       >
3506
3507         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included per day</TD><TD>
3508       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD>
3509       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_hourly_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for hours (0 means no cap)</TD><TD>
3510       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload megabytes included per day</TD><TD>
3511       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte upload</TD><TD>
3512       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_input_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for upload (0 means no cap)</TD><TD>
3513       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download megabytes included per day</TD><TD>
3514       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte download</TD><TD>
3515       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_output_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for download (0 means no cap)</TD><TD>
3516       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total megabytes included per day</TD><TD>
3517       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte total</TD><TD>
3518       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_total_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for total megabytes (0 means no cap)</TD><TD>
3519       <INPUT TYPE="text" NAME="sqlradacct_daily__recur_total_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Daily cap on all overage charges (0 means no cap)</TD><TD>
3520       <INPUT TYPE="text" NAME="sqlradacct_daily__global_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Monthly (billing frequency) cap on all overage charges (0 means no cap)</TD><TD>
3521       <INPUT TYPE="text" NAME="sqlradacct_daily__monthly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3522       <INPUT TYPE="checkbox" NAME="sqlradacct_daily__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3523       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3524       <INPUT TYPE="checkbox" NAME="sqlradacct_daily__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3525       <INPUT TYPE="checkbox" NAME="sqlradacct_daily__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3526        NAME  = "sqlradacct_daily__OPTIONS"
3527        ID    = "sqlradacct_daily__OPTIONS"
3528        VALUE = "recur_included_hours,recur_hourly_charge,recur_hourly_cap,recur_included_input,recur_input_charge,recur_input_cap,recur_included_output,recur_output_charge,recur_output_cap,recur_included_total,recur_total_charge,recur_total_cap,global_cap,monthly_cap,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3529 >
3530
3531
3532
3533       </DIV>
3534
3535
3536       <DIV ID="plandvoip_cdr"
3537            STYLE="display: none; z-index: 0"
3538       >
3539
3540         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3541       <SELECT NAME="voip_cdr__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD>
3542       <SELECT NAME="voip_cdr__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
3543       <INPUT TYPE="text" NAME="voip_cdr__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
3544       <INPUT TYPE="checkbox" NAME="voip_cdr__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
3545       <INPUT TYPE="checkbox" NAME="voip_cdr__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3546       <INPUT TYPE="checkbox" NAME="voip_cdr__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3547       <INPUT TYPE="checkbox" NAME="voip_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD>
3548       <SELECT NAME="voip_cdr__cdr_svc_method"><OPTION VALUE="svc_phone.phonenum">Phone numbers (svc_phone.phonenum)<OPTION VALUE="svc_pbx.title">PBX name (svc_pbx.title)<OPTION VALUE="svc_pbx.svcnum">Freeside service # (svc_pbx.svcnum)<OPTION VALUE="svc_pbx.ip.src">PBX name to source IP address<OPTION VALUE="svc_pbx.ip.dst">PBX name to destination IP address<OPTION VALUE="svc_acct.username">Username (svc_acct.username)</SELECT></TD></TR><TR><TD ALIGN="right">Rating method</TD><TD>
3549       <INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="prefix"> Rate calls by using destination prefix to look up a region and rate according to the internal prefix and rate tables<BR><INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="upstream_simple"> Simply pass through and charge the "upstream_price" amount.<BR><INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="single_price"> A single price per minute for all calls.<BR></TD></TR><TR><TD ALIGN="right">Rounding for destination prefix rating</TD><TD>
3550       <SELECT NAME="voip_cdr__rounding"><OPTION VALUE="2">Two decimal places (cent)<OPTION VALUE="4">Four decimal places (100th of a cent)</SELECT></TD></TR><TR><TD ALIGN="right">Rate plan</TD><TD>
3551       
3552 <SELECT 
3553         NAME = "voip_cdr__ratenum"
3554         ID   = "ratenum"
3555         
3556         
3557         
3558 >
3559
3560
3561     <OPTION VALUE="">Select rate plan
3562
3563
3564
3565 </SELECT>
3566
3567
3568 </TD></TR><TR><TD ALIGN="right">Optional alternate intrastate rate plan</TD><TD>
3569       
3570 <SELECT 
3571         NAME = "voip_cdr__intrastate_ratenum"
3572         ID   = "ratenum"
3573         
3574         
3575         
3576 >
3577
3578
3579     <OPTION VALUE=""> 
3580
3581
3582
3583 </SELECT>
3584
3585
3586 </TD></TR><TR><TD ALIGN="right">Number of calls included at no usage charge</TD><TD>
3587       <INPUT TYPE="text" NAME="voip_cdr__calls_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Charge per minute when using "single price per minute" rating method</TD><TD>
3588       <INPUT TYPE="text" NAME="voip_cdr__min_charge" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included when using the "single price per minute" or "prefix" rating method</TD><TD>
3589       <INPUT TYPE="text" NAME="voip_cdr__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity when using "single price per minute" rating method</TD><TD>
3590       <SELECT NAME="voip_cdr__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Handling of calls without a rate in the rate table</TD><TD>
3591       <SELECT NAME="voip_cdr__ignore_unrateable"><OPTION VALUE="" SELECTED>Exit with a fatal error<OPTION VALUE="1">Ignore and continue<OPTION VALUE="2">Flag for later review</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD>
3592       <INPUT TYPE="text" NAME="voip_cdr__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Disable rating of CDR records based on the "src" field in addition to "charged_party"</TD><TD>
3593       <INPUT TYPE="checkbox" NAME="voip_cdr__disable_src" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Destination prefix for domestic CDR records</TD><TD>
3594       <INPUT TYPE="text" NAME="voip_cdr__domestic_prefix" VALUE="1"></TD></TR><TR><TD ALIGN="right">Destination prefix for international CDR records</TD><TD>
3595       <INPUT TYPE="text" NAME="voip_cdr__international_prefix" VALUE="011"></TD></TR><TR><TD ALIGN="right">Disable automatic toll-free processing</TD><TD>
3596       <INPUT TYPE="checkbox" NAME="voip_cdr__disable_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD>
3597       <INPUT TYPE="checkbox" NAME="voip_cdr__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD>
3598       <INPUT TYPE="text" NAME="voip_cdr__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3599       <INPUT TYPE="text" NAME="voip_cdr__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3600       <INPUT TYPE="text" NAME="voip_cdr__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD>
3601       <INPUT TYPE="text" NAME="voip_cdr__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD>
3602       <INPUT TYPE="text" NAME="voip_cdr__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3603       <INPUT TYPE="text" NAME="voip_cdr__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3604       <INPUT TYPE="text" NAME="voip_cdr__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values: </TD><TD>
3605       <INPUT TYPE="text" NAME="voip_cdr__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination number starts with any of these values: </TD><TD>
3606       <INPUT TYPE="text" NAME="voip_cdr__skip_dst_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD>
3607       <INPUT TYPE="text" NAME="voip_cdr__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the source is more than this many digits:</TD><TD>
3608       <INPUT TYPE="text" NAME="voip_cdr__skip_src_length_more" VALUE=""></TD></TR><TR><TD ALIGN="right">Do charge for CDRs where source is equal or greater than the specified digits, when accountcode is toll free</TD><TD>
3609       <INPUT TYPE="checkbox" NAME="voip_cdr__noskip_src_length_accountcode_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional alternate rate plan when accountcode is toll free: </TD><TD>
3610       <SELECT NAME="voip_cdr__accountcode_tollfree_ratenum"><OPTION VALUE=""></SELECT></TD></TR><TR><TD ALIGN="right">When using an alternate rate plan for toll-free accountcodes, the CDR field to use in rating calculations</TD><TD>
3611       <SELECT NAME="voip_cdr__accountcode_tollfree_field"><OPTION VALUE="dst">Destination (dst)<OPTION VALUE="src">Source (src)</SELECT></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD>
3612       <INPUT TYPE="text" NAME="voip_cdr__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do charge for CDRs where dst is less than the specified digits, when accountcode is toll free</TD><TD>
3613       <INPUT TYPE="checkbox" NAME="voip_cdr__noskip_dst_length_accountcode_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value: </TD><TD>
3614       <INPUT TYPE="text" NAME="voip_cdr__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where max_callers is less than or equal to this value: </TD><TD>
3615       <INPUT TYPE="text" NAME="voip_cdr__skip_max_callers" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for calls between numbers belonging to the same customer</TD><TD>
3616       <INPUT TYPE="checkbox" NAME="voip_cdr__skip_same_customer" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD>
3617       <INPUT TYPE="checkbox" NAME="voip_cdr__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Rewrite these (comma-separated) destination numbers to 411 for rating purposes (also ignore any carrierid check): </TD><TD>
3618       <INPUT TYPE="text" NAME="voip_cdr__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD>
3619       <SELECT NAME="voip_cdr__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD>
3620       <SELECT NAME="voip_cdr__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD>
3621       <SELECT NAME="voip_cdr__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD>
3622       <INPUT TYPE="checkbox" NAME="voip_cdr__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not): </TD><TD>
3623       <INPUT TYPE="text" NAME="voip_cdr__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD>
3624       <INPUT TYPE="checkbox" NAME="voip_cdr__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show details for included / no-charge calls.</TD><TD>
3625       <INPUT TYPE="checkbox" NAME="voip_cdr__usage_showzero" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call (as well any setup fee, upon first payment).  Useful for prepaid.</TD><TD>
3626       <INPUT TYPE="checkbox" NAME="voip_cdr__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill for all phone numbers that were active during the billing period</TD><TD>
3627       <INPUT TYPE="checkbox" NAME="voip_cdr__bill_inactive_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only bill CDRs with a date during the package billing period</TD><TD>
3628       <INPUT TYPE="checkbox" NAME="voip_cdr__bill_only_pkg_dates" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Consider for tax purposes the number of lines to be svc_phones that may be provisioned rather than those that actually are.</TD><TD>
3629       <INPUT TYPE="checkbox" NAME="voip_cdr__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3630       <INPUT TYPE="checkbox" NAME="voip_cdr__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3631       <INPUT TYPE="checkbox" NAME="voip_cdr__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3632       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3633       <INPUT TYPE="checkbox" NAME="voip_cdr__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3634       <INPUT TYPE="checkbox" NAME="voip_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3635        NAME  = "voip_cdr__OPTIONS"
3636        ID    = "voip_cdr__OPTIONS"
3637        VALUE = "recur_temporality,recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,cdr_svc_method,rating_method,rounding,ratenum,intrastate_ratenum,calls_included,min_charge,min_included,sec_granularity,ignore_unrateable,default_prefix,disable_src,domestic_prefix,international_prefix,disable_tollfree,use_amaflags,use_carrierid,use_cdrtypenum,ignore_cdrtypenum,use_calltypenum,ignore_calltypenum,ignore_disposition,disposition_in,skip_dcontext,skip_dst_prefix,skip_dstchannel_prefix,skip_src_length_more,noskip_src_length_accountcode_tollfree,accountcode_tollfree_ratenum,accountcode_tollfree_field,skip_dst_length_less,noskip_dst_length_accountcode_tollfree,skip_lastapp,skip_max_callers,skip_same_customer,use_duration,411_rewrite,output_format,selfservice_format,selfservice_inbound_format,usage_mandate,usage_section,summarize_usage,usage_showzero,bill_every_call,bill_inactive_svcs,bill_only_pkg_dates,count_available_phones,suspend_bill,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3638 >
3639
3640
3641
3642       </DIV>
3643
3644
3645       <DIV ID="plandvoip_inbound"
3646            STYLE="display: none; z-index: 0"
3647       >
3648
3649         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3650       <SELECT NAME="voip_inbound__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD>
3651       <SELECT NAME="voip_inbound__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
3652       <INPUT TYPE="text" NAME="voip_inbound__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
3653       <INPUT TYPE="checkbox" NAME="voip_inbound__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
3654       <INPUT TYPE="checkbox" NAME="voip_inbound__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3655       <INPUT TYPE="checkbox" NAME="voip_inbound__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3656       <INPUT TYPE="checkbox" NAME="voip_inbound__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Charge per minute</TD><TD>
3657       <INPUT TYPE="text" NAME="voip_inbound__min_charge" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD>
3658       <INPUT TYPE="text" NAME="voip_inbound__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD>
3659       <SELECT NAME="voip_inbound__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD>
3660       <INPUT TYPE="text" NAME="voip_inbound__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD>
3661       <INPUT TYPE="checkbox" NAME="voip_inbound__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD>
3662       <INPUT TYPE="text" NAME="voip_inbound__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3663       <INPUT TYPE="text" NAME="voip_inbound__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3664       <INPUT TYPE="text" NAME="voip_inbound__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this cdrtypenum: </TD><TD>
3665       <INPUT TYPE="text" NAME="voip_inbound__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this cdrtypenum: </TD><TD>
3666       <INPUT TYPE="text" NAME="voip_inbound__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3667       <INPUT TYPE="text" NAME="voip_inbound__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3668       <INPUT TYPE="text" NAME="voip_inbound__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values:</TD><TD>
3669       <INPUT TYPE="text" NAME="voip_inbound__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD>
3670       <INPUT TYPE="text" NAME="voip_inbound__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD>
3671       <INPUT TYPE="text" NAME="voip_inbound__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value</TD><TD>
3672       <INPUT TYPE="text" NAME="voip_inbound__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD>
3673       <INPUT TYPE="checkbox" NAME="voip_inbound__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD>
3674       <SELECT NAME="voip_inbound__output_format"><OPTION VALUE="source_default">Default with source<OPTION VALUE="basic">Basic<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="default">Default<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="simple">Simple<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD>
3675       <INPUT TYPE="checkbox" NAME="voip_inbound__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD>
3676       <INPUT TYPE="checkbox" NAME="voip_inbound__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not)</TD><TD>
3677       <INPUT TYPE="text" NAME="voip_inbound__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call.  Useful for prepaid.</TD><TD>
3678       <INPUT TYPE="checkbox" NAME="voip_inbound__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3679       <INPUT TYPE="checkbox" NAME="voip_inbound__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3680       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3681       <INPUT TYPE="checkbox" NAME="voip_inbound__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3682       <INPUT TYPE="checkbox" NAME="voip_inbound__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3683        NAME  = "voip_inbound__OPTIONS"
3684        ID    = "voip_inbound__OPTIONS"
3685        VALUE = "recur_temporality,recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,min_charge,min_included,sec_granularity,default_prefix,use_amaflags,use_carrierid,use_cdrtypenum,ignore_cdrtypenum,use_calltypenum,ignore_calltypenum,ignore_disposition,disposition_in,skip_dcontext,skip_dstchannel_prefix,skip_dst_length_less,skip_lastapp,use_duration,output_format,usage_mandate,summarize_usage,usage_section,bill_every_call,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3686 >
3687
3688
3689
3690       </DIV>
3691
3692
3693       <DIV ID="plandvoip_tiered"
3694            STYLE="display: none; z-index: 0"
3695       >
3696
3697         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3698       <SELECT NAME="voip_tiered__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD>
3699       <SELECT NAME="voip_tiered__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
3700       <INPUT TYPE="text" NAME="voip_tiered__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
3701       <INPUT TYPE="checkbox" NAME="voip_tiered__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
3702       <INPUT TYPE="checkbox" NAME="voip_tiered__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3703       <INPUT TYPE="checkbox" NAME="voip_tiered__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3704       <INPUT TYPE="checkbox" NAME="voip_tiered__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD>
3705       <SELECT NAME="voip_tiered__cdr_svc_method"><OPTION VALUE="svc_phone.phonenum">Phone numbers (svc_phone.phonenum)<OPTION VALUE="svc_pbx.title">PBX name (svc_pbx.title)<OPTION VALUE="svc_pbx.svcnum">Freeside service # (svc_pbx.svcnum)<OPTION VALUE="svc_pbx.ip.src">PBX name to source IP address<OPTION VALUE="svc_pbx.ip.dst">PBX name to destination IP address<OPTION VALUE="svc_acct.username">Username (svc_acct.username)</SELECT></TD></TR><TR><TD ALIGN="right">Call direction when using phone number matching</TD><TD>
3706       <SELECT NAME="voip_tiered__cdr_inout"><OPTION VALUE="outbound">Outbound<OPTION VALUE="inbound">Inbound<OPTION VALUE="outbound_inbound">Outbound and Inbound</SELECT></TD></TR><TR><TD ALIGN="right">Tier plan</TD><TD>
3707       <SELECT NAME="voip_tiered__tiernum"></SELECT></TD></TR><TR><TD ALIGN="right">Rounding for destination prefix rating</TD><TD>
3708       <SELECT NAME="voip_tiered__rounding"><OPTION VALUE="2">Two decimal places (cent)<OPTION VALUE="4">Four decimal places (100th of a cent)</SELECT></TD></TR><TR><TD ALIGN="right">Number of calls included at no usage charge</TD><TD>
3709       <INPUT TYPE="text" NAME="voip_tiered__calls_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD>
3710       <INPUT TYPE="text" NAME="voip_tiered__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD>
3711       <SELECT NAME="voip_tiered__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD>
3712       <INPUT TYPE="text" NAME="voip_tiered__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Disable rating of CDR records based on the "src" field in addition to "charged_party"</TD><TD>
3713       <INPUT TYPE="checkbox" NAME="voip_tiered__disable_src" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD>
3714       <INPUT TYPE="checkbox" NAME="voip_tiered__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD>
3715       <INPUT TYPE="text" NAME="voip_tiered__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3716       <INPUT TYPE="text" NAME="voip_tiered__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD>
3717       <INPUT TYPE="text" NAME="voip_tiered__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD>
3718       <INPUT TYPE="text" NAME="voip_tiered__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD>
3719       <INPUT TYPE="text" NAME="voip_tiered__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3720       <INPUT TYPE="text" NAME="voip_tiered__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD>
3721       <INPUT TYPE="text" NAME="voip_tiered__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values: </TD><TD>
3722       <INPUT TYPE="text" NAME="voip_tiered__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination number starts with any of these values: </TD><TD>
3723       <INPUT TYPE="text" NAME="voip_tiered__skip_dst_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD>
3724       <INPUT TYPE="text" NAME="voip_tiered__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the source is more than this many digits:</TD><TD>
3725       <INPUT TYPE="text" NAME="voip_tiered__skip_src_length_more" VALUE=""></TD></TR><TR><TD ALIGN="right">When using an alternate rate plan for toll-free accountcodes, the CDR field to use in rating calculations</TD><TD>
3726       <SELECT NAME="voip_tiered__accountcode_tollfree_field"><OPTION VALUE="dst">Destination (dst)<OPTION VALUE="src">Source (src)</SELECT></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD>
3727       <INPUT TYPE="text" NAME="voip_tiered__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value: </TD><TD>
3728       <INPUT TYPE="text" NAME="voip_tiered__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where max_callers is less than or equal to this value: </TD><TD>
3729       <INPUT TYPE="text" NAME="voip_tiered__skip_max_callers" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for calls between numbers belonging to the same customer</TD><TD>
3730       <INPUT TYPE="checkbox" NAME="voip_tiered__skip_same_customer" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD>
3731       <INPUT TYPE="checkbox" NAME="voip_tiered__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Rewrite these (comma-separated) destination numbers to 411 for rating purposes (also ignore any carrierid check): </TD><TD>
3732       <INPUT TYPE="text" NAME="voip_tiered__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD>
3733       <SELECT NAME="voip_tiered__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD>
3734       <SELECT NAME="voip_tiered__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD>
3735       <SELECT NAME="voip_tiered__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="simple2">Simple with source<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD>
3736       <INPUT TYPE="checkbox" NAME="voip_tiered__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not): </TD><TD>
3737       <INPUT TYPE="text" NAME="voip_tiered__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD>
3738       <INPUT TYPE="checkbox" NAME="voip_tiered__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show details for included / no-charge calls.</TD><TD>
3739       <INPUT TYPE="checkbox" NAME="voip_tiered__usage_showzero" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call (as well any setup fee, upon first payment).  Useful for prepaid.</TD><TD>
3740       <INPUT TYPE="checkbox" NAME="voip_tiered__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill for all phone numbers that were active during the billing period</TD><TD>
3741       <INPUT TYPE="checkbox" NAME="voip_tiered__bill_inactive_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only bill CDRs with a date during the package billing period</TD><TD>
3742       <INPUT TYPE="checkbox" NAME="voip_tiered__bill_only_pkg_dates" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Consider for tax purposes the number of lines to be svc_phones that may be provisioned rather than those that actually are.</TD><TD>
3743       <INPUT TYPE="checkbox" NAME="voip_tiered__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3744       <INPUT TYPE="checkbox" NAME="voip_tiered__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3745       <INPUT TYPE="checkbox" NAME="voip_tiered__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3746       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3747       <INPUT TYPE="checkbox" NAME="voip_tiered__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3748       <INPUT TYPE="checkbox" NAME="voip_tiered__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3749        NAME  = "voip_tiered__OPTIONS"
3750        ID    = "voip_tiered__OPTIONS"
3751        VALUE = "recur_temporality,recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,cdr_svc_method,cdr_inout,tiernum,rounding,calls_included,min_included,sec_granularity,default_prefix,disable_src,use_amaflags,use_carrierid,use_cdrtypenum,ignore_cdrtypenum,use_calltypenum,ignore_calltypenum,ignore_disposition,disposition_in,skip_dcontext,skip_dst_prefix,skip_dstchannel_prefix,skip_src_length_more,accountcode_tollfree_field,skip_dst_length_less,skip_lastapp,skip_max_callers,skip_same_customer,use_duration,411_rewrite,output_format,selfservice_format,selfservice_inbound_format,usage_mandate,usage_section,summarize_usage,usage_showzero,bill_every_call,bill_inactive_svcs,bill_only_pkg_dates,count_available_phones,suspend_bill,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3752 >
3753
3754
3755
3756       </DIV>
3757
3758
3759       <DIV ID="plandcdr_termination"
3760            STYLE="display: none; z-index: 0"
3761       >
3762
3763         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3764       <SELECT NAME="cdr_termination__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD>
3765       <SELECT NAME="cdr_termination__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
3766       <INPUT TYPE="text" NAME="cdr_termination__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
3767       <INPUT TYPE="checkbox" NAME="cdr_termination__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
3768       <INPUT TYPE="checkbox" NAME="cdr_termination__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3769       <INPUT TYPE="checkbox" NAME="cdr_termination__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3770       <INPUT TYPE="checkbox" NAME="cdr_termination__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD>
3771       <SELECT NAME="cdr_termination__output_format"><OPTION VALUE="source_default">Default with source<OPTION VALUE="basic">Basic<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="default">Default<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="simple">Simple<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD>
3772       <INPUT TYPE="text" NAME="cdr_termination__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD>
3773       <INPUT TYPE="checkbox" NAME="cdr_termination__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD>
3774       <INPUT TYPE="checkbox" NAME="cdr_termination__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3775       <INPUT TYPE="checkbox" NAME="cdr_termination__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3776       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3777       <INPUT TYPE="checkbox" NAME="cdr_termination__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3778       <INPUT TYPE="checkbox" NAME="cdr_termination__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3779        NAME  = "cdr_termination__OPTIONS"
3780        ID    = "cdr_termination__OPTIONS"
3781        VALUE = "recur_temporality,recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,output_format,usage_section,summarize_usage,usage_mandate,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3782 >
3783
3784
3785
3786       </DIV>
3787
3788
3789       <DIV ID="plandprepaid_nibblebill"
3790            STYLE="display: none; z-index: 0"
3791       >
3792
3793         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Nibble rate</TD><TD>
3794       <INPUT TYPE="text" NAME="prepaid_nibblebill__nibble_rate" VALUE=""></TD></TR></TABLE><INPUT TYPE  = "hidden"
3795        NAME  = "prepaid_nibblebill__OPTIONS"
3796        ID    = "prepaid_nibblebill__OPTIONS"
3797        VALUE = "setup_fee,recur_fee,nibble_rate"
3798 >
3799
3800
3801
3802       </DIV>
3803
3804
3805       <DIV ID="plandbulk_simple"
3806            STYLE="display: none; z-index: 0"
3807       >
3808
3809         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Setup fee for each new service</TD><TD>
3810       <INPUT TYPE="text" NAME="bulk_simple__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD>
3811       <INPUT TYPE="text" NAME="bulk_simple__svc_recur_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Show a count of services on the invoice, instead of a detailed list</TD><TD>
3812       <INPUT TYPE="checkbox" NAME="bulk_simple__summarize_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3813       <INPUT TYPE="checkbox" NAME="bulk_simple__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3814       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3815       <INPUT TYPE="checkbox" NAME="bulk_simple__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3816       <INPUT TYPE="checkbox" NAME="bulk_simple__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3817        NAME  = "bulk_simple__OPTIONS"
3818        ID    = "bulk_simple__OPTIONS"
3819        VALUE = "svc_setup_fee,svc_recur_fee,summarize_svcs,no_prorate,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3820 >
3821
3822
3823
3824       </DIV>
3825
3826
3827       <DIV ID="plandbulk"
3828            STYLE="display: none; z-index: 0"
3829       >
3830
3831         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Don't prorate recurring fees on services active for a partial month</TD><TD>
3832       <INPUT TYPE="checkbox" NAME="bulk__no_prorate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Setup fee for each new service</TD><TD>
3833       <INPUT TYPE="text" NAME="bulk__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD>
3834       <INPUT TYPE="text" NAME="bulk__svc_recur_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Show a count of services on the invoice, instead of a detailed list</TD><TD>
3835       <INPUT TYPE="checkbox" NAME="bulk__summarize_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3836       <INPUT TYPE="checkbox" NAME="bulk__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3837       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3838       <INPUT TYPE="checkbox" NAME="bulk__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3839       <INPUT TYPE="checkbox" NAME="bulk__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3840        NAME  = "bulk__OPTIONS"
3841        ID    = "bulk__OPTIONS"
3842        VALUE = "no_prorate,svc_setup_fee,svc_recur_fee,summarize_svcs,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3843 >
3844
3845
3846
3847       </DIV>
3848
3849
3850       <DIV ID="plandagent"
3851            STYLE="display: none; z-index: 0"
3852       >
3853
3854         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD>
3855       <INPUT TYPE="text" NAME="agent__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3856       <INPUT TYPE="checkbox" NAME="agent__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Disable prorating bulk packages (charge full price for packages active only a portion of the month)</TD><TD>
3857       <INPUT TYPE="checkbox" NAME="agent__no_pkg_prorate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Separate customer from package display on invoices</TD><TD>
3858       <INPUT TYPE="checkbox" NAME="agent__display_separate_cust" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill wholesale on cost only, disabling the price fallback</TD><TD>
3859       <INPUT TYPE="checkbox" NAME="agent__cost_only" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD>
3860       <INPUT TYPE="checkbox" NAME="agent__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Round the prorated period to the nearest full day</TD><TD>
3861       <INPUT TYPE="checkbox" NAME="agent__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3862       <INPUT TYPE="checkbox" NAME="agent__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3863       <INPUT TYPE="checkbox" NAME="agent__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3864       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3865       <INPUT TYPE="checkbox" NAME="agent__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3866       <INPUT TYPE="checkbox" NAME="agent__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3867        NAME  = "agent__OPTIONS"
3868        ID    = "agent__OPTIONS"
3869        VALUE = "cutoff_day,add_full_period,no_pkg_prorate,display_separate_cust,cost_only,prorate_defer_bill,prorate_round_day,prorate_verbose,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3870 >
3871
3872
3873
3874       </DIV>
3875
3876
3877       <DIV ID="plandagent_cdr"
3878            STYLE="display: none; z-index: 0"
3879       >
3880
3881         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD>
3882       <SELECT NAME="agent_cdr__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD>
3883       <SELECT NAME="agent_cdr__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
3884       <INPUT TYPE="text" NAME="agent_cdr__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
3885       <INPUT TYPE="checkbox" NAME="agent_cdr__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
3886       <INPUT TYPE="checkbox" NAME="agent_cdr__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
3887       <INPUT TYPE="checkbox" NAME="agent_cdr__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
3888       <INPUT TYPE="checkbox" NAME="agent_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD>
3889       <SELECT NAME="agent_cdr__output_format"><OPTION VALUE="source_default">Default with source<OPTION VALUE="basic">Basic<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="default">Default<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="simple">Simple<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD>
3890       <INPUT TYPE="text" NAME="agent_cdr__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD>
3891       <INPUT TYPE="checkbox" NAME="agent_cdr__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD>
3892       <INPUT TYPE="checkbox" NAME="agent_cdr__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3893       <INPUT TYPE="checkbox" NAME="agent_cdr__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3894       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3895       <INPUT TYPE="checkbox" NAME="agent_cdr__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3896       <INPUT TYPE="checkbox" NAME="agent_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3897        NAME  = "agent_cdr__OPTIONS"
3898        ID    = "agent_cdr__OPTIONS"
3899        VALUE = "recur_temporality,recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,output_format,usage_section,summarize_usage,usage_mandate,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3900 >
3901
3902
3903
3904       </DIV>
3905
3906
3907       <DIV ID="plandtorrus_bw_percentile"
3908            STYLE="display: none; z-index: 0"
3909       >
3910
3911         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included megabytes/sec (95th percentile)</TD><TD>
3912       <INPUT TYPE="text" NAME="torrus_bw_percentile__base_mbps" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge per megabyte/sec (95th percentile)</TD><TD>
3913       <INPUT TYPE="text" NAME="torrus_bw_percentile__mbps_rate" VALUE="0"></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3914       <INPUT TYPE="text" NAME="torrus_bw_percentile__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3915       <INPUT TYPE="text" NAME="torrus_bw_percentile__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3916       <SELECT NAME="torrus_bw_percentile__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3917       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD>
3918       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD>
3919       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3920       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3921       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3922       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3923       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3924       <INPUT TYPE="text" NAME="torrus_bw_percentile__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3925       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3926       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3927       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3928       <INPUT TYPE="checkbox" NAME="torrus_bw_percentile__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3929        NAME  = "torrus_bw_percentile__OPTIONS"
3930        ID    = "torrus_bw_percentile__OPTIONS"
3931        VALUE = "base_mbps,mbps_rate,expire_months,adjourn_months,contract_end_months,start_1st,prorate_defer_bill,prorate_round_day,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3932 >
3933
3934
3935
3936       </DIV>
3937
3938
3939       <DIV ID="plandtorrus_bw_usage"
3940            STYLE="display: none; z-index: 0"
3941       >
3942
3943         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included gigabytes</TD><TD>
3944       <INPUT TYPE="text" NAME="torrus_bw_usage__base_gb" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge per gigabyte</TD><TD>
3945       <INPUT TYPE="text" NAME="torrus_bw_usage__gb_rate" VALUE="0"></TD></TR><TR><TD ALIGN="right">Auto-add an expiration date this number of months out</TD><TD>
3946       <INPUT TYPE="text" NAME="torrus_bw_usage__expire_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a suspension date this number of months out</TD><TD>
3947       <INPUT TYPE="text" NAME="torrus_bw_usage__adjourn_months" VALUE=""></TD></TR><TR><TD ALIGN="right">Auto-add a contract end date this number of years out</TD><TD>
3948       <SELECT NAME="torrus_bw_usage__contract_end_months"><OPTION VALUE="" SELECTED>(none)<OPTION VALUE="12">1<OPTION VALUE="24">2<OPTION VALUE="36">3<OPTION VALUE="48">4<OPTION VALUE="60">5</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD>
3949       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD>
3950       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD>
3951       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD>
3952       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD>
3953       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD>
3954       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD>
3955       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD>
3956       <INPUT TYPE="text" NAME="torrus_bw_usage__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3957       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3958       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3959       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3960       <INPUT TYPE="checkbox" NAME="torrus_bw_usage__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3961        NAME  = "torrus_bw_usage__OPTIONS"
3962        ID    = "torrus_bw_usage__OPTIONS"
3963        VALUE = "base_gb,gb_rate,expire_months,adjourn_months,contract_end_months,start_1st,prorate_defer_bill,prorate_round_day,suspend_bill,unsuspend_adjust_bill,bill_recur_on_cancel,bill_suspend_as_cancel,externalid,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3964 >
3965
3966
3967
3968       </DIV>
3969
3970
3971       <DIV ID="plandrt_time"
3972            STYLE="display: none; z-index: 0"
3973       >
3974
3975         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Rate (per minute)</TD><TD>
3976       <INPUT TYPE="text" NAME="rt_time__base_rate" VALUE="0"></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
3977       <INPUT TYPE="checkbox" NAME="rt_time__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
3978       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
3979       <INPUT TYPE="checkbox" NAME="rt_time__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
3980       <INPUT TYPE="checkbox" NAME="rt_time__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
3981        NAME  = "rt_time__OPTIONS"
3982        ID    = "rt_time__OPTIONS"
3983        VALUE = "base_rate,setup_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
3984 >
3985
3986
3987
3988       </DIV>
3989
3990
3991       <DIV ID="plandsql_generic"
3992            STYLE="display: none; z-index: 0"
3993       >
3994
3995         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Units included</TD><TD>
3996       <INPUT TYPE="text" NAME="sql_generic__recur_included" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per unit</TD><TD>
3997       <INPUT TYPE="text" NAME="sql_generic__recur_unit_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD>
3998       <INPUT TYPE="text" NAME="sql_generic__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD>
3999       <INPUT TYPE="text" NAME="sql_generic__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD>
4000       <INPUT TYPE="text" NAME="sql_generic__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD>
4001       <INPUT TYPE="text" NAME="sql_generic__query" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
4002       <INPUT TYPE="checkbox" NAME="sql_generic__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
4003       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
4004       <INPUT TYPE="checkbox" NAME="sql_generic__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
4005       <INPUT TYPE="checkbox" NAME="sql_generic__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
4006        NAME  = "sql_generic__OPTIONS"
4007        ID    = "sql_generic__OPTIONS"
4008        VALUE = "recur_included,recur_unit_charge,datasrc,db_username,db_password,query,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
4009 >
4010
4011
4012
4013       </DIV>
4014
4015
4016       <DIV ID="plandsql_external"
4017            STYLE="display: none; z-index: 0"
4018       >
4019
4020         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Recurring fee method</TD><TD>
4021       <SELECT NAME="sql_external__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD>
4022       <INPUT TYPE="text" NAME="sql_external__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD>
4023       <INPUT TYPE="checkbox" NAME="sql_external__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD>
4024       <INPUT TYPE="checkbox" NAME="sql_external__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD>
4025       <INPUT TYPE="checkbox" NAME="sql_external__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD>
4026       <INPUT TYPE="checkbox" NAME="sql_external__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD>
4027       <INPUT TYPE="text" NAME="sql_external__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD>
4028       <INPUT TYPE="text" NAME="sql_external__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database password</TD><TD>
4029       <INPUT TYPE="text" NAME="sql_external__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD>
4030       <INPUT TYPE="text" NAME="sql_external__query" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
4031       <INPUT TYPE="checkbox" NAME="sql_external__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
4032       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
4033       <INPUT TYPE="checkbox" NAME="sql_external__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
4034       <INPUT TYPE="checkbox" NAME="sql_external__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
4035        NAME  = "sql_external__OPTIONS"
4036        ID    = "sql_external__OPTIONS"
4037        VALUE = "recur_method,cutoff_day,prorate_defer_bill,prorate_round_day,add_full_period,prorate_verbose,datasrc,db_username,db_password,query,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
4038 >
4039
4040
4041
4042       </DIV>
4043
4044
4045       <DIV ID="plandflat_comission_cust"
4046            STYLE="display: none; z-index: 0"
4047       >
4048
4049         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD>
4050       <INPUT TYPE="text" NAME="flat_comission_cust__comission_depth" VALUE="1"></TD></TR><TR><TD ALIGN="right">Commission amount per month (per active package)</TD><TD>
4051       <INPUT TYPE="text" NAME="flat_comission_cust__comission_amount" VALUE="0"></TD></TR><TR><TD ALIGN="right">Reason type for commission credits</TD><TD>
4052       <SELECT NAME="flat_comission_cust__reason_type"><OPTION VALUE="4">Credit Reason<OPTION VALUE="5">Legacy</SELECT></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
4053       <INPUT TYPE="checkbox" NAME="flat_comission_cust__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
4054       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
4055       <INPUT TYPE="checkbox" NAME="flat_comission_cust__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
4056       <INPUT TYPE="checkbox" NAME="flat_comission_cust__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
4057        NAME  = "flat_comission_cust__OPTIONS"
4058        ID    = "flat_comission_cust__OPTIONS"
4059        VALUE = "comission_depth,comission_amount,reason_type,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
4060 >
4061
4062
4063
4064       </DIV>
4065
4066
4067       <DIV ID="plandflat_comission"
4068            STYLE="display: none; z-index: 0"
4069       >
4070
4071         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD>
4072       <INPUT TYPE="text" NAME="flat_comission__comission_depth" VALUE="1"></TD></TR><TR><TD ALIGN="right">Commission amount per month (per active package)</TD><TD>
4073       <INPUT TYPE="text" NAME="flat_comission__comission_amount" VALUE="0"></TD></TR><TR><TD ALIGN="right">Reason type for commission credits</TD><TD>
4074       <SELECT NAME="flat_comission__reason_type"><OPTION VALUE="4">Credit Reason<OPTION VALUE="5">Legacy</SELECT></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
4075       <INPUT TYPE="checkbox" NAME="flat_comission__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
4076       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
4077       <INPUT TYPE="checkbox" NAME="flat_comission__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
4078       <INPUT TYPE="checkbox" NAME="flat_comission__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
4079        NAME  = "flat_comission__OPTIONS"
4080        ID    = "flat_comission__OPTIONS"
4081        VALUE = "comission_depth,comission_amount,reason_type,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
4082 >
4083
4084
4085
4086       </DIV>
4087
4088
4089       <DIV ID="plandflat_comission_pkg"
4090            STYLE="display: none; z-index: 0"
4091       >
4092
4093         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD>
4094       <INPUT TYPE="text" NAME="flat_comission_pkg__comission_depth" VALUE="1"></TD></TR><TR><TD ALIGN="right">Commission amount per month (per active package)</TD><TD>
4095       <INPUT TYPE="text" NAME="flat_comission_pkg__comission_amount" VALUE="0"></TD></TR><TR><TD ALIGN="right">Applicable packages<BR><FONT SIZE="-1">(hold <b>ctrl</b> to select multiple packages)</FONT></TD><TD>
4096       <SELECT MULTIPLE NAME="flat_comission_pkg__comission_pkgpart"><OPTION VALUE="1">System Domain<OPTION VALUE="2">Monthly prorated account<OPTION VALUE="3">Monthly prorated broadband<OPTION VALUE="4">Annual subscription domain<OPTION VALUE="5">Monthly anniversary phone x4</SELECT></TD></TR><TR><TD ALIGN="right">Reason type for commission credits</TD><TD>
4097       <SELECT NAME="flat_comission_pkg__reason_type"><OPTION VALUE="4">Credit Reason<OPTION VALUE="5">Legacy</SELECT></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD>
4098       <INPUT TYPE="checkbox" NAME="flat_comission_pkg__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD>
4099       <span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD>
4100       <INPUT TYPE="checkbox" NAME="flat_comission_pkg__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD>
4101       <INPUT TYPE="checkbox" NAME="flat_comission_pkg__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE  = "hidden"
4102        NAME  = "flat_comission_pkg__OPTIONS"
4103        ID    = "flat_comission_pkg__OPTIONS"
4104        VALUE = "comission_depth,comission_amount,comission_pkgpart,reason_type,setup_fee,recur_fee,unused_credit_cancel,unused_credit_suspend,unused_credit_change,delay_cancel,a2billing_tariff,a2billing_type,a2billing_simultaccess,a2billing_carrier_cost_min,a2billing_carrer_initblock_offp,a2billing_carrier_increment_offp,a2billing_retail_cost_min_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp"
4105 >
4106
4107
4108
4109       </DIV>
4110
4111
4112 <SCRIPT TYPE="text/javascript">
4113
4114       function planchanged(what) {
4115
4116         aux_planchanged(what);
4117
4118         var planlayer = what.options[what.selectedIndex].value;
4119
4120           if (planlayer == "flat" ) {
4121
4122               document.getElementById('plandflat_delayed').style.display = "none";
4123               document.getElementById('plandflat_delayed').style.zIndex = 0;
4124               document.getElementById('plandflat_introrate').style.display = "none";
4125               document.getElementById('plandflat_introrate').style.zIndex = 0;
4126               document.getElementById('plandprorate').style.display = "none";
4127               document.getElementById('plandprorate').style.zIndex = 0;
4128               document.getElementById('plandprorate_delayed').style.display = "none";
4129               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4130               document.getElementById('plandprorate_calendar').style.display = "none";
4131               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4132               document.getElementById('plandprepaid').style.display = "none";
4133               document.getElementById('plandprepaid').style.zIndex = 0;
4134               document.getElementById('plandsubscription').style.display = "none";
4135               document.getElementById('plandsubscription').style.zIndex = 0;
4136               document.getElementById('plandsqlradacct_hour').style.display = "none";
4137               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4138               document.getElementById('plandsqlradacct_daily').style.display = "none";
4139               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4140               document.getElementById('plandvoip_cdr').style.display = "none";
4141               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4142               document.getElementById('plandvoip_inbound').style.display = "none";
4143               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4144               document.getElementById('plandvoip_tiered').style.display = "none";
4145               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4146               document.getElementById('plandcdr_termination').style.display = "none";
4147               document.getElementById('plandcdr_termination').style.zIndex = 0;
4148               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4149               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4150               document.getElementById('plandbulk_simple').style.display = "none";
4151               document.getElementById('plandbulk_simple').style.zIndex = 0;
4152               document.getElementById('plandbulk').style.display = "none";
4153               document.getElementById('plandbulk').style.zIndex = 0;
4154               document.getElementById('plandagent').style.display = "none";
4155               document.getElementById('plandagent').style.zIndex = 0;
4156               document.getElementById('plandagent_cdr').style.display = "none";
4157               document.getElementById('plandagent_cdr').style.zIndex = 0;
4158               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4159               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4160               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4161               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4162               document.getElementById('plandrt_time').style.display = "none";
4163               document.getElementById('plandrt_time').style.zIndex = 0;
4164               document.getElementById('plandsql_generic').style.display = "none";
4165               document.getElementById('plandsql_generic').style.zIndex = 0;
4166               document.getElementById('plandsql_external').style.display = "none";
4167               document.getElementById('plandsql_external').style.zIndex = 0;
4168               document.getElementById('plandflat_comission_cust').style.display = "none";
4169               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4170               document.getElementById('plandflat_comission').style.display = "none";
4171               document.getElementById('plandflat_comission').style.zIndex = 0;
4172               document.getElementById('plandflat_comission_pkg').style.display = "none";
4173               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4174
4175             document.getElementById('plandflat').style.display = "";
4176             document.getElementById('plandflat').style.zIndex = 1;
4177
4178           }
4179           if (planlayer == "flat_delayed" ) {
4180
4181               document.getElementById('plandflat').style.display = "none";
4182               document.getElementById('plandflat').style.zIndex = 0;
4183               document.getElementById('plandflat_introrate').style.display = "none";
4184               document.getElementById('plandflat_introrate').style.zIndex = 0;
4185               document.getElementById('plandprorate').style.display = "none";
4186               document.getElementById('plandprorate').style.zIndex = 0;
4187               document.getElementById('plandprorate_delayed').style.display = "none";
4188               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4189               document.getElementById('plandprorate_calendar').style.display = "none";
4190               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4191               document.getElementById('plandprepaid').style.display = "none";
4192               document.getElementById('plandprepaid').style.zIndex = 0;
4193               document.getElementById('plandsubscription').style.display = "none";
4194               document.getElementById('plandsubscription').style.zIndex = 0;
4195               document.getElementById('plandsqlradacct_hour').style.display = "none";
4196               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4197               document.getElementById('plandsqlradacct_daily').style.display = "none";
4198               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4199               document.getElementById('plandvoip_cdr').style.display = "none";
4200               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4201               document.getElementById('plandvoip_inbound').style.display = "none";
4202               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4203               document.getElementById('plandvoip_tiered').style.display = "none";
4204               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4205               document.getElementById('plandcdr_termination').style.display = "none";
4206               document.getElementById('plandcdr_termination').style.zIndex = 0;
4207               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4208               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4209               document.getElementById('plandbulk_simple').style.display = "none";
4210               document.getElementById('plandbulk_simple').style.zIndex = 0;
4211               document.getElementById('plandbulk').style.display = "none";
4212               document.getElementById('plandbulk').style.zIndex = 0;
4213               document.getElementById('plandagent').style.display = "none";
4214               document.getElementById('plandagent').style.zIndex = 0;
4215               document.getElementById('plandagent_cdr').style.display = "none";
4216               document.getElementById('plandagent_cdr').style.zIndex = 0;
4217               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4218               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4219               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4220               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4221               document.getElementById('plandrt_time').style.display = "none";
4222               document.getElementById('plandrt_time').style.zIndex = 0;
4223               document.getElementById('plandsql_generic').style.display = "none";
4224               document.getElementById('plandsql_generic').style.zIndex = 0;
4225               document.getElementById('plandsql_external').style.display = "none";
4226               document.getElementById('plandsql_external').style.zIndex = 0;
4227               document.getElementById('plandflat_comission_cust').style.display = "none";
4228               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4229               document.getElementById('plandflat_comission').style.display = "none";
4230               document.getElementById('plandflat_comission').style.zIndex = 0;
4231               document.getElementById('plandflat_comission_pkg').style.display = "none";
4232               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4233
4234             document.getElementById('plandflat_delayed').style.display = "";
4235             document.getElementById('plandflat_delayed').style.zIndex = 1;
4236
4237           }
4238           if (planlayer == "flat_introrate" ) {
4239
4240               document.getElementById('plandflat').style.display = "none";
4241               document.getElementById('plandflat').style.zIndex = 0;
4242               document.getElementById('plandflat_delayed').style.display = "none";
4243               document.getElementById('plandflat_delayed').style.zIndex = 0;
4244               document.getElementById('plandprorate').style.display = "none";
4245               document.getElementById('plandprorate').style.zIndex = 0;
4246               document.getElementById('plandprorate_delayed').style.display = "none";
4247               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4248               document.getElementById('plandprorate_calendar').style.display = "none";
4249               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4250               document.getElementById('plandprepaid').style.display = "none";
4251               document.getElementById('plandprepaid').style.zIndex = 0;
4252               document.getElementById('plandsubscription').style.display = "none";
4253               document.getElementById('plandsubscription').style.zIndex = 0;
4254               document.getElementById('plandsqlradacct_hour').style.display = "none";
4255               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4256               document.getElementById('plandsqlradacct_daily').style.display = "none";
4257               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4258               document.getElementById('plandvoip_cdr').style.display = "none";
4259               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4260               document.getElementById('plandvoip_inbound').style.display = "none";
4261               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4262               document.getElementById('plandvoip_tiered').style.display = "none";
4263               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4264               document.getElementById('plandcdr_termination').style.display = "none";
4265               document.getElementById('plandcdr_termination').style.zIndex = 0;
4266               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4267               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4268               document.getElementById('plandbulk_simple').style.display = "none";
4269               document.getElementById('plandbulk_simple').style.zIndex = 0;
4270               document.getElementById('plandbulk').style.display = "none";
4271               document.getElementById('plandbulk').style.zIndex = 0;
4272               document.getElementById('plandagent').style.display = "none";
4273               document.getElementById('plandagent').style.zIndex = 0;
4274               document.getElementById('plandagent_cdr').style.display = "none";
4275               document.getElementById('plandagent_cdr').style.zIndex = 0;
4276               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4277               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4278               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4279               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4280               document.getElementById('plandrt_time').style.display = "none";
4281               document.getElementById('plandrt_time').style.zIndex = 0;
4282               document.getElementById('plandsql_generic').style.display = "none";
4283               document.getElementById('plandsql_generic').style.zIndex = 0;
4284               document.getElementById('plandsql_external').style.display = "none";
4285               document.getElementById('plandsql_external').style.zIndex = 0;
4286               document.getElementById('plandflat_comission_cust').style.display = "none";
4287               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4288               document.getElementById('plandflat_comission').style.display = "none";
4289               document.getElementById('plandflat_comission').style.zIndex = 0;
4290               document.getElementById('plandflat_comission_pkg').style.display = "none";
4291               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4292
4293             document.getElementById('plandflat_introrate').style.display = "";
4294             document.getElementById('plandflat_introrate').style.zIndex = 1;
4295
4296           }
4297           if (planlayer == "prorate" ) {
4298
4299               document.getElementById('plandflat').style.display = "none";
4300               document.getElementById('plandflat').style.zIndex = 0;
4301               document.getElementById('plandflat_delayed').style.display = "none";
4302               document.getElementById('plandflat_delayed').style.zIndex = 0;
4303               document.getElementById('plandflat_introrate').style.display = "none";
4304               document.getElementById('plandflat_introrate').style.zIndex = 0;
4305               document.getElementById('plandprorate_delayed').style.display = "none";
4306               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4307               document.getElementById('plandprorate_calendar').style.display = "none";
4308               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4309               document.getElementById('plandprepaid').style.display = "none";
4310               document.getElementById('plandprepaid').style.zIndex = 0;
4311               document.getElementById('plandsubscription').style.display = "none";
4312               document.getElementById('plandsubscription').style.zIndex = 0;
4313               document.getElementById('plandsqlradacct_hour').style.display = "none";
4314               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4315               document.getElementById('plandsqlradacct_daily').style.display = "none";
4316               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4317               document.getElementById('plandvoip_cdr').style.display = "none";
4318               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4319               document.getElementById('plandvoip_inbound').style.display = "none";
4320               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4321               document.getElementById('plandvoip_tiered').style.display = "none";
4322               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4323               document.getElementById('plandcdr_termination').style.display = "none";
4324               document.getElementById('plandcdr_termination').style.zIndex = 0;
4325               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4326               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4327               document.getElementById('plandbulk_simple').style.display = "none";
4328               document.getElementById('plandbulk_simple').style.zIndex = 0;
4329               document.getElementById('plandbulk').style.display = "none";
4330               document.getElementById('plandbulk').style.zIndex = 0;
4331               document.getElementById('plandagent').style.display = "none";
4332               document.getElementById('plandagent').style.zIndex = 0;
4333               document.getElementById('plandagent_cdr').style.display = "none";
4334               document.getElementById('plandagent_cdr').style.zIndex = 0;
4335               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4336               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4337               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4338               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4339               document.getElementById('plandrt_time').style.display = "none";
4340               document.getElementById('plandrt_time').style.zIndex = 0;
4341               document.getElementById('plandsql_generic').style.display = "none";
4342               document.getElementById('plandsql_generic').style.zIndex = 0;
4343               document.getElementById('plandsql_external').style.display = "none";
4344               document.getElementById('plandsql_external').style.zIndex = 0;
4345               document.getElementById('plandflat_comission_cust').style.display = "none";
4346               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4347               document.getElementById('plandflat_comission').style.display = "none";
4348               document.getElementById('plandflat_comission').style.zIndex = 0;
4349               document.getElementById('plandflat_comission_pkg').style.display = "none";
4350               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4351
4352             document.getElementById('plandprorate').style.display = "";
4353             document.getElementById('plandprorate').style.zIndex = 1;
4354
4355           }
4356           if (planlayer == "prorate_delayed" ) {
4357
4358               document.getElementById('plandflat').style.display = "none";
4359               document.getElementById('plandflat').style.zIndex = 0;
4360               document.getElementById('plandflat_delayed').style.display = "none";
4361               document.getElementById('plandflat_delayed').style.zIndex = 0;
4362               document.getElementById('plandflat_introrate').style.display = "none";
4363               document.getElementById('plandflat_introrate').style.zIndex = 0;
4364               document.getElementById('plandprorate').style.display = "none";
4365               document.getElementById('plandprorate').style.zIndex = 0;
4366               document.getElementById('plandprorate_calendar').style.display = "none";
4367               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4368               document.getElementById('plandprepaid').style.display = "none";
4369               document.getElementById('plandprepaid').style.zIndex = 0;
4370               document.getElementById('plandsubscription').style.display = "none";
4371               document.getElementById('plandsubscription').style.zIndex = 0;
4372               document.getElementById('plandsqlradacct_hour').style.display = "none";
4373               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4374               document.getElementById('plandsqlradacct_daily').style.display = "none";
4375               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4376               document.getElementById('plandvoip_cdr').style.display = "none";
4377               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4378               document.getElementById('plandvoip_inbound').style.display = "none";
4379               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4380               document.getElementById('plandvoip_tiered').style.display = "none";
4381               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4382               document.getElementById('plandcdr_termination').style.display = "none";
4383               document.getElementById('plandcdr_termination').style.zIndex = 0;
4384               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4385               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4386               document.getElementById('plandbulk_simple').style.display = "none";
4387               document.getElementById('plandbulk_simple').style.zIndex = 0;
4388               document.getElementById('plandbulk').style.display = "none";
4389               document.getElementById('plandbulk').style.zIndex = 0;
4390               document.getElementById('plandagent').style.display = "none";
4391               document.getElementById('plandagent').style.zIndex = 0;
4392               document.getElementById('plandagent_cdr').style.display = "none";
4393               document.getElementById('plandagent_cdr').style.zIndex = 0;
4394               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4395               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4396               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4397               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4398               document.getElementById('plandrt_time').style.display = "none";
4399               document.getElementById('plandrt_time').style.zIndex = 0;
4400               document.getElementById('plandsql_generic').style.display = "none";
4401               document.getElementById('plandsql_generic').style.zIndex = 0;
4402               document.getElementById('plandsql_external').style.display = "none";
4403               document.getElementById('plandsql_external').style.zIndex = 0;
4404               document.getElementById('plandflat_comission_cust').style.display = "none";
4405               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4406               document.getElementById('plandflat_comission').style.display = "none";
4407               document.getElementById('plandflat_comission').style.zIndex = 0;
4408               document.getElementById('plandflat_comission_pkg').style.display = "none";
4409               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4410
4411             document.getElementById('plandprorate_delayed').style.display = "";
4412             document.getElementById('plandprorate_delayed').style.zIndex = 1;
4413
4414           }
4415           if (planlayer == "prorate_calendar" ) {
4416
4417               document.getElementById('plandflat').style.display = "none";
4418               document.getElementById('plandflat').style.zIndex = 0;
4419               document.getElementById('plandflat_delayed').style.display = "none";
4420               document.getElementById('plandflat_delayed').style.zIndex = 0;
4421               document.getElementById('plandflat_introrate').style.display = "none";
4422               document.getElementById('plandflat_introrate').style.zIndex = 0;
4423               document.getElementById('plandprorate').style.display = "none";
4424               document.getElementById('plandprorate').style.zIndex = 0;
4425               document.getElementById('plandprorate_delayed').style.display = "none";
4426               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4427               document.getElementById('plandprepaid').style.display = "none";
4428               document.getElementById('plandprepaid').style.zIndex = 0;
4429               document.getElementById('plandsubscription').style.display = "none";
4430               document.getElementById('plandsubscription').style.zIndex = 0;
4431               document.getElementById('plandsqlradacct_hour').style.display = "none";
4432               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4433               document.getElementById('plandsqlradacct_daily').style.display = "none";
4434               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4435               document.getElementById('plandvoip_cdr').style.display = "none";
4436               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4437               document.getElementById('plandvoip_inbound').style.display = "none";
4438               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4439               document.getElementById('plandvoip_tiered').style.display = "none";
4440               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4441               document.getElementById('plandcdr_termination').style.display = "none";
4442               document.getElementById('plandcdr_termination').style.zIndex = 0;
4443               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4444               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4445               document.getElementById('plandbulk_simple').style.display = "none";
4446               document.getElementById('plandbulk_simple').style.zIndex = 0;
4447               document.getElementById('plandbulk').style.display = "none";
4448               document.getElementById('plandbulk').style.zIndex = 0;
4449               document.getElementById('plandagent').style.display = "none";
4450               document.getElementById('plandagent').style.zIndex = 0;
4451               document.getElementById('plandagent_cdr').style.display = "none";
4452               document.getElementById('plandagent_cdr').style.zIndex = 0;
4453               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4454               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4455               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4456               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4457               document.getElementById('plandrt_time').style.display = "none";
4458               document.getElementById('plandrt_time').style.zIndex = 0;
4459               document.getElementById('plandsql_generic').style.display = "none";
4460               document.getElementById('plandsql_generic').style.zIndex = 0;
4461               document.getElementById('plandsql_external').style.display = "none";
4462               document.getElementById('plandsql_external').style.zIndex = 0;
4463               document.getElementById('plandflat_comission_cust').style.display = "none";
4464               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4465               document.getElementById('plandflat_comission').style.display = "none";
4466               document.getElementById('plandflat_comission').style.zIndex = 0;
4467               document.getElementById('plandflat_comission_pkg').style.display = "none";
4468               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4469
4470             document.getElementById('plandprorate_calendar').style.display = "";
4471             document.getElementById('plandprorate_calendar').style.zIndex = 1;
4472
4473           }
4474           if (planlayer == "prepaid" ) {
4475
4476               document.getElementById('plandflat').style.display = "none";
4477               document.getElementById('plandflat').style.zIndex = 0;
4478               document.getElementById('plandflat_delayed').style.display = "none";
4479               document.getElementById('plandflat_delayed').style.zIndex = 0;
4480               document.getElementById('plandflat_introrate').style.display = "none";
4481               document.getElementById('plandflat_introrate').style.zIndex = 0;
4482               document.getElementById('plandprorate').style.display = "none";
4483               document.getElementById('plandprorate').style.zIndex = 0;
4484               document.getElementById('plandprorate_delayed').style.display = "none";
4485               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4486               document.getElementById('plandprorate_calendar').style.display = "none";
4487               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4488               document.getElementById('plandsubscription').style.display = "none";
4489               document.getElementById('plandsubscription').style.zIndex = 0;
4490               document.getElementById('plandsqlradacct_hour').style.display = "none";
4491               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4492               document.getElementById('plandsqlradacct_daily').style.display = "none";
4493               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4494               document.getElementById('plandvoip_cdr').style.display = "none";
4495               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4496               document.getElementById('plandvoip_inbound').style.display = "none";
4497               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4498               document.getElementById('plandvoip_tiered').style.display = "none";
4499               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4500               document.getElementById('plandcdr_termination').style.display = "none";
4501               document.getElementById('plandcdr_termination').style.zIndex = 0;
4502               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4503               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4504               document.getElementById('plandbulk_simple').style.display = "none";
4505               document.getElementById('plandbulk_simple').style.zIndex = 0;
4506               document.getElementById('plandbulk').style.display = "none";
4507               document.getElementById('plandbulk').style.zIndex = 0;
4508               document.getElementById('plandagent').style.display = "none";
4509               document.getElementById('plandagent').style.zIndex = 0;
4510               document.getElementById('plandagent_cdr').style.display = "none";
4511               document.getElementById('plandagent_cdr').style.zIndex = 0;
4512               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4513               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4514               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4515               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4516               document.getElementById('plandrt_time').style.display = "none";
4517               document.getElementById('plandrt_time').style.zIndex = 0;
4518               document.getElementById('plandsql_generic').style.display = "none";
4519               document.getElementById('plandsql_generic').style.zIndex = 0;
4520               document.getElementById('plandsql_external').style.display = "none";
4521               document.getElementById('plandsql_external').style.zIndex = 0;
4522               document.getElementById('plandflat_comission_cust').style.display = "none";
4523               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4524               document.getElementById('plandflat_comission').style.display = "none";
4525               document.getElementById('plandflat_comission').style.zIndex = 0;
4526               document.getElementById('plandflat_comission_pkg').style.display = "none";
4527               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4528
4529             document.getElementById('plandprepaid').style.display = "";
4530             document.getElementById('plandprepaid').style.zIndex = 1;
4531
4532           }
4533           if (planlayer == "subscription" ) {
4534
4535               document.getElementById('plandflat').style.display = "none";
4536               document.getElementById('plandflat').style.zIndex = 0;
4537               document.getElementById('plandflat_delayed').style.display = "none";
4538               document.getElementById('plandflat_delayed').style.zIndex = 0;
4539               document.getElementById('plandflat_introrate').style.display = "none";
4540               document.getElementById('plandflat_introrate').style.zIndex = 0;
4541               document.getElementById('plandprorate').style.display = "none";
4542               document.getElementById('plandprorate').style.zIndex = 0;
4543               document.getElementById('plandprorate_delayed').style.display = "none";
4544               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4545               document.getElementById('plandprorate_calendar').style.display = "none";
4546               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4547               document.getElementById('plandprepaid').style.display = "none";
4548               document.getElementById('plandprepaid').style.zIndex = 0;
4549               document.getElementById('plandsqlradacct_hour').style.display = "none";
4550               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4551               document.getElementById('plandsqlradacct_daily').style.display = "none";
4552               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4553               document.getElementById('plandvoip_cdr').style.display = "none";
4554               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4555               document.getElementById('plandvoip_inbound').style.display = "none";
4556               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4557               document.getElementById('plandvoip_tiered').style.display = "none";
4558               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4559               document.getElementById('plandcdr_termination').style.display = "none";
4560               document.getElementById('plandcdr_termination').style.zIndex = 0;
4561               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4562               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4563               document.getElementById('plandbulk_simple').style.display = "none";
4564               document.getElementById('plandbulk_simple').style.zIndex = 0;
4565               document.getElementById('plandbulk').style.display = "none";
4566               document.getElementById('plandbulk').style.zIndex = 0;
4567               document.getElementById('plandagent').style.display = "none";
4568               document.getElementById('plandagent').style.zIndex = 0;
4569               document.getElementById('plandagent_cdr').style.display = "none";
4570               document.getElementById('plandagent_cdr').style.zIndex = 0;
4571               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4572               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4573               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4574               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4575               document.getElementById('plandrt_time').style.display = "none";
4576               document.getElementById('plandrt_time').style.zIndex = 0;
4577               document.getElementById('plandsql_generic').style.display = "none";
4578               document.getElementById('plandsql_generic').style.zIndex = 0;
4579               document.getElementById('plandsql_external').style.display = "none";
4580               document.getElementById('plandsql_external').style.zIndex = 0;
4581               document.getElementById('plandflat_comission_cust').style.display = "none";
4582               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4583               document.getElementById('plandflat_comission').style.display = "none";
4584               document.getElementById('plandflat_comission').style.zIndex = 0;
4585               document.getElementById('plandflat_comission_pkg').style.display = "none";
4586               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4587
4588             document.getElementById('plandsubscription').style.display = "";
4589             document.getElementById('plandsubscription').style.zIndex = 1;
4590
4591           }
4592           if (planlayer == "sqlradacct_hour" ) {
4593
4594               document.getElementById('plandflat').style.display = "none";
4595               document.getElementById('plandflat').style.zIndex = 0;
4596               document.getElementById('plandflat_delayed').style.display = "none";
4597               document.getElementById('plandflat_delayed').style.zIndex = 0;
4598               document.getElementById('plandflat_introrate').style.display = "none";
4599               document.getElementById('plandflat_introrate').style.zIndex = 0;
4600               document.getElementById('plandprorate').style.display = "none";
4601               document.getElementById('plandprorate').style.zIndex = 0;
4602               document.getElementById('plandprorate_delayed').style.display = "none";
4603               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4604               document.getElementById('plandprorate_calendar').style.display = "none";
4605               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4606               document.getElementById('plandprepaid').style.display = "none";
4607               document.getElementById('plandprepaid').style.zIndex = 0;
4608               document.getElementById('plandsubscription').style.display = "none";
4609               document.getElementById('plandsubscription').style.zIndex = 0;
4610               document.getElementById('plandsqlradacct_daily').style.display = "none";
4611               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4612               document.getElementById('plandvoip_cdr').style.display = "none";
4613               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4614               document.getElementById('plandvoip_inbound').style.display = "none";
4615               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4616               document.getElementById('plandvoip_tiered').style.display = "none";
4617               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4618               document.getElementById('plandcdr_termination').style.display = "none";
4619               document.getElementById('plandcdr_termination').style.zIndex = 0;
4620               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4621               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4622               document.getElementById('plandbulk_simple').style.display = "none";
4623               document.getElementById('plandbulk_simple').style.zIndex = 0;
4624               document.getElementById('plandbulk').style.display = "none";
4625               document.getElementById('plandbulk').style.zIndex = 0;
4626               document.getElementById('plandagent').style.display = "none";
4627               document.getElementById('plandagent').style.zIndex = 0;
4628               document.getElementById('plandagent_cdr').style.display = "none";
4629               document.getElementById('plandagent_cdr').style.zIndex = 0;
4630               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4631               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4632               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4633               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4634               document.getElementById('plandrt_time').style.display = "none";
4635               document.getElementById('plandrt_time').style.zIndex = 0;
4636               document.getElementById('plandsql_generic').style.display = "none";
4637               document.getElementById('plandsql_generic').style.zIndex = 0;
4638               document.getElementById('plandsql_external').style.display = "none";
4639               document.getElementById('plandsql_external').style.zIndex = 0;
4640               document.getElementById('plandflat_comission_cust').style.display = "none";
4641               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4642               document.getElementById('plandflat_comission').style.display = "none";
4643               document.getElementById('plandflat_comission').style.zIndex = 0;
4644               document.getElementById('plandflat_comission_pkg').style.display = "none";
4645               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4646
4647             document.getElementById('plandsqlradacct_hour').style.display = "";
4648             document.getElementById('plandsqlradacct_hour').style.zIndex = 1;
4649
4650           }
4651           if (planlayer == "sqlradacct_daily" ) {
4652
4653               document.getElementById('plandflat').style.display = "none";
4654               document.getElementById('plandflat').style.zIndex = 0;
4655               document.getElementById('plandflat_delayed').style.display = "none";
4656               document.getElementById('plandflat_delayed').style.zIndex = 0;
4657               document.getElementById('plandflat_introrate').style.display = "none";
4658               document.getElementById('plandflat_introrate').style.zIndex = 0;
4659               document.getElementById('plandprorate').style.display = "none";
4660               document.getElementById('plandprorate').style.zIndex = 0;
4661               document.getElementById('plandprorate_delayed').style.display = "none";
4662               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4663               document.getElementById('plandprorate_calendar').style.display = "none";
4664               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4665               document.getElementById('plandprepaid').style.display = "none";
4666               document.getElementById('plandprepaid').style.zIndex = 0;
4667               document.getElementById('plandsubscription').style.display = "none";
4668               document.getElementById('plandsubscription').style.zIndex = 0;
4669               document.getElementById('plandsqlradacct_hour').style.display = "none";
4670               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4671               document.getElementById('plandvoip_cdr').style.display = "none";
4672               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4673               document.getElementById('plandvoip_inbound').style.display = "none";
4674               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4675               document.getElementById('plandvoip_tiered').style.display = "none";
4676               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4677               document.getElementById('plandcdr_termination').style.display = "none";
4678               document.getElementById('plandcdr_termination').style.zIndex = 0;
4679               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4680               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4681               document.getElementById('plandbulk_simple').style.display = "none";
4682               document.getElementById('plandbulk_simple').style.zIndex = 0;
4683               document.getElementById('plandbulk').style.display = "none";
4684               document.getElementById('plandbulk').style.zIndex = 0;
4685               document.getElementById('plandagent').style.display = "none";
4686               document.getElementById('plandagent').style.zIndex = 0;
4687               document.getElementById('plandagent_cdr').style.display = "none";
4688               document.getElementById('plandagent_cdr').style.zIndex = 0;
4689               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4690               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4691               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4692               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4693               document.getElementById('plandrt_time').style.display = "none";
4694               document.getElementById('plandrt_time').style.zIndex = 0;
4695               document.getElementById('plandsql_generic').style.display = "none";
4696               document.getElementById('plandsql_generic').style.zIndex = 0;
4697               document.getElementById('plandsql_external').style.display = "none";
4698               document.getElementById('plandsql_external').style.zIndex = 0;
4699               document.getElementById('plandflat_comission_cust').style.display = "none";
4700               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4701               document.getElementById('plandflat_comission').style.display = "none";
4702               document.getElementById('plandflat_comission').style.zIndex = 0;
4703               document.getElementById('plandflat_comission_pkg').style.display = "none";
4704               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4705
4706             document.getElementById('plandsqlradacct_daily').style.display = "";
4707             document.getElementById('plandsqlradacct_daily').style.zIndex = 1;
4708
4709           }
4710           if (planlayer == "voip_cdr" ) {
4711
4712               document.getElementById('plandflat').style.display = "none";
4713               document.getElementById('plandflat').style.zIndex = 0;
4714               document.getElementById('plandflat_delayed').style.display = "none";
4715               document.getElementById('plandflat_delayed').style.zIndex = 0;
4716               document.getElementById('plandflat_introrate').style.display = "none";
4717               document.getElementById('plandflat_introrate').style.zIndex = 0;
4718               document.getElementById('plandprorate').style.display = "none";
4719               document.getElementById('plandprorate').style.zIndex = 0;
4720               document.getElementById('plandprorate_delayed').style.display = "none";
4721               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4722               document.getElementById('plandprorate_calendar').style.display = "none";
4723               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4724               document.getElementById('plandprepaid').style.display = "none";
4725               document.getElementById('plandprepaid').style.zIndex = 0;
4726               document.getElementById('plandsubscription').style.display = "none";
4727               document.getElementById('plandsubscription').style.zIndex = 0;
4728               document.getElementById('plandsqlradacct_hour').style.display = "none";
4729               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4730               document.getElementById('plandsqlradacct_daily').style.display = "none";
4731               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4732               document.getElementById('plandvoip_inbound').style.display = "none";
4733               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4734               document.getElementById('plandvoip_tiered').style.display = "none";
4735               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4736               document.getElementById('plandcdr_termination').style.display = "none";
4737               document.getElementById('plandcdr_termination').style.zIndex = 0;
4738               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4739               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4740               document.getElementById('plandbulk_simple').style.display = "none";
4741               document.getElementById('plandbulk_simple').style.zIndex = 0;
4742               document.getElementById('plandbulk').style.display = "none";
4743               document.getElementById('plandbulk').style.zIndex = 0;
4744               document.getElementById('plandagent').style.display = "none";
4745               document.getElementById('plandagent').style.zIndex = 0;
4746               document.getElementById('plandagent_cdr').style.display = "none";
4747               document.getElementById('plandagent_cdr').style.zIndex = 0;
4748               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4749               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4750               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4751               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4752               document.getElementById('plandrt_time').style.display = "none";
4753               document.getElementById('plandrt_time').style.zIndex = 0;
4754               document.getElementById('plandsql_generic').style.display = "none";
4755               document.getElementById('plandsql_generic').style.zIndex = 0;
4756               document.getElementById('plandsql_external').style.display = "none";
4757               document.getElementById('plandsql_external').style.zIndex = 0;
4758               document.getElementById('plandflat_comission_cust').style.display = "none";
4759               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4760               document.getElementById('plandflat_comission').style.display = "none";
4761               document.getElementById('plandflat_comission').style.zIndex = 0;
4762               document.getElementById('plandflat_comission_pkg').style.display = "none";
4763               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4764
4765             document.getElementById('plandvoip_cdr').style.display = "";
4766             document.getElementById('plandvoip_cdr').style.zIndex = 1;
4767
4768           }
4769           if (planlayer == "voip_inbound" ) {
4770
4771               document.getElementById('plandflat').style.display = "none";
4772               document.getElementById('plandflat').style.zIndex = 0;
4773               document.getElementById('plandflat_delayed').style.display = "none";
4774               document.getElementById('plandflat_delayed').style.zIndex = 0;
4775               document.getElementById('plandflat_introrate').style.display = "none";
4776               document.getElementById('plandflat_introrate').style.zIndex = 0;
4777               document.getElementById('plandprorate').style.display = "none";
4778               document.getElementById('plandprorate').style.zIndex = 0;
4779               document.getElementById('plandprorate_delayed').style.display = "none";
4780               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4781               document.getElementById('plandprorate_calendar').style.display = "none";
4782               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4783               document.getElementById('plandprepaid').style.display = "none";
4784               document.getElementById('plandprepaid').style.zIndex = 0;
4785               document.getElementById('plandsubscription').style.display = "none";
4786               document.getElementById('plandsubscription').style.zIndex = 0;
4787               document.getElementById('plandsqlradacct_hour').style.display = "none";
4788               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4789               document.getElementById('plandsqlradacct_daily').style.display = "none";
4790               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4791               document.getElementById('plandvoip_cdr').style.display = "none";
4792               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4793               document.getElementById('plandvoip_tiered').style.display = "none";
4794               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4795               document.getElementById('plandcdr_termination').style.display = "none";
4796               document.getElementById('plandcdr_termination').style.zIndex = 0;
4797               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4798               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4799               document.getElementById('plandbulk_simple').style.display = "none";
4800               document.getElementById('plandbulk_simple').style.zIndex = 0;
4801               document.getElementById('plandbulk').style.display = "none";
4802               document.getElementById('plandbulk').style.zIndex = 0;
4803               document.getElementById('plandagent').style.display = "none";
4804               document.getElementById('plandagent').style.zIndex = 0;
4805               document.getElementById('plandagent_cdr').style.display = "none";
4806               document.getElementById('plandagent_cdr').style.zIndex = 0;
4807               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4808               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4809               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4810               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4811               document.getElementById('plandrt_time').style.display = "none";
4812               document.getElementById('plandrt_time').style.zIndex = 0;
4813               document.getElementById('plandsql_generic').style.display = "none";
4814               document.getElementById('plandsql_generic').style.zIndex = 0;
4815               document.getElementById('plandsql_external').style.display = "none";
4816               document.getElementById('plandsql_external').style.zIndex = 0;
4817               document.getElementById('plandflat_comission_cust').style.display = "none";
4818               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4819               document.getElementById('plandflat_comission').style.display = "none";
4820               document.getElementById('plandflat_comission').style.zIndex = 0;
4821               document.getElementById('plandflat_comission_pkg').style.display = "none";
4822               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4823
4824             document.getElementById('plandvoip_inbound').style.display = "";
4825             document.getElementById('plandvoip_inbound').style.zIndex = 1;
4826
4827           }
4828           if (planlayer == "voip_tiered" ) {
4829
4830               document.getElementById('plandflat').style.display = "none";
4831               document.getElementById('plandflat').style.zIndex = 0;
4832               document.getElementById('plandflat_delayed').style.display = "none";
4833               document.getElementById('plandflat_delayed').style.zIndex = 0;
4834               document.getElementById('plandflat_introrate').style.display = "none";
4835               document.getElementById('plandflat_introrate').style.zIndex = 0;
4836               document.getElementById('plandprorate').style.display = "none";
4837               document.getElementById('plandprorate').style.zIndex = 0;
4838               document.getElementById('plandprorate_delayed').style.display = "none";
4839               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4840               document.getElementById('plandprorate_calendar').style.display = "none";
4841               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4842               document.getElementById('plandprepaid').style.display = "none";
4843               document.getElementById('plandprepaid').style.zIndex = 0;
4844               document.getElementById('plandsubscription').style.display = "none";
4845               document.getElementById('plandsubscription').style.zIndex = 0;
4846               document.getElementById('plandsqlradacct_hour').style.display = "none";
4847               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4848               document.getElementById('plandsqlradacct_daily').style.display = "none";
4849               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4850               document.getElementById('plandvoip_cdr').style.display = "none";
4851               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4852               document.getElementById('plandvoip_inbound').style.display = "none";
4853               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4854               document.getElementById('plandcdr_termination').style.display = "none";
4855               document.getElementById('plandcdr_termination').style.zIndex = 0;
4856               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4857               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4858               document.getElementById('plandbulk_simple').style.display = "none";
4859               document.getElementById('plandbulk_simple').style.zIndex = 0;
4860               document.getElementById('plandbulk').style.display = "none";
4861               document.getElementById('plandbulk').style.zIndex = 0;
4862               document.getElementById('plandagent').style.display = "none";
4863               document.getElementById('plandagent').style.zIndex = 0;
4864               document.getElementById('plandagent_cdr').style.display = "none";
4865               document.getElementById('plandagent_cdr').style.zIndex = 0;
4866               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4867               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4868               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4869               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4870               document.getElementById('plandrt_time').style.display = "none";
4871               document.getElementById('plandrt_time').style.zIndex = 0;
4872               document.getElementById('plandsql_generic').style.display = "none";
4873               document.getElementById('plandsql_generic').style.zIndex = 0;
4874               document.getElementById('plandsql_external').style.display = "none";
4875               document.getElementById('plandsql_external').style.zIndex = 0;
4876               document.getElementById('plandflat_comission_cust').style.display = "none";
4877               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4878               document.getElementById('plandflat_comission').style.display = "none";
4879               document.getElementById('plandflat_comission').style.zIndex = 0;
4880               document.getElementById('plandflat_comission_pkg').style.display = "none";
4881               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4882
4883             document.getElementById('plandvoip_tiered').style.display = "";
4884             document.getElementById('plandvoip_tiered').style.zIndex = 1;
4885
4886           }
4887           if (planlayer == "cdr_termination" ) {
4888
4889               document.getElementById('plandflat').style.display = "none";
4890               document.getElementById('plandflat').style.zIndex = 0;
4891               document.getElementById('plandflat_delayed').style.display = "none";
4892               document.getElementById('plandflat_delayed').style.zIndex = 0;
4893               document.getElementById('plandflat_introrate').style.display = "none";
4894               document.getElementById('plandflat_introrate').style.zIndex = 0;
4895               document.getElementById('plandprorate').style.display = "none";
4896               document.getElementById('plandprorate').style.zIndex = 0;
4897               document.getElementById('plandprorate_delayed').style.display = "none";
4898               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4899               document.getElementById('plandprorate_calendar').style.display = "none";
4900               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4901               document.getElementById('plandprepaid').style.display = "none";
4902               document.getElementById('plandprepaid').style.zIndex = 0;
4903               document.getElementById('plandsubscription').style.display = "none";
4904               document.getElementById('plandsubscription').style.zIndex = 0;
4905               document.getElementById('plandsqlradacct_hour').style.display = "none";
4906               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4907               document.getElementById('plandsqlradacct_daily').style.display = "none";
4908               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4909               document.getElementById('plandvoip_cdr').style.display = "none";
4910               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4911               document.getElementById('plandvoip_inbound').style.display = "none";
4912               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4913               document.getElementById('plandvoip_tiered').style.display = "none";
4914               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4915               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4916               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4917               document.getElementById('plandbulk_simple').style.display = "none";
4918               document.getElementById('plandbulk_simple').style.zIndex = 0;
4919               document.getElementById('plandbulk').style.display = "none";
4920               document.getElementById('plandbulk').style.zIndex = 0;
4921               document.getElementById('plandagent').style.display = "none";
4922               document.getElementById('plandagent').style.zIndex = 0;
4923               document.getElementById('plandagent_cdr').style.display = "none";
4924               document.getElementById('plandagent_cdr').style.zIndex = 0;
4925               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4926               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4927               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4928               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4929               document.getElementById('plandrt_time').style.display = "none";
4930               document.getElementById('plandrt_time').style.zIndex = 0;
4931               document.getElementById('plandsql_generic').style.display = "none";
4932               document.getElementById('plandsql_generic').style.zIndex = 0;
4933               document.getElementById('plandsql_external').style.display = "none";
4934               document.getElementById('plandsql_external').style.zIndex = 0;
4935               document.getElementById('plandflat_comission_cust').style.display = "none";
4936               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4937               document.getElementById('plandflat_comission').style.display = "none";
4938               document.getElementById('plandflat_comission').style.zIndex = 0;
4939               document.getElementById('plandflat_comission_pkg').style.display = "none";
4940               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4941
4942             document.getElementById('plandcdr_termination').style.display = "";
4943             document.getElementById('plandcdr_termination').style.zIndex = 1;
4944
4945           }
4946           if (planlayer == "prepaid_nibblebill" ) {
4947
4948               document.getElementById('plandflat').style.display = "none";
4949               document.getElementById('plandflat').style.zIndex = 0;
4950               document.getElementById('plandflat_delayed').style.display = "none";
4951               document.getElementById('plandflat_delayed').style.zIndex = 0;
4952               document.getElementById('plandflat_introrate').style.display = "none";
4953               document.getElementById('plandflat_introrate').style.zIndex = 0;
4954               document.getElementById('plandprorate').style.display = "none";
4955               document.getElementById('plandprorate').style.zIndex = 0;
4956               document.getElementById('plandprorate_delayed').style.display = "none";
4957               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4958               document.getElementById('plandprorate_calendar').style.display = "none";
4959               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4960               document.getElementById('plandprepaid').style.display = "none";
4961               document.getElementById('plandprepaid').style.zIndex = 0;
4962               document.getElementById('plandsubscription').style.display = "none";
4963               document.getElementById('plandsubscription').style.zIndex = 0;
4964               document.getElementById('plandsqlradacct_hour').style.display = "none";
4965               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4966               document.getElementById('plandsqlradacct_daily').style.display = "none";
4967               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4968               document.getElementById('plandvoip_cdr').style.display = "none";
4969               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4970               document.getElementById('plandvoip_inbound').style.display = "none";
4971               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4972               document.getElementById('plandvoip_tiered').style.display = "none";
4973               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4974               document.getElementById('plandcdr_termination').style.display = "none";
4975               document.getElementById('plandcdr_termination').style.zIndex = 0;
4976               document.getElementById('plandbulk_simple').style.display = "none";
4977               document.getElementById('plandbulk_simple').style.zIndex = 0;
4978               document.getElementById('plandbulk').style.display = "none";
4979               document.getElementById('plandbulk').style.zIndex = 0;
4980               document.getElementById('plandagent').style.display = "none";
4981               document.getElementById('plandagent').style.zIndex = 0;
4982               document.getElementById('plandagent_cdr').style.display = "none";
4983               document.getElementById('plandagent_cdr').style.zIndex = 0;
4984               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4985               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4986               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4987               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4988               document.getElementById('plandrt_time').style.display = "none";
4989               document.getElementById('plandrt_time').style.zIndex = 0;
4990               document.getElementById('plandsql_generic').style.display = "none";
4991               document.getElementById('plandsql_generic').style.zIndex = 0;
4992               document.getElementById('plandsql_external').style.display = "none";
4993               document.getElementById('plandsql_external').style.zIndex = 0;
4994               document.getElementById('plandflat_comission_cust').style.display = "none";
4995               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4996               document.getElementById('plandflat_comission').style.display = "none";
4997               document.getElementById('plandflat_comission').style.zIndex = 0;
4998               document.getElementById('plandflat_comission_pkg').style.display = "none";
4999               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5000
5001             document.getElementById('plandprepaid_nibblebill').style.display = "";
5002             document.getElementById('plandprepaid_nibblebill').style.zIndex = 1;
5003
5004           }
5005           if (planlayer == "bulk_simple" ) {
5006
5007               document.getElementById('plandflat').style.display = "none";
5008               document.getElementById('plandflat').style.zIndex = 0;
5009               document.getElementById('plandflat_delayed').style.display = "none";
5010               document.getElementById('plandflat_delayed').style.zIndex = 0;
5011               document.getElementById('plandflat_introrate').style.display = "none";
5012               document.getElementById('plandflat_introrate').style.zIndex = 0;
5013               document.getElementById('plandprorate').style.display = "none";
5014               document.getElementById('plandprorate').style.zIndex = 0;
5015               document.getElementById('plandprorate_delayed').style.display = "none";
5016               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5017               document.getElementById('plandprorate_calendar').style.display = "none";
5018               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5019               document.getElementById('plandprepaid').style.display = "none";
5020               document.getElementById('plandprepaid').style.zIndex = 0;
5021               document.getElementById('plandsubscription').style.display = "none";
5022               document.getElementById('plandsubscription').style.zIndex = 0;
5023               document.getElementById('plandsqlradacct_hour').style.display = "none";
5024               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5025               document.getElementById('plandsqlradacct_daily').style.display = "none";
5026               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5027               document.getElementById('plandvoip_cdr').style.display = "none";
5028               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5029               document.getElementById('plandvoip_inbound').style.display = "none";
5030               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5031               document.getElementById('plandvoip_tiered').style.display = "none";
5032               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5033               document.getElementById('plandcdr_termination').style.display = "none";
5034               document.getElementById('plandcdr_termination').style.zIndex = 0;
5035               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5036               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5037               document.getElementById('plandbulk').style.display = "none";
5038               document.getElementById('plandbulk').style.zIndex = 0;
5039               document.getElementById('plandagent').style.display = "none";
5040               document.getElementById('plandagent').style.zIndex = 0;
5041               document.getElementById('plandagent_cdr').style.display = "none";
5042               document.getElementById('plandagent_cdr').style.zIndex = 0;
5043               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5044               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5045               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5046               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5047               document.getElementById('plandrt_time').style.display = "none";
5048               document.getElementById('plandrt_time').style.zIndex = 0;
5049               document.getElementById('plandsql_generic').style.display = "none";
5050               document.getElementById('plandsql_generic').style.zIndex = 0;
5051               document.getElementById('plandsql_external').style.display = "none";
5052               document.getElementById('plandsql_external').style.zIndex = 0;
5053               document.getElementById('plandflat_comission_cust').style.display = "none";
5054               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5055               document.getElementById('plandflat_comission').style.display = "none";
5056               document.getElementById('plandflat_comission').style.zIndex = 0;
5057               document.getElementById('plandflat_comission_pkg').style.display = "none";
5058               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5059
5060             document.getElementById('plandbulk_simple').style.display = "";
5061             document.getElementById('plandbulk_simple').style.zIndex = 1;
5062
5063           }
5064           if (planlayer == "bulk" ) {
5065
5066               document.getElementById('plandflat').style.display = "none";
5067               document.getElementById('plandflat').style.zIndex = 0;
5068               document.getElementById('plandflat_delayed').style.display = "none";
5069               document.getElementById('plandflat_delayed').style.zIndex = 0;
5070               document.getElementById('plandflat_introrate').style.display = "none";
5071               document.getElementById('plandflat_introrate').style.zIndex = 0;
5072               document.getElementById('plandprorate').style.display = "none";
5073               document.getElementById('plandprorate').style.zIndex = 0;
5074               document.getElementById('plandprorate_delayed').style.display = "none";
5075               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5076               document.getElementById('plandprorate_calendar').style.display = "none";
5077               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5078               document.getElementById('plandprepaid').style.display = "none";
5079               document.getElementById('plandprepaid').style.zIndex = 0;
5080               document.getElementById('plandsubscription').style.display = "none";
5081               document.getElementById('plandsubscription').style.zIndex = 0;
5082               document.getElementById('plandsqlradacct_hour').style.display = "none";
5083               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5084               document.getElementById('plandsqlradacct_daily').style.display = "none";
5085               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5086               document.getElementById('plandvoip_cdr').style.display = "none";
5087               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5088               document.getElementById('plandvoip_inbound').style.display = "none";
5089               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5090               document.getElementById('plandvoip_tiered').style.display = "none";
5091               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5092               document.getElementById('plandcdr_termination').style.display = "none";
5093               document.getElementById('plandcdr_termination').style.zIndex = 0;
5094               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5095               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5096               document.getElementById('plandbulk_simple').style.display = "none";
5097               document.getElementById('plandbulk_simple').style.zIndex = 0;
5098               document.getElementById('plandagent').style.display = "none";
5099               document.getElementById('plandagent').style.zIndex = 0;
5100               document.getElementById('plandagent_cdr').style.display = "none";
5101               document.getElementById('plandagent_cdr').style.zIndex = 0;
5102               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5103               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5104               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5105               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5106               document.getElementById('plandrt_time').style.display = "none";
5107               document.getElementById('plandrt_time').style.zIndex = 0;
5108               document.getElementById('plandsql_generic').style.display = "none";
5109               document.getElementById('plandsql_generic').style.zIndex = 0;
5110               document.getElementById('plandsql_external').style.display = "none";
5111               document.getElementById('plandsql_external').style.zIndex = 0;
5112               document.getElementById('plandflat_comission_cust').style.display = "none";
5113               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5114               document.getElementById('plandflat_comission').style.display = "none";
5115               document.getElementById('plandflat_comission').style.zIndex = 0;
5116               document.getElementById('plandflat_comission_pkg').style.display = "none";
5117               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5118
5119             document.getElementById('plandbulk').style.display = "";
5120             document.getElementById('plandbulk').style.zIndex = 1;
5121
5122           }
5123           if (planlayer == "agent" ) {
5124
5125               document.getElementById('plandflat').style.display = "none";
5126               document.getElementById('plandflat').style.zIndex = 0;
5127               document.getElementById('plandflat_delayed').style.display = "none";
5128               document.getElementById('plandflat_delayed').style.zIndex = 0;
5129               document.getElementById('plandflat_introrate').style.display = "none";
5130               document.getElementById('plandflat_introrate').style.zIndex = 0;
5131               document.getElementById('plandprorate').style.display = "none";
5132               document.getElementById('plandprorate').style.zIndex = 0;
5133               document.getElementById('plandprorate_delayed').style.display = "none";
5134               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5135               document.getElementById('plandprorate_calendar').style.display = "none";
5136               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5137               document.getElementById('plandprepaid').style.display = "none";
5138               document.getElementById('plandprepaid').style.zIndex = 0;
5139               document.getElementById('plandsubscription').style.display = "none";
5140               document.getElementById('plandsubscription').style.zIndex = 0;
5141               document.getElementById('plandsqlradacct_hour').style.display = "none";
5142               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5143               document.getElementById('plandsqlradacct_daily').style.display = "none";
5144               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5145               document.getElementById('plandvoip_cdr').style.display = "none";
5146               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5147               document.getElementById('plandvoip_inbound').style.display = "none";
5148               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5149               document.getElementById('plandvoip_tiered').style.display = "none";
5150               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5151               document.getElementById('plandcdr_termination').style.display = "none";
5152               document.getElementById('plandcdr_termination').style.zIndex = 0;
5153               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5154               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5155               document.getElementById('plandbulk_simple').style.display = "none";
5156               document.getElementById('plandbulk_simple').style.zIndex = 0;
5157               document.getElementById('plandbulk').style.display = "none";
5158               document.getElementById('plandbulk').style.zIndex = 0;
5159               document.getElementById('plandagent_cdr').style.display = "none";
5160               document.getElementById('plandagent_cdr').style.zIndex = 0;
5161               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5162               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5163               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5164               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5165               document.getElementById('plandrt_time').style.display = "none";
5166               document.getElementById('plandrt_time').style.zIndex = 0;
5167               document.getElementById('plandsql_generic').style.display = "none";
5168               document.getElementById('plandsql_generic').style.zIndex = 0;
5169               document.getElementById('plandsql_external').style.display = "none";
5170               document.getElementById('plandsql_external').style.zIndex = 0;
5171               document.getElementById('plandflat_comission_cust').style.display = "none";
5172               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5173               document.getElementById('plandflat_comission').style.display = "none";
5174               document.getElementById('plandflat_comission').style.zIndex = 0;
5175               document.getElementById('plandflat_comission_pkg').style.display = "none";
5176               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5177
5178             document.getElementById('plandagent').style.display = "";
5179             document.getElementById('plandagent').style.zIndex = 1;
5180
5181           }
5182           if (planlayer == "agent_cdr" ) {
5183
5184               document.getElementById('plandflat').style.display = "none";
5185               document.getElementById('plandflat').style.zIndex = 0;
5186               document.getElementById('plandflat_delayed').style.display = "none";
5187               document.getElementById('plandflat_delayed').style.zIndex = 0;
5188               document.getElementById('plandflat_introrate').style.display = "none";
5189               document.getElementById('plandflat_introrate').style.zIndex = 0;
5190               document.getElementById('plandprorate').style.display = "none";
5191               document.getElementById('plandprorate').style.zIndex = 0;
5192               document.getElementById('plandprorate_delayed').style.display = "none";
5193               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5194               document.getElementById('plandprorate_calendar').style.display = "none";
5195               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5196               document.getElementById('plandprepaid').style.display = "none";
5197               document.getElementById('plandprepaid').style.zIndex = 0;
5198               document.getElementById('plandsubscription').style.display = "none";
5199               document.getElementById('plandsubscription').style.zIndex = 0;
5200               document.getElementById('plandsqlradacct_hour').style.display = "none";
5201               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5202               document.getElementById('plandsqlradacct_daily').style.display = "none";
5203               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5204               document.getElementById('plandvoip_cdr').style.display = "none";
5205               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5206               document.getElementById('plandvoip_inbound').style.display = "none";
5207               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5208               document.getElementById('plandvoip_tiered').style.display = "none";
5209               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5210               document.getElementById('plandcdr_termination').style.display = "none";
5211               document.getElementById('plandcdr_termination').style.zIndex = 0;
5212               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5213               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5214               document.getElementById('plandbulk_simple').style.display = "none";
5215               document.getElementById('plandbulk_simple').style.zIndex = 0;
5216               document.getElementById('plandbulk').style.display = "none";
5217               document.getElementById('plandbulk').style.zIndex = 0;
5218               document.getElementById('plandagent').style.display = "none";
5219               document.getElementById('plandagent').style.zIndex = 0;
5220               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5221               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5222               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5223               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5224               document.getElementById('plandrt_time').style.display = "none";
5225               document.getElementById('plandrt_time').style.zIndex = 0;
5226               document.getElementById('plandsql_generic').style.display = "none";
5227               document.getElementById('plandsql_generic').style.zIndex = 0;
5228               document.getElementById('plandsql_external').style.display = "none";
5229               document.getElementById('plandsql_external').style.zIndex = 0;
5230               document.getElementById('plandflat_comission_cust').style.display = "none";
5231               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5232               document.getElementById('plandflat_comission').style.display = "none";
5233               document.getElementById('plandflat_comission').style.zIndex = 0;
5234               document.getElementById('plandflat_comission_pkg').style.display = "none";
5235               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5236
5237             document.getElementById('plandagent_cdr').style.display = "";
5238             document.getElementById('plandagent_cdr').style.zIndex = 1;
5239
5240           }
5241           if (planlayer == "torrus_bw_percentile" ) {
5242
5243               document.getElementById('plandflat').style.display = "none";
5244               document.getElementById('plandflat').style.zIndex = 0;
5245               document.getElementById('plandflat_delayed').style.display = "none";
5246               document.getElementById('plandflat_delayed').style.zIndex = 0;
5247               document.getElementById('plandflat_introrate').style.display = "none";
5248               document.getElementById('plandflat_introrate').style.zIndex = 0;
5249               document.getElementById('plandprorate').style.display = "none";
5250               document.getElementById('plandprorate').style.zIndex = 0;
5251               document.getElementById('plandprorate_delayed').style.display = "none";
5252               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5253               document.getElementById('plandprorate_calendar').style.display = "none";
5254               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5255               document.getElementById('plandprepaid').style.display = "none";
5256               document.getElementById('plandprepaid').style.zIndex = 0;
5257               document.getElementById('plandsubscription').style.display = "none";
5258               document.getElementById('plandsubscription').style.zIndex = 0;
5259               document.getElementById('plandsqlradacct_hour').style.display = "none";
5260               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5261               document.getElementById('plandsqlradacct_daily').style.display = "none";
5262               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5263               document.getElementById('plandvoip_cdr').style.display = "none";
5264               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5265               document.getElementById('plandvoip_inbound').style.display = "none";
5266               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5267               document.getElementById('plandvoip_tiered').style.display = "none";
5268               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5269               document.getElementById('plandcdr_termination').style.display = "none";
5270               document.getElementById('plandcdr_termination').style.zIndex = 0;
5271               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5272               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5273               document.getElementById('plandbulk_simple').style.display = "none";
5274               document.getElementById('plandbulk_simple').style.zIndex = 0;
5275               document.getElementById('plandbulk').style.display = "none";
5276               document.getElementById('plandbulk').style.zIndex = 0;
5277               document.getElementById('plandagent').style.display = "none";
5278               document.getElementById('plandagent').style.zIndex = 0;
5279               document.getElementById('plandagent_cdr').style.display = "none";
5280               document.getElementById('plandagent_cdr').style.zIndex = 0;
5281               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5282               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5283               document.getElementById('plandrt_time').style.display = "none";
5284               document.getElementById('plandrt_time').style.zIndex = 0;
5285               document.getElementById('plandsql_generic').style.display = "none";
5286               document.getElementById('plandsql_generic').style.zIndex = 0;
5287               document.getElementById('plandsql_external').style.display = "none";
5288               document.getElementById('plandsql_external').style.zIndex = 0;
5289               document.getElementById('plandflat_comission_cust').style.display = "none";
5290               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5291               document.getElementById('plandflat_comission').style.display = "none";
5292               document.getElementById('plandflat_comission').style.zIndex = 0;
5293               document.getElementById('plandflat_comission_pkg').style.display = "none";
5294               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5295
5296             document.getElementById('plandtorrus_bw_percentile').style.display = "";
5297             document.getElementById('plandtorrus_bw_percentile').style.zIndex = 1;
5298
5299           }
5300           if (planlayer == "torrus_bw_usage" ) {
5301
5302               document.getElementById('plandflat').style.display = "none";
5303               document.getElementById('plandflat').style.zIndex = 0;
5304               document.getElementById('plandflat_delayed').style.display = "none";
5305               document.getElementById('plandflat_delayed').style.zIndex = 0;
5306               document.getElementById('plandflat_introrate').style.display = "none";
5307               document.getElementById('plandflat_introrate').style.zIndex = 0;
5308               document.getElementById('plandprorate').style.display = "none";
5309               document.getElementById('plandprorate').style.zIndex = 0;
5310               document.getElementById('plandprorate_delayed').style.display = "none";
5311               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5312               document.getElementById('plandprorate_calendar').style.display = "none";
5313               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5314               document.getElementById('plandprepaid').style.display = "none";
5315               document.getElementById('plandprepaid').style.zIndex = 0;
5316               document.getElementById('plandsubscription').style.display = "none";
5317               document.getElementById('plandsubscription').style.zIndex = 0;
5318               document.getElementById('plandsqlradacct_hour').style.display = "none";
5319               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5320               document.getElementById('plandsqlradacct_daily').style.display = "none";
5321               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5322               document.getElementById('plandvoip_cdr').style.display = "none";
5323               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5324               document.getElementById('plandvoip_inbound').style.display = "none";
5325               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5326               document.getElementById('plandvoip_tiered').style.display = "none";
5327               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5328               document.getElementById('plandcdr_termination').style.display = "none";
5329               document.getElementById('plandcdr_termination').style.zIndex = 0;
5330               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5331               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5332               document.getElementById('plandbulk_simple').style.display = "none";
5333               document.getElementById('plandbulk_simple').style.zIndex = 0;
5334               document.getElementById('plandbulk').style.display = "none";
5335               document.getElementById('plandbulk').style.zIndex = 0;
5336               document.getElementById('plandagent').style.display = "none";
5337               document.getElementById('plandagent').style.zIndex = 0;
5338               document.getElementById('plandagent_cdr').style.display = "none";
5339               document.getElementById('plandagent_cdr').style.zIndex = 0;
5340               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5341               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5342               document.getElementById('plandrt_time').style.display = "none";
5343               document.getElementById('plandrt_time').style.zIndex = 0;
5344               document.getElementById('plandsql_generic').style.display = "none";
5345               document.getElementById('plandsql_generic').style.zIndex = 0;
5346               document.getElementById('plandsql_external').style.display = "none";
5347               document.getElementById('plandsql_external').style.zIndex = 0;
5348               document.getElementById('plandflat_comission_cust').style.display = "none";
5349               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5350               document.getElementById('plandflat_comission').style.display = "none";
5351               document.getElementById('plandflat_comission').style.zIndex = 0;
5352               document.getElementById('plandflat_comission_pkg').style.display = "none";
5353               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5354
5355             document.getElementById('plandtorrus_bw_usage').style.display = "";
5356             document.getElementById('plandtorrus_bw_usage').style.zIndex = 1;
5357
5358           }
5359           if (planlayer == "rt_time" ) {
5360
5361               document.getElementById('plandflat').style.display = "none";
5362               document.getElementById('plandflat').style.zIndex = 0;
5363               document.getElementById('plandflat_delayed').style.display = "none";
5364               document.getElementById('plandflat_delayed').style.zIndex = 0;
5365               document.getElementById('plandflat_introrate').style.display = "none";
5366               document.getElementById('plandflat_introrate').style.zIndex = 0;
5367               document.getElementById('plandprorate').style.display = "none";
5368               document.getElementById('plandprorate').style.zIndex = 0;
5369               document.getElementById('plandprorate_delayed').style.display = "none";
5370               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5371               document.getElementById('plandprorate_calendar').style.display = "none";
5372               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5373               document.getElementById('plandprepaid').style.display = "none";
5374               document.getElementById('plandprepaid').style.zIndex = 0;
5375               document.getElementById('plandsubscription').style.display = "none";
5376               document.getElementById('plandsubscription').style.zIndex = 0;
5377               document.getElementById('plandsqlradacct_hour').style.display = "none";
5378               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5379               document.getElementById('plandsqlradacct_daily').style.display = "none";
5380               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5381               document.getElementById('plandvoip_cdr').style.display = "none";
5382               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5383               document.getElementById('plandvoip_inbound').style.display = "none";
5384               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5385               document.getElementById('plandvoip_tiered').style.display = "none";
5386               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5387               document.getElementById('plandcdr_termination').style.display = "none";
5388               document.getElementById('plandcdr_termination').style.zIndex = 0;
5389               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5390               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5391               document.getElementById('plandbulk_simple').style.display = "none";
5392               document.getElementById('plandbulk_simple').style.zIndex = 0;
5393               document.getElementById('plandbulk').style.display = "none";
5394               document.getElementById('plandbulk').style.zIndex = 0;
5395               document.getElementById('plandagent').style.display = "none";
5396               document.getElementById('plandagent').style.zIndex = 0;
5397               document.getElementById('plandagent_cdr').style.display = "none";
5398               document.getElementById('plandagent_cdr').style.zIndex = 0;
5399               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5400               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5401               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5402               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5403               document.getElementById('plandsql_generic').style.display = "none";
5404               document.getElementById('plandsql_generic').style.zIndex = 0;
5405               document.getElementById('plandsql_external').style.display = "none";
5406               document.getElementById('plandsql_external').style.zIndex = 0;
5407               document.getElementById('plandflat_comission_cust').style.display = "none";
5408               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5409               document.getElementById('plandflat_comission').style.display = "none";
5410               document.getElementById('plandflat_comission').style.zIndex = 0;
5411               document.getElementById('plandflat_comission_pkg').style.display = "none";
5412               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5413
5414             document.getElementById('plandrt_time').style.display = "";
5415             document.getElementById('plandrt_time').style.zIndex = 1;
5416
5417           }
5418           if (planlayer == "sql_generic" ) {
5419
5420               document.getElementById('plandflat').style.display = "none";
5421               document.getElementById('plandflat').style.zIndex = 0;
5422               document.getElementById('plandflat_delayed').style.display = "none";
5423               document.getElementById('plandflat_delayed').style.zIndex = 0;
5424               document.getElementById('plandflat_introrate').style.display = "none";
5425               document.getElementById('plandflat_introrate').style.zIndex = 0;
5426               document.getElementById('plandprorate').style.display = "none";
5427               document.getElementById('plandprorate').style.zIndex = 0;
5428               document.getElementById('plandprorate_delayed').style.display = "none";
5429               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5430               document.getElementById('plandprorate_calendar').style.display = "none";
5431               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5432               document.getElementById('plandprepaid').style.display = "none";
5433               document.getElementById('plandprepaid').style.zIndex = 0;
5434               document.getElementById('plandsubscription').style.display = "none";
5435               document.getElementById('plandsubscription').style.zIndex = 0;
5436               document.getElementById('plandsqlradacct_hour').style.display = "none";
5437               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5438               document.getElementById('plandsqlradacct_daily').style.display = "none";
5439               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5440               document.getElementById('plandvoip_cdr').style.display = "none";
5441               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5442               document.getElementById('plandvoip_inbound').style.display = "none";
5443               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5444               document.getElementById('plandvoip_tiered').style.display = "none";
5445               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5446               document.getElementById('plandcdr_termination').style.display = "none";
5447               document.getElementById('plandcdr_termination').style.zIndex = 0;
5448               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5449               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5450               document.getElementById('plandbulk_simple').style.display = "none";
5451               document.getElementById('plandbulk_simple').style.zIndex = 0;
5452               document.getElementById('plandbulk').style.display = "none";
5453               document.getElementById('plandbulk').style.zIndex = 0;
5454               document.getElementById('plandagent').style.display = "none";
5455               document.getElementById('plandagent').style.zIndex = 0;
5456               document.getElementById('plandagent_cdr').style.display = "none";
5457               document.getElementById('plandagent_cdr').style.zIndex = 0;
5458               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5459               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5460               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5461               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5462               document.getElementById('plandrt_time').style.display = "none";
5463               document.getElementById('plandrt_time').style.zIndex = 0;
5464               document.getElementById('plandsql_external').style.display = "none";
5465               document.getElementById('plandsql_external').style.zIndex = 0;
5466               document.getElementById('plandflat_comission_cust').style.display = "none";
5467               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5468               document.getElementById('plandflat_comission').style.display = "none";
5469               document.getElementById('plandflat_comission').style.zIndex = 0;
5470               document.getElementById('plandflat_comission_pkg').style.display = "none";
5471               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5472
5473             document.getElementById('plandsql_generic').style.display = "";
5474             document.getElementById('plandsql_generic').style.zIndex = 1;
5475
5476           }
5477           if (planlayer == "sql_external" ) {
5478
5479               document.getElementById('plandflat').style.display = "none";
5480               document.getElementById('plandflat').style.zIndex = 0;
5481               document.getElementById('plandflat_delayed').style.display = "none";
5482               document.getElementById('plandflat_delayed').style.zIndex = 0;
5483               document.getElementById('plandflat_introrate').style.display = "none";
5484               document.getElementById('plandflat_introrate').style.zIndex = 0;
5485               document.getElementById('plandprorate').style.display = "none";
5486               document.getElementById('plandprorate').style.zIndex = 0;
5487               document.getElementById('plandprorate_delayed').style.display = "none";
5488               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5489               document.getElementById('plandprorate_calendar').style.display = "none";
5490               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5491               document.getElementById('plandprepaid').style.display = "none";
5492               document.getElementById('plandprepaid').style.zIndex = 0;
5493               document.getElementById('plandsubscription').style.display = "none";
5494               document.getElementById('plandsubscription').style.zIndex = 0;
5495               document.getElementById('plandsqlradacct_hour').style.display = "none";
5496               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5497               document.getElementById('plandsqlradacct_daily').style.display = "none";
5498               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5499               document.getElementById('plandvoip_cdr').style.display = "none";
5500               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5501               document.getElementById('plandvoip_inbound').style.display = "none";
5502               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5503               document.getElementById('plandvoip_tiered').style.display = "none";
5504               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5505               document.getElementById('plandcdr_termination').style.display = "none";
5506               document.getElementById('plandcdr_termination').style.zIndex = 0;
5507               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5508               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5509               document.getElementById('plandbulk_simple').style.display = "none";
5510               document.getElementById('plandbulk_simple').style.zIndex = 0;
5511               document.getElementById('plandbulk').style.display = "none";
5512               document.getElementById('plandbulk').style.zIndex = 0;
5513               document.getElementById('plandagent').style.display = "none";
5514               document.getElementById('plandagent').style.zIndex = 0;
5515               document.getElementById('plandagent_cdr').style.display = "none";
5516               document.getElementById('plandagent_cdr').style.zIndex = 0;
5517               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5518               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5519               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5520               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5521               document.getElementById('plandrt_time').style.display = "none";
5522               document.getElementById('plandrt_time').style.zIndex = 0;
5523               document.getElementById('plandsql_generic').style.display = "none";
5524               document.getElementById('plandsql_generic').style.zIndex = 0;
5525               document.getElementById('plandflat_comission_cust').style.display = "none";
5526               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5527               document.getElementById('plandflat_comission').style.display = "none";
5528               document.getElementById('plandflat_comission').style.zIndex = 0;
5529               document.getElementById('plandflat_comission_pkg').style.display = "none";
5530               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5531
5532             document.getElementById('plandsql_external').style.display = "";
5533             document.getElementById('plandsql_external').style.zIndex = 1;
5534
5535           }
5536           if (planlayer == "flat_comission_cust" ) {
5537
5538               document.getElementById('plandflat').style.display = "none";
5539               document.getElementById('plandflat').style.zIndex = 0;
5540               document.getElementById('plandflat_delayed').style.display = "none";
5541               document.getElementById('plandflat_delayed').style.zIndex = 0;
5542               document.getElementById('plandflat_introrate').style.display = "none";
5543               document.getElementById('plandflat_introrate').style.zIndex = 0;
5544               document.getElementById('plandprorate').style.display = "none";
5545               document.getElementById('plandprorate').style.zIndex = 0;
5546               document.getElementById('plandprorate_delayed').style.display = "none";
5547               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5548               document.getElementById('plandprorate_calendar').style.display = "none";
5549               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5550               document.getElementById('plandprepaid').style.display = "none";
5551               document.getElementById('plandprepaid').style.zIndex = 0;
5552               document.getElementById('plandsubscription').style.display = "none";
5553               document.getElementById('plandsubscription').style.zIndex = 0;
5554               document.getElementById('plandsqlradacct_hour').style.display = "none";
5555               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5556               document.getElementById('plandsqlradacct_daily').style.display = "none";
5557               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5558               document.getElementById('plandvoip_cdr').style.display = "none";
5559               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5560               document.getElementById('plandvoip_inbound').style.display = "none";
5561               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5562               document.getElementById('plandvoip_tiered').style.display = "none";
5563               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5564               document.getElementById('plandcdr_termination').style.display = "none";
5565               document.getElementById('plandcdr_termination').style.zIndex = 0;
5566               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5567               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5568               document.getElementById('plandbulk_simple').style.display = "none";
5569               document.getElementById('plandbulk_simple').style.zIndex = 0;
5570               document.getElementById('plandbulk').style.display = "none";
5571               document.getElementById('plandbulk').style.zIndex = 0;
5572               document.getElementById('plandagent').style.display = "none";
5573               document.getElementById('plandagent').style.zIndex = 0;
5574               document.getElementById('plandagent_cdr').style.display = "none";
5575               document.getElementById('plandagent_cdr').style.zIndex = 0;
5576               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5577               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5578               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5579               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5580               document.getElementById('plandrt_time').style.display = "none";
5581               document.getElementById('plandrt_time').style.zIndex = 0;
5582               document.getElementById('plandsql_generic').style.display = "none";
5583               document.getElementById('plandsql_generic').style.zIndex = 0;
5584               document.getElementById('plandsql_external').style.display = "none";
5585               document.getElementById('plandsql_external').style.zIndex = 0;
5586               document.getElementById('plandflat_comission').style.display = "none";
5587               document.getElementById('plandflat_comission').style.zIndex = 0;
5588               document.getElementById('plandflat_comission_pkg').style.display = "none";
5589               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5590
5591             document.getElementById('plandflat_comission_cust').style.display = "";
5592             document.getElementById('plandflat_comission_cust').style.zIndex = 1;
5593
5594           }
5595           if (planlayer == "flat_comission" ) {
5596
5597               document.getElementById('plandflat').style.display = "none";
5598               document.getElementById('plandflat').style.zIndex = 0;
5599               document.getElementById('plandflat_delayed').style.display = "none";
5600               document.getElementById('plandflat_delayed').style.zIndex = 0;
5601               document.getElementById('plandflat_introrate').style.display = "none";
5602               document.getElementById('plandflat_introrate').style.zIndex = 0;
5603               document.getElementById('plandprorate').style.display = "none";
5604               document.getElementById('plandprorate').style.zIndex = 0;
5605               document.getElementById('plandprorate_delayed').style.display = "none";
5606               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5607               document.getElementById('plandprorate_calendar').style.display = "none";
5608               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5609               document.getElementById('plandprepaid').style.display = "none";
5610               document.getElementById('plandprepaid').style.zIndex = 0;
5611               document.getElementById('plandsubscription').style.display = "none";
5612               document.getElementById('plandsubscription').style.zIndex = 0;
5613               document.getElementById('plandsqlradacct_hour').style.display = "none";
5614               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5615               document.getElementById('plandsqlradacct_daily').style.display = "none";
5616               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5617               document.getElementById('plandvoip_cdr').style.display = "none";
5618               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5619               document.getElementById('plandvoip_inbound').style.display = "none";
5620               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5621               document.getElementById('plandvoip_tiered').style.display = "none";
5622               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5623               document.getElementById('plandcdr_termination').style.display = "none";
5624               document.getElementById('plandcdr_termination').style.zIndex = 0;
5625               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5626               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5627               document.getElementById('plandbulk_simple').style.display = "none";
5628               document.getElementById('plandbulk_simple').style.zIndex = 0;
5629               document.getElementById('plandbulk').style.display = "none";
5630               document.getElementById('plandbulk').style.zIndex = 0;
5631               document.getElementById('plandagent').style.display = "none";
5632               document.getElementById('plandagent').style.zIndex = 0;
5633               document.getElementById('plandagent_cdr').style.display = "none";
5634               document.getElementById('plandagent_cdr').style.zIndex = 0;
5635               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5636               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5637               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5638               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5639               document.getElementById('plandrt_time').style.display = "none";
5640               document.getElementById('plandrt_time').style.zIndex = 0;
5641               document.getElementById('plandsql_generic').style.display = "none";
5642               document.getElementById('plandsql_generic').style.zIndex = 0;
5643               document.getElementById('plandsql_external').style.display = "none";
5644               document.getElementById('plandsql_external').style.zIndex = 0;
5645               document.getElementById('plandflat_comission_cust').style.display = "none";
5646               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5647               document.getElementById('plandflat_comission_pkg').style.display = "none";
5648               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
5649
5650             document.getElementById('plandflat_comission').style.display = "";
5651             document.getElementById('plandflat_comission').style.zIndex = 1;
5652
5653           }
5654           if (planlayer == "flat_comission_pkg" ) {
5655
5656               document.getElementById('plandflat').style.display = "none";
5657               document.getElementById('plandflat').style.zIndex = 0;
5658               document.getElementById('plandflat_delayed').style.display = "none";
5659               document.getElementById('plandflat_delayed').style.zIndex = 0;
5660               document.getElementById('plandflat_introrate').style.display = "none";
5661               document.getElementById('plandflat_introrate').style.zIndex = 0;
5662               document.getElementById('plandprorate').style.display = "none";
5663               document.getElementById('plandprorate').style.zIndex = 0;
5664               document.getElementById('plandprorate_delayed').style.display = "none";
5665               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5666               document.getElementById('plandprorate_calendar').style.display = "none";
5667               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5668               document.getElementById('plandprepaid').style.display = "none";
5669               document.getElementById('plandprepaid').style.zIndex = 0;
5670               document.getElementById('plandsubscription').style.display = "none";
5671               document.getElementById('plandsubscription').style.zIndex = 0;
5672               document.getElementById('plandsqlradacct_hour').style.display = "none";
5673               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5674               document.getElementById('plandsqlradacct_daily').style.display = "none";
5675               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5676               document.getElementById('plandvoip_cdr').style.display = "none";
5677               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5678               document.getElementById('plandvoip_inbound').style.display = "none";
5679               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5680               document.getElementById('plandvoip_tiered').style.display = "none";
5681               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5682               document.getElementById('plandcdr_termination').style.display = "none";
5683               document.getElementById('plandcdr_termination').style.zIndex = 0;
5684               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5685               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5686               document.getElementById('plandbulk_simple').style.display = "none";
5687               document.getElementById('plandbulk_simple').style.zIndex = 0;
5688               document.getElementById('plandbulk').style.display = "none";
5689               document.getElementById('plandbulk').style.zIndex = 0;
5690               document.getElementById('plandagent').style.display = "none";
5691               document.getElementById('plandagent').style.zIndex = 0;
5692               document.getElementById('plandagent_cdr').style.display = "none";
5693               document.getElementById('plandagent_cdr').style.zIndex = 0;
5694               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5695               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5696               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5697               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5698               document.getElementById('plandrt_time').style.display = "none";
5699               document.getElementById('plandrt_time').style.zIndex = 0;
5700               document.getElementById('plandsql_generic').style.display = "none";
5701               document.getElementById('plandsql_generic').style.zIndex = 0;
5702               document.getElementById('plandsql_external').style.display = "none";
5703               document.getElementById('plandsql_external').style.zIndex = 0;
5704               document.getElementById('plandflat_comission_cust').style.display = "none";
5705               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
5706               document.getElementById('plandflat_comission').style.display = "none";
5707               document.getElementById('plandflat_comission').style.zIndex = 0;
5708
5709             document.getElementById('plandflat_comission_pkg').style.display = "";
5710             document.getElementById('plandflat_comission_pkg').style.zIndex = 1;
5711
5712           }
5713
5714         //aux_planchanged(what);
5715
5716       }
5717 </SCRIPT>
5718
5719
5720   <BR>
5721
5722       <INPUT TYPE     = "submit"
5723              ID       = "submit"
5724              VALUE    = "Apply changes"
5725       >
5726
5727   </FORM>
5728
5729   
5730
5731           </TD>
5732       </TR>
5733     </TABLE>
5734   </BODY>
5735 </HTML>
5736
5737
5738