UI testing tool, #37340
[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_calendar"
1308                 
1309         >Prorate (calendar cycle)</OPTION>
1310
1311
1312         <OPTION VALUE="prorate_delayed"
1313                 
1314         >Prorate (Nth of month billing), with intro period</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 <TABLE BORDER=0 CELLSPACING=4 ><TR><TD VALIGN="top">
2650
2651
2652 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-2>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide</FONT></TH></TR>
2653
2654
2655   <TR>
2656     <TD>
2657       <INPUT TYPE="text" NAME="pkg_svc1" SIZE=7 MAXLENGTH=6 VALUE="0">
2658     </TD>
2659    
2660     <TD ALIGN="center">
2661       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="1" >
2662     </TD>
2663
2664     <TD>
2665       <A HREF="part_svc.cgi?1">Domain</A>      
2666     </TD>
2667
2668     <TD>
2669       <INPUT TYPE="checkbox" NAME="hidden1" VALUE="Y">
2670     </TD>
2671   </TR>
2672
2673   <TR>
2674     <TD>
2675       <INPUT TYPE="text" NAME="pkg_svc2" SIZE=7 MAXLENGTH=6 VALUE="1">
2676     </TD>
2677    
2678     <TD ALIGN="center">
2679       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="2" >
2680     </TD>
2681
2682     <TD>
2683       <A HREF="part_svc.cgi?2">Test svc_acct</A>      
2684     </TD>
2685
2686     <TD>
2687       <INPUT TYPE="checkbox" NAME="hidden2" VALUE="Y">
2688     </TD>
2689   </TR>
2690
2691          </TABLE></TD><TD VALIGN="top">
2692
2693 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-2>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide</FONT></TH></TR>
2694
2695   <TR>
2696     <TD>
2697       <INPUT TYPE="text" NAME="pkg_svc3" SIZE=7 MAXLENGTH=6 VALUE="0">
2698     </TD>
2699    
2700     <TD ALIGN="center">
2701       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="3" >
2702     </TD>
2703
2704     <TD>
2705       <A HREF="part_svc.cgi?3">Test svc_domain</A>      
2706     </TD>
2707
2708     <TD>
2709       <INPUT TYPE="checkbox" NAME="hidden3" VALUE="Y">
2710     </TD>
2711   </TR>
2712
2713   <TR>
2714     <TD>
2715       <INPUT TYPE="text" NAME="pkg_svc4" SIZE=7 MAXLENGTH=6 VALUE="0">
2716     </TD>
2717    
2718     <TD ALIGN="center">
2719       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="4" >
2720     </TD>
2721
2722     <TD>
2723       <A HREF="part_svc.cgi?4">Test svc_broadband</A>      
2724     </TD>
2725
2726     <TD>
2727       <INPUT TYPE="checkbox" NAME="hidden4" VALUE="Y">
2728     </TD>
2729   </TR>
2730
2731          </TABLE></TD><TD VALIGN="top">
2732
2733 <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Quan.</FONT></TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-2>Primary</FONT></TH><TH BGCOLOR="#dcdcdc">Service</TH><TH BGCOLOR="#dcdcdc"><FONT SIZE=-1>Hide</FONT></TH></TR>
2734
2735   <TR>
2736     <TD>
2737       <INPUT TYPE="text" NAME="pkg_svc5" SIZE=7 MAXLENGTH=6 VALUE="0">
2738     </TD>
2739    
2740     <TD ALIGN="center">
2741       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="5" >
2742     </TD>
2743
2744     <TD>
2745       <A HREF="part_svc.cgi?5">Test svc_phone</A>      
2746     </TD>
2747
2748     <TD>
2749       <INPUT TYPE="checkbox" NAME="hidden5" VALUE="Y">
2750     </TD>
2751   </TR>
2752
2753 </TR></TABLE></TD></TR></TABLE>
2754
2755
2756   </TD>
2757 </TR>
2758
2759
2760
2761
2762
2763       <TR>
2764
2765   <TD ALIGN  = "right"
2766       VALIGN = "top"
2767       STYLE  = "padding-top: 3px"
2768       ID     = "svc_dst_pkgpart_label0"
2769   >Include services of package</TD>
2770
2771
2772       <TD COLSPAN="1">
2773       
2774
2775 <SELECT 
2776         NAME = "svc_dst_pkgpart0"
2777         ID   = "svc_dst_pkgpart0"
2778         onChange="
2779 spawn_svc_dst_pkgpart(this);"
2780         
2781         
2782 >
2783
2784
2785     <OPTION VALUE="">Select package
2786
2787     <OPTION VALUE="4"
2788             
2789     >
2790      4: Annual subscription domain
2791     <OPTION VALUE="5"
2792             
2793     >
2794      5: Monthly anniversary phone x4
2795     <OPTION VALUE="3"
2796             
2797     >
2798      3: Monthly prorated broadband
2799     <OPTION VALUE="1"
2800             
2801     >
2802      1: System Domain - (NOT FOR CUSTOMERS)
2803
2804
2805 </SELECT>
2806
2807
2808
2809       </TD>
2810
2811
2812       </TR>
2813
2814
2815       <SCRIPT TYPE="text/javascript">
2816
2817         var svc_dst_pkgpart_rownum = 4;
2818         var svc_dst_pkgpart_fieldnum = 0;
2819
2820         function spawn_svc_dst_pkgpart(what) {
2821
2822           // only spawn if we're the last element... return if not
2823
2824           var field_regex = /(\d+)(_[a-z_]+)?$/;
2825           var match = field_regex.exec(what.name);
2826           if ( !match ) {
2827             alert(what.name + " didn't match for " + what);
2828             return;
2829           }
2830           if ( match[1] != svc_dst_pkgpart_fieldnum ) {
2831             return;
2832           }
2833
2834           // change the label on the last entry & add a remove button
2835           var prev_label = document.getElementById('svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum );
2836           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: ';
2837
2838           svc_dst_pkgpart_fieldnum++;
2839
2840           //get the new widget
2841
2842
2843           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';
2844
2845             var newfunc = '';
2846
2847           // substitute in the new field name
2848           var magic_regex = /MAGIC_NUMBER/g;
2849           newrow  = newrow.replace(  magic_regex, svc_dst_pkgpart_fieldnum );
2850           newfunc = newfunc.replace( magic_regex, svc_dst_pkgpart_fieldnum );
2851
2852           // evaluate new_func
2853           if (window.ActiveXObject) {
2854             window.execScript(newfunc);
2855           } else { /* (window.XMLHttpRequest) */
2856             //window.eval(newfunc);
2857             setTimeout(newfunc, 0);
2858           }
2859
2860           // add new row
2861
2862           //hmm, can't use selectlayers after a tablebreak-title for now
2863           var table = document.getElementById('TableNumber8');
2864
2865           var row = table.insertRow(svc_dst_pkgpart_rownum++);
2866
2867           var label_cell = document.createElement('TD');
2868
2869           label_cell.id = 'svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum;
2870
2871           label_cell.style.textAlign = "right";
2872           label_cell.style.verticalAlign = "top";
2873           label_cell.style.borderTop = "1px solid black";
2874           label_cell.style.paddingTop = "5px";
2875
2876           label_cell.innerHTML = 'Include services of package';
2877
2878           row.appendChild(label_cell);
2879           
2880           var widget_cell = document.createElement('TD');
2881
2882           widget_cell.style.borderTop = "1px solid black";
2883           widget_cell.style.paddingTop = "3px";
2884           widget_cell.colSpan = "1";
2885
2886           widget_cell.innerHTML = newrow;
2887
2888           row.appendChild(widget_cell);
2889
2890
2891
2892         }
2893
2894         function remove_svc_dst_pkgpart(remove_fieldnum) {
2895           //alert("remove svc_dst_pkgpart " + remove_fieldnum);
2896           var select = document.getElementById('svc_dst_pkgpart' + remove_fieldnum);
2897
2898           if ( ! select ) {
2899             alert("can't find element svc_dst_pkgpart" + remove_fieldnum);
2900             return;
2901           }
2902
2903
2904           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
2905           var label_td = document.getElementById('svc_dst_pkgpart_label' + remove_fieldnum );
2906           label_td.parentNode.style.display = 'none';
2907
2908
2909         }
2910
2911       </SCRIPT>
2912
2913
2914
2915       </TABLE>
2916
2917 <TABLE ID="TableNumber9" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
2918
2919 <TR>
2920   <TD CLASS="background" COLSPAN=4>&nbsp;</TD>
2921 </TR>
2922
2923 <TR>
2924   <TH CLASS="background" COLSPAN=4 ALIGN="left" ID="show_supp_pkgs">
2925     <FONT SIZE="+1">Supplemental packages</FONT>
2926   </TH>
2927 </TR>
2928
2929
2930
2931
2932
2933
2934
2935
2936       <TR>
2937
2938   <TD ALIGN  = "right"
2939       VALIGN = "top"
2940       STYLE  = "padding-top: 3px"
2941       ID     = "supp_dst_pkgpart_label0"
2942   >When ordering package, also order</TD>
2943
2944
2945       <TD COLSPAN="1">
2946       
2947
2948 <SELECT 
2949         NAME = "supp_dst_pkgpart0"
2950         ID   = "supp_dst_pkgpart0"
2951         onChange="
2952 spawn_supp_dst_pkgpart(this);"
2953         
2954         
2955 >
2956
2957
2958     <OPTION VALUE="">Select package
2959
2960     <OPTION VALUE="4"
2961             
2962     >
2963      4: Annual subscription domain
2964     <OPTION VALUE="5"
2965             
2966     >
2967      5: Monthly anniversary phone x4
2968     <OPTION VALUE="2"
2969             
2970     >
2971      2: Monthly prorated account
2972     <OPTION VALUE="3"
2973             
2974     >
2975      3: Monthly prorated broadband
2976     <OPTION VALUE="1"
2977             
2978     >
2979      1: System Domain - (NOT FOR CUSTOMERS)
2980
2981
2982 </SELECT>
2983
2984
2985
2986       </TD>
2987
2988
2989       </TR>
2990
2991
2992       <SCRIPT TYPE="text/javascript">
2993
2994         var supp_dst_pkgpart_rownum = 3;
2995         var supp_dst_pkgpart_fieldnum = 0;
2996
2997         function spawn_supp_dst_pkgpart(what) {
2998
2999           // only spawn if we're the last element... return if not
3000
3001           var field_regex = /(\d+)(_[a-z_]+)?$/;
3002           var match = field_regex.exec(what.name);
3003           if ( !match ) {
3004             alert(what.name + " didn't match for " + what);
3005             return;
3006           }
3007           if ( match[1] != supp_dst_pkgpart_fieldnum ) {
3008             return;
3009           }
3010
3011           // change the label on the last entry & add a remove button
3012           var prev_label = document.getElementById('supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum );
3013           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';
3014
3015           supp_dst_pkgpart_fieldnum++;
3016
3017           //get the new widget
3018
3019
3020           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';
3021
3022             var newfunc = '';
3023
3024           // substitute in the new field name
3025           var magic_regex = /MAGIC_NUMBER/g;
3026           newrow  = newrow.replace(  magic_regex, supp_dst_pkgpart_fieldnum );
3027           newfunc = newfunc.replace( magic_regex, supp_dst_pkgpart_fieldnum );
3028
3029           // evaluate new_func
3030           if (window.ActiveXObject) {
3031             window.execScript(newfunc);
3032           } else { /* (window.XMLHttpRequest) */
3033             //window.eval(newfunc);
3034             setTimeout(newfunc, 0);
3035           }
3036
3037           // add new row
3038
3039           //hmm, can't use selectlayers after a tablebreak-title for now
3040           var table = document.getElementById('TableNumber9');
3041
3042           var row = table.insertRow(supp_dst_pkgpart_rownum++);
3043
3044           var label_cell = document.createElement('TD');
3045
3046           label_cell.id = 'supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum;
3047
3048           label_cell.style.textAlign = "right";
3049           label_cell.style.verticalAlign = "top";
3050           label_cell.style.borderTop = "1px solid black";
3051           label_cell.style.paddingTop = "5px";
3052
3053           label_cell.innerHTML = 'When ordering package, also order';
3054
3055           row.appendChild(label_cell);
3056           
3057           var widget_cell = document.createElement('TD');
3058
3059           widget_cell.style.borderTop = "1px solid black";
3060           widget_cell.style.paddingTop = "3px";
3061           widget_cell.colSpan = "1";
3062
3063           widget_cell.innerHTML = newrow;
3064
3065           row.appendChild(widget_cell);
3066
3067
3068
3069         }
3070
3071         function remove_supp_dst_pkgpart(remove_fieldnum) {
3072           //alert("remove supp_dst_pkgpart " + remove_fieldnum);
3073           var select = document.getElementById('supp_dst_pkgpart' + remove_fieldnum);
3074
3075           if ( ! select ) {
3076             alert("can't find element supp_dst_pkgpart" + remove_fieldnum);
3077             return;
3078           }
3079
3080
3081           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
3082           var label_td = document.getElementById('supp_dst_pkgpart_label' + remove_fieldnum );
3083           label_td.parentNode.style.display = 'none';
3084
3085
3086         }
3087
3088       </SCRIPT>
3089
3090
3091
3092       </TABLE>
3093
3094 <TABLE ID="TableNumber10" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
3095
3096 <TR>
3097   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
3098 </TR>
3099
3100 <TR>
3101   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
3102     <FONT SIZE="+1">Price plan options</FONT>
3103   </TH>
3104 </TR>
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115 </TABLE>
3116
3117
3118
3119       <DIV ID="plandflat"
3120            STYLE="display: none; z-index: 0"
3121       >
3122
3123         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="flat__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="flat__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="flat__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="flat__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="flat__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="flat__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="flat__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat__OPTIONS" VALUE="recharge_totalbytes,seconds,recharge_seconds,recharge_downbytes,bill_suspend_as_cancel,a2billing_retail_initblock_offp,recharge_upbytes,setup_fee,upbytes,unused_credit_change,suspend_bill,start_1st,a2billing_tariff,downbytes,externalid,a2billing_carrier_cost_min,unsuspend_adjust_bill,recur_fee,prorate_round_day,a2billing_retail_cost_min_offp,recur_temporality,contract_end_months,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,recharge_reset,adjourn_months,prorate_defer_bill,a2billing_simultaccess,totalbytes,expire_months,unused_credit_cancel,sync_bill_date,bill_recur_on_cancel,usage_rollover,a2billing_carrier_increment_offp,recharge_amount,a2billing_type,unused_credit_suspend,add_full_period,delay_cancel,prorate_verbose">
3124
3125       </DIV>
3126
3127
3128       <DIV ID="plandflat_delayed"
3129            STYLE="display: none; z-index: 0"
3130       >
3131
3132         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD><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><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><INPUT TYPE="text" NAME="flat_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_delayed__OPTIONS" VALUE="a2billing_carrier_increment_offp,unused_credit_cancel,setup_fee,free_days,recur_notify,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_carrer_initblock_offp,a2billing_retail_increment_offp,a2billing_retail_cost_min_offp,delay_cancel,recur_fee,unused_credit_suspend,a2billing_type,a2billing_carrier_cost_min,a2billing_tariff,delay_setup,suspend_bill,unused_credit_change">
3133
3134       </DIV>
3135
3136
3137       <DIV ID="plandflat_introrate"
3138            STYLE="display: none; z-index: 0"
3139       >
3140
3141         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Duration of the introductory period, in number of months</TD><TD><INPUT TYPE="text" NAME="flat_introrate__intro_duration" VALUE="0"></TD></TR><TR><TD ALIGN="right">Introductory recurring fee for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__intro_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_introrate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="flat_introrate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_introrate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_introrate__OPTIONS" VALUE="a2billing_retail_increment_offp,contract_end_months,recur_temporality,prorate_defer_bill,a2billing_simultaccess,a2billing_carrer_initblock_offp,recharge_reset,adjourn_months,intro_duration,expire_months,totalbytes,bill_recur_on_cancel,sync_bill_date,usage_rollover,a2billing_carrier_increment_offp,unused_credit_cancel,recharge_amount,intro_fee,unused_credit_suspend,add_full_period,a2billing_type,delay_cancel,recharge_totalbytes,seconds,bill_suspend_as_cancel,recharge_downbytes,a2billing_retail_initblock_offp,recharge_seconds,setup_fee,recharge_upbytes,suspend_bill,start_1st,upbytes,unused_credit_change,downbytes,externalid,a2billing_tariff,unsuspend_adjust_bill,recur_fee,a2billing_carrier_cost_min,a2billing_retail_cost_min_offp,prorate_round_day">
3142
3143       </DIV>
3144
3145
3146       <DIV ID="plandprorate"
3147            STYLE="display: block; z-index: 1"
3148       >
3149
3150         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="prorate__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="prorate__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="prorate__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="prorate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="prorate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="prorate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate__OPTIONS" VALUE="upbytes,unused_credit_change,suspend_bill,start_1st,a2billing_tariff,downbytes,externalid,a2billing_carrier_cost_min,cutoff_day,unsuspend_adjust_bill,recur_fee,prorate_round_day,a2billing_retail_cost_min_offp,recharge_totalbytes,seconds,recharge_seconds,recharge_downbytes,bill_suspend_as_cancel,a2billing_retail_initblock_offp,recharge_upbytes,setup_fee,recharge_amount,a2billing_type,add_full_period,unused_credit_suspend,delay_cancel,prorate_verbose,recur_temporality,a2billing_retail_increment_offp,contract_end_months,recharge_reset,a2billing_carrer_initblock_offp,adjourn_months,prorate_defer_bill,a2billing_simultaccess,totalbytes,expire_months,unused_credit_cancel,usage_rollover,bill_recur_on_cancel,a2billing_carrier_increment_offp,sync_bill_date">
3151
3152       </DIV>
3153
3154
3155       <DIV ID="plandprorate_calendar"
3156            STYLE="display: none; z-index: 0"
3157       >
3158
3159         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day (1 - end of cycle)</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="prorate_calendar__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><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><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><INPUT TYPE="checkbox" NAME="prorate_calendar__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="prorate_calendar__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate_calendar__OPTIONS" VALUE="recharge_totalbytes,seconds,recharge_seconds,recharge_downbytes,bill_suspend_as_cancel,a2billing_retail_initblock_offp,recharge_upbytes,setup_fee,upbytes,unused_credit_change,suspend_bill,start_1st,a2billing_tariff,downbytes,externalid,a2billing_carrier_cost_min,unsuspend_adjust_bill,cutoff_day,recur_fee,prorate_round_day,a2billing_retail_cost_min_offp,recur_temporality,contract_end_months,a2billing_retail_increment_offp,recharge_reset,a2billing_carrer_initblock_offp,adjourn_months,prorate_defer_bill,a2billing_simultaccess,totalbytes,expire_months,unused_credit_cancel,sync_bill_date,a2billing_carrier_increment_offp,usage_rollover,bill_recur_on_cancel,recharge_amount,a2billing_type,unused_credit_suspend,add_full_period,delay_cancel,prorate_verbose">
3160
3161       </DIV>
3162
3163
3164       <DIV ID="plandprorate_delayed"
3165            STYLE="display: none; z-index: 0"
3166       >
3167
3168         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="prorate_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD><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><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><INPUT TYPE="text" NAME="prorate_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate_delayed__OPTIONS" VALUE="unused_credit_cancel,a2billing_carrier_increment_offp,recur_notify,setup_fee,free_days,a2billing_carrer_initblock_offp,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,delay_cancel,a2billing_retail_cost_min_offp,a2billing_type,a2billing_carrier_cost_min,recur_fee,unused_credit_suspend,delay_setup,a2billing_tariff,unused_credit_change,suspend_bill">
3169
3170       </DIV>
3171
3172
3173       <DIV ID="plandprepaid"
3174            STYLE="display: none; z-index: 0"
3175       >
3176
3177         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Action to take upon reaching end of prepaid period</TD><TD><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><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><INPUT TYPE="text" NAME="prepaid__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="prepaid__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prepaid__OPTIONS" VALUE="totalbytes,recharge_upbytes,setup_fee,recur_action,unused_credit_cancel,usage_rollover,a2billing_carrier_increment_offp,a2billing_retail_increment_offp,seconds,recharge_totalbytes,recharge_reset,a2billing_carrer_initblock_offp,recharge_seconds,a2billing_retail_initblock_offp,a2billing_simultaccess,recharge_downbytes,a2billing_carrier_cost_min,a2billing_type,recur_fee,unused_credit_suspend,delay_cancel,a2billing_retail_cost_min_offp,overlimit_action,unused_credit_change,upbytes,a2billing_tariff,recharge_amount,downbytes">
3178
3179       </DIV>
3180
3181
3182       <DIV ID="plandsubscription"
3183            STYLE="display: none; z-index: 0"
3184       >
3185
3186         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day</TD><TD><INPUT TYPE="text" NAME="subscription__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><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><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><INPUT TYPE="checkbox" NAME="subscription__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="subscription__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="subscription__OPTIONS" VALUE="upbytes,unused_credit_change,downbytes,externalid,recharge_amount,a2billing_tariff,cutoff_day,unused_credit_suspend,recur_fee,a2billing_carrier_cost_min,a2billing_type,a2billing_retail_cost_min_offp,delay_cancel,recharge_totalbytes,seconds,a2billing_retail_increment_offp,recharge_downbytes,a2billing_retail_initblock_offp,a2billing_simultaccess,recharge_seconds,recharge_reset,a2billing_carrer_initblock_offp,setup_fee,recharge_upbytes,totalbytes,a2billing_carrier_increment_offp,usage_rollover,unused_credit_cancel">
3187
3188       </DIV>
3189
3190
3191       <DIV ID="plandsqlradacct_hour"
3192            STYLE="display: none; z-index: 0"
3193       >
3194
3195         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_hour__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload megabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte upload</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_hour__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download megabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte download</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_hour__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total megabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte total</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="sqlradacct_hour__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sqlradacct_hour__OPTIONS" VALUE="recur_included_hours,unused_credit_change,recur_total_cap,recur_hourly_charge,a2billing_tariff,recur_fee,recur_output_charge,unused_credit_suspend,a2billing_carrier_cost_min,recur_included_total,a2billing_type,recur_total_charge,a2billing_retail_cost_min_offp,delay_cancel,a2billing_retail_increment_offp,global_cap,recur_hourly_cap,a2billing_retail_initblock_offp,a2billing_simultaccess,recur_input_charge,a2billing_carrer_initblock_offp,recur_input_cap,recur_included_output,setup_fee,recur_output_cap,recur_included_input,a2billing_carrier_increment_offp,unused_credit_cancel">
3196
3197       </DIV>
3198
3199
3200       <DIV ID="plandsqlradacct_daily"
3201            STYLE="display: none; z-index: 0"
3202       >
3203
3204         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_daily__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte upload</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_daily__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte download</TD><TD><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><INPUT TYPE="text" NAME="sqlradacct_daily__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte total</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="sqlradacct_daily__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sqlradacct_daily__OPTIONS" VALUE="recur_output_cap,setup_fee,recur_included_output,recur_input_cap,monthly_cap,recur_included_input,a2billing_carrier_increment_offp,unused_credit_cancel,a2billing_retail_increment_offp,global_cap,a2billing_retail_initblock_offp,recur_hourly_cap,a2billing_simultaccess,a2billing_carrer_initblock_offp,recur_input_charge,unused_credit_suspend,recur_output_charge,recur_fee,recur_included_total,a2billing_type,a2billing_carrier_cost_min,a2billing_retail_cost_min_offp,recur_total_charge,delay_cancel,unused_credit_change,recur_included_hours,recur_total_cap,a2billing_tariff,recur_hourly_charge">
3205
3206       </DIV>
3207
3208
3209       <DIV ID="plandvoip_cdr"
3210            STYLE="display: none; z-index: 0"
3211       >
3212
3213         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD><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><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><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>
3214 <SELECT 
3215         NAME = "voip_cdr__ratenum"
3216         ID   = "ratenum"
3217         
3218         
3219         
3220 >
3221
3222
3223     <OPTION VALUE="">Select rate plan
3224
3225
3226
3227 </SELECT>
3228
3229
3230 </TD></TR><TR><TD ALIGN="right">Optional alternate intrastate rate plan</TD><TD>
3231 <SELECT 
3232         NAME = "voip_cdr__intrastate_ratenum"
3233         ID   = "ratenum"
3234         
3235         
3236         
3237 >
3238
3239
3240     <OPTION VALUE=""> 
3241
3242
3243
3244 </SELECT>
3245
3246
3247 </TD></TR><TR><TD ALIGN="right">Number of calls included at no usage charge</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_cdr__disable_src" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Destination prefix for domestic CDR records</TD><TD><INPUT TYPE="text" NAME="voip_cdr__domestic_prefix" VALUE="1"></TD></TR><TR><TD ALIGN="right">Destination prefix for international CDR records</TD><TD><INPUT TYPE="text" NAME="voip_cdr__international_prefix" VALUE="011"></TD></TR><TR><TD ALIGN="right">Disable automatic toll-free processing</TD><TD><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="text" NAME="voip_cdr__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD><SELECT NAME="voip_cdr__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD><SELECT NAME="voip_cdr__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD><SELECT NAME="voip_cdr__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_cdr__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_cdr__OPTIONS" VALUE="domestic_prefix,bill_only_pkg_dates,selfservice_format,summarize_usage,noskip_src_length_accountcode_tollfree,skip_dst_length_less,use_calltypenum,ignore_unrateable,use_duration,use_amaflags,intrastate_ratenum,skip_max_callers,recur_fee,recur_temporality,a2billing_carrer_initblock_offp,disposition_in,a2billing_simultaccess,ignore_disposition,use_cdrtypenum,unused_credit_cancel,bill_every_call,skip_dst_prefix,rounding,a2billing_carrier_increment_offp,usage_showzero,selfservice_inbound_format,disable_src,a2billing_type,bill_inactive_svcs,delay_cancel,count_available_phones,cdr_svc_method,recur_method,usage_mandate,rating_method,min_charge,a2billing_retail_initblock_offp,skip_lastapp,noskip_dst_length_accountcode_tollfree,skip_dcontext,setup_fee,calls_included,disable_tollfree,unused_credit_change,suspend_bill,a2billing_tariff,output_format,a2billing_carrier_cost_min,cutoff_day,usage_section,prorate_round_day,ignore_cdrtypenum,a2billing_retail_cost_min_offp,default_prefix,skip_same_customer,accountcode_tollfree_field,a2billing_retail_increment_offp,skip_src_length_more,prorate_defer_bill,accountcode_tollfree_ratenum,ratenum,411_rewrite,international_prefix,skip_dstchannel_prefix,use_carrierid,min_included,unused_credit_suspend,sec_granularity,add_full_period,prorate_verbose,ignore_calltypenum">
3248
3249       </DIV>
3250
3251
3252       <DIV ID="plandvoip_inbound"
3253            STYLE="display: none; z-index: 0"
3254       >
3255
3256         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_inbound__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Charge per minute</TD><TD><INPUT TYPE="text" NAME="voip_inbound__min_charge" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD><INPUT TYPE="text" NAME="voip_inbound__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD><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><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><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><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><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_inbound__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="voip_inbound__output_format"><OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple">Simple<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="source_default">Default with source<OPTION VALUE="simple2">Simple with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_inbound__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_inbound__OPTIONS" VALUE="ignore_disposition,use_cdrtypenum,unused_credit_cancel,skip_dstchannel_prefix,use_carrierid,bill_every_call,min_included,a2billing_carrier_increment_offp,recur_temporality,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,prorate_defer_bill,disposition_in,a2billing_simultaccess,a2billing_type,add_full_period,unused_credit_suspend,sec_granularity,delay_cancel,prorate_verbose,ignore_calltypenum,use_amaflags,skip_lastapp,setup_fee,skip_dcontext,recur_method,usage_mandate,summarize_usage,skip_dst_length_less,use_calltypenum,min_charge,a2billing_retail_initblock_offp,use_duration,a2billing_carrier_cost_min,cutoff_day,recur_fee,usage_section,prorate_round_day,ignore_cdrtypenum,a2billing_retail_cost_min_offp,default_prefix,unused_credit_change,a2billing_tariff,output_format">
3257
3258       </DIV>
3259
3260
3261       <DIV ID="plandvoip_tiered"
3262            STYLE="display: none; z-index: 0"
3263       >
3264
3265         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_tiered__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD><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><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><SELECT NAME="voip_tiered__tiernum"></SELECT></TD></TR><TR><TD ALIGN="right">Rounding for destination prefix rating</TD><TD><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><INPUT TYPE="text" NAME="voip_tiered__calls_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD><INPUT TYPE="text" NAME="voip_tiered__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="text" NAME="voip_tiered__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD><SELECT NAME="voip_tiered__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD><SELECT NAME="voip_tiered__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD><SELECT NAME="voip_tiered__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="default">Default<OPTION VALUE="simple">Simple<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_tiered__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="voip_tiered__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_tiered__OPTIONS" VALUE="skip_max_callers,recur_fee,intrastate_ratenum,use_amaflags,skip_dst_length_less,noskip_src_length_accountcode_tollfree,use_calltypenum,ignore_unrateable,use_duration,domestic_prefix,bill_only_pkg_dates,selfservice_format,summarize_usage,delay_cancel,count_available_phones,cdr_svc_method,disable_src,a2billing_type,bill_inactive_svcs,selfservice_inbound_format,tiernum,unused_credit_cancel,skip_dst_prefix,bill_every_call,rounding,usage_showzero,a2billing_carrier_increment_offp,ignore_disposition,use_cdrtypenum,a2billing_carrer_initblock_offp,disposition_in,a2billing_simultaccess,recur_temporality,prorate_round_day,ignore_cdrtypenum,a2billing_retail_cost_min_offp,default_prefix,a2billing_carrier_cost_min,cutoff_day,usage_section,a2billing_tariff,output_format,disable_tollfree,unused_credit_change,suspend_bill,calls_included,skip_lastapp,noskip_dst_length_accountcode_tollfree,skip_dcontext,setup_fee,min_charge,a2billing_retail_initblock_offp,recur_method,usage_mandate,rating_method,prorate_verbose,ignore_calltypenum,add_full_period,sec_granularity,unused_credit_suspend,international_prefix,skip_dstchannel_prefix,use_carrierid,min_included,411_rewrite,ratenum,skip_src_length_more,prorate_defer_bill,accountcode_tollfree_ratenum,accountcode_tollfree_field,cdr_inout,skip_same_customer,a2billing_retail_increment_offp">
3266
3267       </DIV>
3268
3269
3270       <DIV ID="plandcdr_termination"
3271            STYLE="display: none; z-index: 0"
3272       >
3273
3274         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="cdr_termination__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="cdr_termination__output_format"><OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<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="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="simple">Simple</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="cdr_termination__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="cdr_termination__OPTIONS" VALUE="unused_credit_change,a2billing_tariff,output_format,a2billing_carrier_cost_min,a2billing_type,add_full_period,unused_credit_suspend,cutoff_day,usage_section,recur_fee,delay_cancel,prorate_round_day,a2billing_retail_cost_min_offp,prorate_verbose,recur_method,usage_mandate,recur_temporality,summarize_usage,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,prorate_defer_bill,a2billing_retail_initblock_offp,a2billing_simultaccess,setup_fee,unused_credit_cancel,a2billing_carrier_increment_offp">
3275
3276       </DIV>
3277
3278
3279       <DIV ID="plandprepaid_nibblebill"
3280            STYLE="display: none; z-index: 0"
3281       >
3282
3283         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Nibble rate</TD><TD><INPUT TYPE="text" NAME="prepaid_nibblebill__nibble_rate" VALUE=""></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prepaid_nibblebill__OPTIONS" VALUE="setup_fee,recur_fee,nibble_rate">
3284
3285       </DIV>
3286
3287
3288       <DIV ID="plandbulk_simple"
3289            STYLE="display: none; z-index: 0"
3290       >
3291
3292         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Setup fee for each new service</TD><TD><INPUT TYPE="text" NAME="bulk_simple__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD><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><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><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><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><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><INPUT TYPE="checkbox" NAME="bulk_simple__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="bulk_simple__OPTIONS" VALUE="a2billing_carrier_increment_offp,unused_credit_cancel,svc_setup_fee,summarize_svcs,svc_recur_fee,setup_fee,a2billing_retail_initblock_offp,a2billing_simultaccess,a2billing_carrer_initblock_offp,a2billing_retail_increment_offp,a2billing_retail_cost_min_offp,delay_cancel,unused_credit_suspend,recur_fee,a2billing_carrier_cost_min,a2billing_type,a2billing_tariff,unused_credit_change">
3293
3294       </DIV>
3295
3296
3297       <DIV ID="plandbulk"
3298            STYLE="display: none; z-index: 0"
3299       >
3300
3301         <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><INPUT TYPE="checkbox" NAME="bulk__no_prorate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Setup fee for each new service</TD><TD><INPUT TYPE="text" NAME="bulk__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD><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><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><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><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><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><INPUT TYPE="checkbox" NAME="bulk__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="bulk__OPTIONS" VALUE="a2billing_tariff,unused_credit_change,delay_cancel,a2billing_retail_cost_min_offp,a2billing_type,a2billing_carrier_cost_min,no_prorate,recur_fee,unused_credit_suspend,a2billing_carrer_initblock_offp,a2billing_retail_initblock_offp,a2billing_simultaccess,a2billing_retail_increment_offp,summarize_svcs,svc_setup_fee,unused_credit_cancel,a2billing_carrier_increment_offp,setup_fee,svc_recur_fee">
3302
3303       </DIV>
3304
3305
3306       <DIV ID="plandagent"
3307            STYLE="display: none; z-index: 0"
3308       >
3309
3310         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD><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><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="agent__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="agent__OPTIONS" VALUE="display_separate_cust,unused_credit_change,a2billing_tariff,a2billing_carrier_cost_min,a2billing_type,unused_credit_suspend,cutoff_day,add_full_period,recur_fee,prorate_round_day,delay_cancel,cost_only,prorate_verbose,a2billing_retail_cost_min_offp,recur_temporality,no_pkg_prorate,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,prorate_defer_bill,a2billing_retail_initblock_offp,a2billing_simultaccess,setup_fee,unused_credit_cancel,a2billing_carrier_increment_offp,sync_bill_date">
3311
3312       </DIV>
3313
3314
3315       <DIV ID="plandagent_cdr"
3316            STYLE="display: none; z-index: 0"
3317       >
3318
3319         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="agent_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="agent_cdr__output_format"><OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="simple">Simple<OPTION VALUE="default">Default<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="source_default">Default with source<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="simple2">Simple with source<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_default">Default plus accountcode</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="agent_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="agent_cdr__OPTIONS" VALUE="a2billing_carrer_initblock_offp,prorate_defer_bill,a2billing_retail_initblock_offp,a2billing_simultaccess,recur_method,recur_temporality,usage_mandate,summarize_usage,a2billing_retail_increment_offp,unused_credit_cancel,a2billing_carrier_increment_offp,setup_fee,a2billing_tariff,output_format,unused_credit_change,delay_cancel,prorate_round_day,a2billing_retail_cost_min_offp,prorate_verbose,a2billing_carrier_cost_min,a2billing_type,unused_credit_suspend,add_full_period,cutoff_day,recur_fee,usage_section">
3320
3321       </DIV>
3322
3323
3324       <DIV ID="plandtorrus_bw_percentile"
3325            STYLE="display: none; z-index: 0"
3326       >
3327
3328         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included megabytes/sec (95th percentile)</TD><TD><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><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="torrus_bw_percentile__OPTIONS" VALUE="delay_cancel,a2billing_type,add_full_period,unused_credit_suspend,adjourn_months,a2billing_carrer_initblock_offp,a2billing_simultaccess,prorate_defer_bill,recur_temporality,contract_end_months,a2billing_retail_increment_offp,unused_credit_cancel,a2billing_carrier_increment_offp,sync_bill_date,bill_recur_on_cancel,expire_months,a2billing_tariff,externalid,unused_credit_change,mbps_rate,start_1st,suspend_bill,prorate_round_day,a2billing_retail_cost_min_offp,a2billing_carrier_cost_min,recur_fee,cutoff_day,unsuspend_adjust_bill,a2billing_retail_initblock_offp,bill_suspend_as_cancel,base_mbps,setup_fee">
3329
3330       </DIV>
3331
3332
3333       <DIV ID="plandtorrus_bw_usage"
3334            STYLE="display: none; z-index: 0"
3335       >
3336
3337         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included gigabytes</TD><TD><INPUT TYPE="text" NAME="torrus_bw_usage__base_gb" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge per gigabyte</TD><TD><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><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><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><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="torrus_bw_usage__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="torrus_bw_usage__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="torrus_bw_usage__OPTIONS" VALUE="setup_fee,a2billing_retail_initblock_offp,bill_suspend_as_cancel,prorate_round_day,a2billing_retail_cost_min_offp,a2billing_carrier_cost_min,recur_fee,cutoff_day,unsuspend_adjust_bill,base_gb,a2billing_tariff,externalid,unused_credit_change,start_1st,suspend_bill,unused_credit_cancel,sync_bill_date,bill_recur_on_cancel,a2billing_carrier_increment_offp,expire_months,adjourn_months,a2billing_carrer_initblock_offp,a2billing_simultaccess,prorate_defer_bill,recur_temporality,contract_end_months,a2billing_retail_increment_offp,delay_cancel,a2billing_type,gb_rate,add_full_period,unused_credit_suspend">
3338
3339       </DIV>
3340
3341
3342       <DIV ID="plandrt_time"
3343            STYLE="display: none; z-index: 0"
3344       >
3345
3346         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Rate (per minute)</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="rt_time__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="rt_time__OPTIONS" VALUE="setup_fee,unused_credit_cancel,a2billing_carrier_increment_offp,base_rate,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_carrier_cost_min,a2billing_type,recur_fee,unused_credit_suspend,delay_cancel,a2billing_retail_cost_min_offp,unused_credit_change,a2billing_tariff">
3347
3348       </DIV>
3349
3350
3351       <DIV ID="plandsql_generic"
3352            STYLE="display: none; z-index: 0"
3353       >
3354
3355         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Units included</TD><TD><INPUT TYPE="text" NAME="sql_generic__recur_included" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per unit</TD><TD><INPUT TYPE="text" NAME="sql_generic__recur_unit_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD><INPUT TYPE="text" NAME="sql_generic__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_generic__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_generic__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="sql_generic__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sql_generic__OPTIONS" VALUE="unused_credit_cancel,a2billing_carrier_increment_offp,recur_unit_charge,setup_fee,a2billing_carrer_initblock_offp,a2billing_simultaccess,a2billing_retail_initblock_offp,db_password,query,a2billing_retail_increment_offp,delay_cancel,db_username,a2billing_retail_cost_min_offp,a2billing_carrier_cost_min,a2billing_type,unused_credit_suspend,recur_fee,a2billing_tariff,unused_credit_change,datasrc,recur_included">
3356
3357       </DIV>
3358
3359
3360       <DIV ID="plandsql_external"
3361            STYLE="display: none; z-index: 0"
3362       >
3363
3364         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Recurring fee method</TD><TD><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><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><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><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><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><INPUT TYPE="checkbox" NAME="sql_external__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD><INPUT TYPE="text" NAME="sql_external__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_external__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database password</TD><TD><INPUT TYPE="text" NAME="sql_external__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="sql_external__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sql_external__OPTIONS" VALUE="unused_credit_suspend,add_full_period,cutoff_day,recur_fee,a2billing_type,a2billing_carrier_cost_min,a2billing_retail_cost_min_offp,prorate_verbose,delay_cancel,prorate_round_day,db_username,datasrc,unused_credit_change,a2billing_tariff,setup_fee,a2billing_carrier_increment_offp,unused_credit_cancel,db_password,a2billing_retail_increment_offp,query,recur_method,prorate_defer_bill,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_carrer_initblock_offp">
3365
3366       </DIV>
3367
3368
3369       <DIV ID="plandflat_comission_cust"
3370            STYLE="display: none; z-index: 0"
3371       >
3372
3373         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD><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><INPUT TYPE="text" NAME="flat_comission_cust__comission_amount" VALUE="0"></TD></TR><TR><TD ALIGN="right">Reason type for commission credits</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_comission_cust__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_comission_cust__OPTIONS" VALUE="a2billing_type,a2billing_carrier_cost_min,unused_credit_suspend,recur_fee,delay_cancel,a2billing_retail_cost_min_offp,reason_type,comission_depth,unused_credit_change,a2billing_tariff,comission_amount,setup_fee,unused_credit_cancel,a2billing_carrier_increment_offp,a2billing_retail_increment_offp,a2billing_carrer_initblock_offp,a2billing_retail_initblock_offp,a2billing_simultaccess">
3374
3375       </DIV>
3376
3377
3378       <DIV ID="plandflat_comission"
3379            STYLE="display: none; z-index: 0"
3380       >
3381
3382         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD><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><INPUT TYPE="text" NAME="flat_comission__comission_amount" VALUE="0"></TD></TR><TR><TD ALIGN="right">Reason type for commission credits</TD><TD><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_comission__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_comission__OPTIONS" VALUE="a2billing_retail_increment_offp,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_carrer_initblock_offp,setup_fee,a2billing_carrier_increment_offp,unused_credit_cancel,comission_depth,unused_credit_change,comission_amount,a2billing_tariff,recur_fee,unused_credit_suspend,a2billing_type,a2billing_carrier_cost_min,reason_type,a2billing_retail_cost_min_offp,delay_cancel">
3383
3384       </DIV>
3385
3386
3387       <DIV ID="plandflat_comission_pkg"
3388            STYLE="display: none; z-index: 0"
3389       >
3390
3391         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Number of layers</TD><TD><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><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><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><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><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><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><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><INPUT TYPE="checkbox" NAME="flat_comission_pkg__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_comission_pkg__OPTIONS" VALUE="delay_cancel,a2billing_retail_cost_min_offp,reason_type,a2billing_carrier_cost_min,a2billing_type,unused_credit_suspend,recur_fee,a2billing_tariff,comission_amount,unused_credit_change,comission_depth,unused_credit_cancel,a2billing_carrier_increment_offp,comission_pkgpart,setup_fee,a2billing_carrer_initblock_offp,a2billing_simultaccess,a2billing_retail_initblock_offp,a2billing_retail_increment_offp">
3392
3393       </DIV>
3394
3395
3396 <SCRIPT TYPE="text/javascript">
3397
3398       function planchanged(what) {
3399
3400         aux_planchanged(what);
3401
3402         var planlayer = what.options[what.selectedIndex].value;
3403
3404           if (planlayer == "flat" ) {
3405
3406               document.getElementById('plandflat_delayed').style.display = "none";
3407               document.getElementById('plandflat_delayed').style.zIndex = 0;
3408               document.getElementById('plandflat_introrate').style.display = "none";
3409               document.getElementById('plandflat_introrate').style.zIndex = 0;
3410               document.getElementById('plandprorate').style.display = "none";
3411               document.getElementById('plandprorate').style.zIndex = 0;
3412               document.getElementById('plandprorate_calendar').style.display = "none";
3413               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3414               document.getElementById('plandprorate_delayed').style.display = "none";
3415               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3416               document.getElementById('plandprepaid').style.display = "none";
3417               document.getElementById('plandprepaid').style.zIndex = 0;
3418               document.getElementById('plandsubscription').style.display = "none";
3419               document.getElementById('plandsubscription').style.zIndex = 0;
3420               document.getElementById('plandsqlradacct_hour').style.display = "none";
3421               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3422               document.getElementById('plandsqlradacct_daily').style.display = "none";
3423               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3424               document.getElementById('plandvoip_cdr').style.display = "none";
3425               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3426               document.getElementById('plandvoip_inbound').style.display = "none";
3427               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3428               document.getElementById('plandvoip_tiered').style.display = "none";
3429               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3430               document.getElementById('plandcdr_termination').style.display = "none";
3431               document.getElementById('plandcdr_termination').style.zIndex = 0;
3432               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3433               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3434               document.getElementById('plandbulk_simple').style.display = "none";
3435               document.getElementById('plandbulk_simple').style.zIndex = 0;
3436               document.getElementById('plandbulk').style.display = "none";
3437               document.getElementById('plandbulk').style.zIndex = 0;
3438               document.getElementById('plandagent').style.display = "none";
3439               document.getElementById('plandagent').style.zIndex = 0;
3440               document.getElementById('plandagent_cdr').style.display = "none";
3441               document.getElementById('plandagent_cdr').style.zIndex = 0;
3442               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3443               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3444               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3445               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3446               document.getElementById('plandrt_time').style.display = "none";
3447               document.getElementById('plandrt_time').style.zIndex = 0;
3448               document.getElementById('plandsql_generic').style.display = "none";
3449               document.getElementById('plandsql_generic').style.zIndex = 0;
3450               document.getElementById('plandsql_external').style.display = "none";
3451               document.getElementById('plandsql_external').style.zIndex = 0;
3452               document.getElementById('plandflat_comission_cust').style.display = "none";
3453               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3454               document.getElementById('plandflat_comission').style.display = "none";
3455               document.getElementById('plandflat_comission').style.zIndex = 0;
3456               document.getElementById('plandflat_comission_pkg').style.display = "none";
3457               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3458
3459             document.getElementById('plandflat').style.display = "";
3460             document.getElementById('plandflat').style.zIndex = 1;
3461
3462           }
3463           if (planlayer == "flat_delayed" ) {
3464
3465               document.getElementById('plandflat').style.display = "none";
3466               document.getElementById('plandflat').style.zIndex = 0;
3467               document.getElementById('plandflat_introrate').style.display = "none";
3468               document.getElementById('plandflat_introrate').style.zIndex = 0;
3469               document.getElementById('plandprorate').style.display = "none";
3470               document.getElementById('plandprorate').style.zIndex = 0;
3471               document.getElementById('plandprorate_calendar').style.display = "none";
3472               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3473               document.getElementById('plandprorate_delayed').style.display = "none";
3474               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3475               document.getElementById('plandprepaid').style.display = "none";
3476               document.getElementById('plandprepaid').style.zIndex = 0;
3477               document.getElementById('plandsubscription').style.display = "none";
3478               document.getElementById('plandsubscription').style.zIndex = 0;
3479               document.getElementById('plandsqlradacct_hour').style.display = "none";
3480               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3481               document.getElementById('plandsqlradacct_daily').style.display = "none";
3482               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3483               document.getElementById('plandvoip_cdr').style.display = "none";
3484               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3485               document.getElementById('plandvoip_inbound').style.display = "none";
3486               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3487               document.getElementById('plandvoip_tiered').style.display = "none";
3488               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3489               document.getElementById('plandcdr_termination').style.display = "none";
3490               document.getElementById('plandcdr_termination').style.zIndex = 0;
3491               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3492               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3493               document.getElementById('plandbulk_simple').style.display = "none";
3494               document.getElementById('plandbulk_simple').style.zIndex = 0;
3495               document.getElementById('plandbulk').style.display = "none";
3496               document.getElementById('plandbulk').style.zIndex = 0;
3497               document.getElementById('plandagent').style.display = "none";
3498               document.getElementById('plandagent').style.zIndex = 0;
3499               document.getElementById('plandagent_cdr').style.display = "none";
3500               document.getElementById('plandagent_cdr').style.zIndex = 0;
3501               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3502               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3503               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3504               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3505               document.getElementById('plandrt_time').style.display = "none";
3506               document.getElementById('plandrt_time').style.zIndex = 0;
3507               document.getElementById('plandsql_generic').style.display = "none";
3508               document.getElementById('plandsql_generic').style.zIndex = 0;
3509               document.getElementById('plandsql_external').style.display = "none";
3510               document.getElementById('plandsql_external').style.zIndex = 0;
3511               document.getElementById('plandflat_comission_cust').style.display = "none";
3512               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3513               document.getElementById('plandflat_comission').style.display = "none";
3514               document.getElementById('plandflat_comission').style.zIndex = 0;
3515               document.getElementById('plandflat_comission_pkg').style.display = "none";
3516               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3517
3518             document.getElementById('plandflat_delayed').style.display = "";
3519             document.getElementById('plandflat_delayed').style.zIndex = 1;
3520
3521           }
3522           if (planlayer == "flat_introrate" ) {
3523
3524               document.getElementById('plandflat').style.display = "none";
3525               document.getElementById('plandflat').style.zIndex = 0;
3526               document.getElementById('plandflat_delayed').style.display = "none";
3527               document.getElementById('plandflat_delayed').style.zIndex = 0;
3528               document.getElementById('plandprorate').style.display = "none";
3529               document.getElementById('plandprorate').style.zIndex = 0;
3530               document.getElementById('plandprorate_calendar').style.display = "none";
3531               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3532               document.getElementById('plandprorate_delayed').style.display = "none";
3533               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3534               document.getElementById('plandprepaid').style.display = "none";
3535               document.getElementById('plandprepaid').style.zIndex = 0;
3536               document.getElementById('plandsubscription').style.display = "none";
3537               document.getElementById('plandsubscription').style.zIndex = 0;
3538               document.getElementById('plandsqlradacct_hour').style.display = "none";
3539               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3540               document.getElementById('plandsqlradacct_daily').style.display = "none";
3541               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3542               document.getElementById('plandvoip_cdr').style.display = "none";
3543               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3544               document.getElementById('plandvoip_inbound').style.display = "none";
3545               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3546               document.getElementById('plandvoip_tiered').style.display = "none";
3547               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3548               document.getElementById('plandcdr_termination').style.display = "none";
3549               document.getElementById('plandcdr_termination').style.zIndex = 0;
3550               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3551               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3552               document.getElementById('plandbulk_simple').style.display = "none";
3553               document.getElementById('plandbulk_simple').style.zIndex = 0;
3554               document.getElementById('plandbulk').style.display = "none";
3555               document.getElementById('plandbulk').style.zIndex = 0;
3556               document.getElementById('plandagent').style.display = "none";
3557               document.getElementById('plandagent').style.zIndex = 0;
3558               document.getElementById('plandagent_cdr').style.display = "none";
3559               document.getElementById('plandagent_cdr').style.zIndex = 0;
3560               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3561               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3562               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3563               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3564               document.getElementById('plandrt_time').style.display = "none";
3565               document.getElementById('plandrt_time').style.zIndex = 0;
3566               document.getElementById('plandsql_generic').style.display = "none";
3567               document.getElementById('plandsql_generic').style.zIndex = 0;
3568               document.getElementById('plandsql_external').style.display = "none";
3569               document.getElementById('plandsql_external').style.zIndex = 0;
3570               document.getElementById('plandflat_comission_cust').style.display = "none";
3571               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3572               document.getElementById('plandflat_comission').style.display = "none";
3573               document.getElementById('plandflat_comission').style.zIndex = 0;
3574               document.getElementById('plandflat_comission_pkg').style.display = "none";
3575               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3576
3577             document.getElementById('plandflat_introrate').style.display = "";
3578             document.getElementById('plandflat_introrate').style.zIndex = 1;
3579
3580           }
3581           if (planlayer == "prorate" ) {
3582
3583               document.getElementById('plandflat').style.display = "none";
3584               document.getElementById('plandflat').style.zIndex = 0;
3585               document.getElementById('plandflat_delayed').style.display = "none";
3586               document.getElementById('plandflat_delayed').style.zIndex = 0;
3587               document.getElementById('plandflat_introrate').style.display = "none";
3588               document.getElementById('plandflat_introrate').style.zIndex = 0;
3589               document.getElementById('plandprorate_calendar').style.display = "none";
3590               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3591               document.getElementById('plandprorate_delayed').style.display = "none";
3592               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3593               document.getElementById('plandprepaid').style.display = "none";
3594               document.getElementById('plandprepaid').style.zIndex = 0;
3595               document.getElementById('plandsubscription').style.display = "none";
3596               document.getElementById('plandsubscription').style.zIndex = 0;
3597               document.getElementById('plandsqlradacct_hour').style.display = "none";
3598               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3599               document.getElementById('plandsqlradacct_daily').style.display = "none";
3600               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3601               document.getElementById('plandvoip_cdr').style.display = "none";
3602               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3603               document.getElementById('plandvoip_inbound').style.display = "none";
3604               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3605               document.getElementById('plandvoip_tiered').style.display = "none";
3606               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3607               document.getElementById('plandcdr_termination').style.display = "none";
3608               document.getElementById('plandcdr_termination').style.zIndex = 0;
3609               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3610               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3611               document.getElementById('plandbulk_simple').style.display = "none";
3612               document.getElementById('plandbulk_simple').style.zIndex = 0;
3613               document.getElementById('plandbulk').style.display = "none";
3614               document.getElementById('plandbulk').style.zIndex = 0;
3615               document.getElementById('plandagent').style.display = "none";
3616               document.getElementById('plandagent').style.zIndex = 0;
3617               document.getElementById('plandagent_cdr').style.display = "none";
3618               document.getElementById('plandagent_cdr').style.zIndex = 0;
3619               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3620               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3621               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3622               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3623               document.getElementById('plandrt_time').style.display = "none";
3624               document.getElementById('plandrt_time').style.zIndex = 0;
3625               document.getElementById('plandsql_generic').style.display = "none";
3626               document.getElementById('plandsql_generic').style.zIndex = 0;
3627               document.getElementById('plandsql_external').style.display = "none";
3628               document.getElementById('plandsql_external').style.zIndex = 0;
3629               document.getElementById('plandflat_comission_cust').style.display = "none";
3630               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3631               document.getElementById('plandflat_comission').style.display = "none";
3632               document.getElementById('plandflat_comission').style.zIndex = 0;
3633               document.getElementById('plandflat_comission_pkg').style.display = "none";
3634               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3635
3636             document.getElementById('plandprorate').style.display = "";
3637             document.getElementById('plandprorate').style.zIndex = 1;
3638
3639           }
3640           if (planlayer == "prorate_calendar" ) {
3641
3642               document.getElementById('plandflat').style.display = "none";
3643               document.getElementById('plandflat').style.zIndex = 0;
3644               document.getElementById('plandflat_delayed').style.display = "none";
3645               document.getElementById('plandflat_delayed').style.zIndex = 0;
3646               document.getElementById('plandflat_introrate').style.display = "none";
3647               document.getElementById('plandflat_introrate').style.zIndex = 0;
3648               document.getElementById('plandprorate').style.display = "none";
3649               document.getElementById('plandprorate').style.zIndex = 0;
3650               document.getElementById('plandprorate_delayed').style.display = "none";
3651               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3652               document.getElementById('plandprepaid').style.display = "none";
3653               document.getElementById('plandprepaid').style.zIndex = 0;
3654               document.getElementById('plandsubscription').style.display = "none";
3655               document.getElementById('plandsubscription').style.zIndex = 0;
3656               document.getElementById('plandsqlradacct_hour').style.display = "none";
3657               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3658               document.getElementById('plandsqlradacct_daily').style.display = "none";
3659               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3660               document.getElementById('plandvoip_cdr').style.display = "none";
3661               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3662               document.getElementById('plandvoip_inbound').style.display = "none";
3663               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3664               document.getElementById('plandvoip_tiered').style.display = "none";
3665               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3666               document.getElementById('plandcdr_termination').style.display = "none";
3667               document.getElementById('plandcdr_termination').style.zIndex = 0;
3668               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3669               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3670               document.getElementById('plandbulk_simple').style.display = "none";
3671               document.getElementById('plandbulk_simple').style.zIndex = 0;
3672               document.getElementById('plandbulk').style.display = "none";
3673               document.getElementById('plandbulk').style.zIndex = 0;
3674               document.getElementById('plandagent').style.display = "none";
3675               document.getElementById('plandagent').style.zIndex = 0;
3676               document.getElementById('plandagent_cdr').style.display = "none";
3677               document.getElementById('plandagent_cdr').style.zIndex = 0;
3678               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3679               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3680               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3681               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3682               document.getElementById('plandrt_time').style.display = "none";
3683               document.getElementById('plandrt_time').style.zIndex = 0;
3684               document.getElementById('plandsql_generic').style.display = "none";
3685               document.getElementById('plandsql_generic').style.zIndex = 0;
3686               document.getElementById('plandsql_external').style.display = "none";
3687               document.getElementById('plandsql_external').style.zIndex = 0;
3688               document.getElementById('plandflat_comission_cust').style.display = "none";
3689               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3690               document.getElementById('plandflat_comission').style.display = "none";
3691               document.getElementById('plandflat_comission').style.zIndex = 0;
3692               document.getElementById('plandflat_comission_pkg').style.display = "none";
3693               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3694
3695             document.getElementById('plandprorate_calendar').style.display = "";
3696             document.getElementById('plandprorate_calendar').style.zIndex = 1;
3697
3698           }
3699           if (planlayer == "prorate_delayed" ) {
3700
3701               document.getElementById('plandflat').style.display = "none";
3702               document.getElementById('plandflat').style.zIndex = 0;
3703               document.getElementById('plandflat_delayed').style.display = "none";
3704               document.getElementById('plandflat_delayed').style.zIndex = 0;
3705               document.getElementById('plandflat_introrate').style.display = "none";
3706               document.getElementById('plandflat_introrate').style.zIndex = 0;
3707               document.getElementById('plandprorate').style.display = "none";
3708               document.getElementById('plandprorate').style.zIndex = 0;
3709               document.getElementById('plandprorate_calendar').style.display = "none";
3710               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3711               document.getElementById('plandprepaid').style.display = "none";
3712               document.getElementById('plandprepaid').style.zIndex = 0;
3713               document.getElementById('plandsubscription').style.display = "none";
3714               document.getElementById('plandsubscription').style.zIndex = 0;
3715               document.getElementById('plandsqlradacct_hour').style.display = "none";
3716               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3717               document.getElementById('plandsqlradacct_daily').style.display = "none";
3718               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3719               document.getElementById('plandvoip_cdr').style.display = "none";
3720               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3721               document.getElementById('plandvoip_inbound').style.display = "none";
3722               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3723               document.getElementById('plandvoip_tiered').style.display = "none";
3724               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3725               document.getElementById('plandcdr_termination').style.display = "none";
3726               document.getElementById('plandcdr_termination').style.zIndex = 0;
3727               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3728               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3729               document.getElementById('plandbulk_simple').style.display = "none";
3730               document.getElementById('plandbulk_simple').style.zIndex = 0;
3731               document.getElementById('plandbulk').style.display = "none";
3732               document.getElementById('plandbulk').style.zIndex = 0;
3733               document.getElementById('plandagent').style.display = "none";
3734               document.getElementById('plandagent').style.zIndex = 0;
3735               document.getElementById('plandagent_cdr').style.display = "none";
3736               document.getElementById('plandagent_cdr').style.zIndex = 0;
3737               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3738               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3739               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3740               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3741               document.getElementById('plandrt_time').style.display = "none";
3742               document.getElementById('plandrt_time').style.zIndex = 0;
3743               document.getElementById('plandsql_generic').style.display = "none";
3744               document.getElementById('plandsql_generic').style.zIndex = 0;
3745               document.getElementById('plandsql_external').style.display = "none";
3746               document.getElementById('plandsql_external').style.zIndex = 0;
3747               document.getElementById('plandflat_comission_cust').style.display = "none";
3748               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3749               document.getElementById('plandflat_comission').style.display = "none";
3750               document.getElementById('plandflat_comission').style.zIndex = 0;
3751               document.getElementById('plandflat_comission_pkg').style.display = "none";
3752               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3753
3754             document.getElementById('plandprorate_delayed').style.display = "";
3755             document.getElementById('plandprorate_delayed').style.zIndex = 1;
3756
3757           }
3758           if (planlayer == "prepaid" ) {
3759
3760               document.getElementById('plandflat').style.display = "none";
3761               document.getElementById('plandflat').style.zIndex = 0;
3762               document.getElementById('plandflat_delayed').style.display = "none";
3763               document.getElementById('plandflat_delayed').style.zIndex = 0;
3764               document.getElementById('plandflat_introrate').style.display = "none";
3765               document.getElementById('plandflat_introrate').style.zIndex = 0;
3766               document.getElementById('plandprorate').style.display = "none";
3767               document.getElementById('plandprorate').style.zIndex = 0;
3768               document.getElementById('plandprorate_calendar').style.display = "none";
3769               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3770               document.getElementById('plandprorate_delayed').style.display = "none";
3771               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3772               document.getElementById('plandsubscription').style.display = "none";
3773               document.getElementById('plandsubscription').style.zIndex = 0;
3774               document.getElementById('plandsqlradacct_hour').style.display = "none";
3775               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3776               document.getElementById('plandsqlradacct_daily').style.display = "none";
3777               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3778               document.getElementById('plandvoip_cdr').style.display = "none";
3779               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3780               document.getElementById('plandvoip_inbound').style.display = "none";
3781               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3782               document.getElementById('plandvoip_tiered').style.display = "none";
3783               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3784               document.getElementById('plandcdr_termination').style.display = "none";
3785               document.getElementById('plandcdr_termination').style.zIndex = 0;
3786               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3787               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3788               document.getElementById('plandbulk_simple').style.display = "none";
3789               document.getElementById('plandbulk_simple').style.zIndex = 0;
3790               document.getElementById('plandbulk').style.display = "none";
3791               document.getElementById('plandbulk').style.zIndex = 0;
3792               document.getElementById('plandagent').style.display = "none";
3793               document.getElementById('plandagent').style.zIndex = 0;
3794               document.getElementById('plandagent_cdr').style.display = "none";
3795               document.getElementById('plandagent_cdr').style.zIndex = 0;
3796               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3797               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3798               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3799               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3800               document.getElementById('plandrt_time').style.display = "none";
3801               document.getElementById('plandrt_time').style.zIndex = 0;
3802               document.getElementById('plandsql_generic').style.display = "none";
3803               document.getElementById('plandsql_generic').style.zIndex = 0;
3804               document.getElementById('plandsql_external').style.display = "none";
3805               document.getElementById('plandsql_external').style.zIndex = 0;
3806               document.getElementById('plandflat_comission_cust').style.display = "none";
3807               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3808               document.getElementById('plandflat_comission').style.display = "none";
3809               document.getElementById('plandflat_comission').style.zIndex = 0;
3810               document.getElementById('plandflat_comission_pkg').style.display = "none";
3811               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3812
3813             document.getElementById('plandprepaid').style.display = "";
3814             document.getElementById('plandprepaid').style.zIndex = 1;
3815
3816           }
3817           if (planlayer == "subscription" ) {
3818
3819               document.getElementById('plandflat').style.display = "none";
3820               document.getElementById('plandflat').style.zIndex = 0;
3821               document.getElementById('plandflat_delayed').style.display = "none";
3822               document.getElementById('plandflat_delayed').style.zIndex = 0;
3823               document.getElementById('plandflat_introrate').style.display = "none";
3824               document.getElementById('plandflat_introrate').style.zIndex = 0;
3825               document.getElementById('plandprorate').style.display = "none";
3826               document.getElementById('plandprorate').style.zIndex = 0;
3827               document.getElementById('plandprorate_calendar').style.display = "none";
3828               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3829               document.getElementById('plandprorate_delayed').style.display = "none";
3830               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3831               document.getElementById('plandprepaid').style.display = "none";
3832               document.getElementById('plandprepaid').style.zIndex = 0;
3833               document.getElementById('plandsqlradacct_hour').style.display = "none";
3834               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3835               document.getElementById('plandsqlradacct_daily').style.display = "none";
3836               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3837               document.getElementById('plandvoip_cdr').style.display = "none";
3838               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3839               document.getElementById('plandvoip_inbound').style.display = "none";
3840               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3841               document.getElementById('plandvoip_tiered').style.display = "none";
3842               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3843               document.getElementById('plandcdr_termination').style.display = "none";
3844               document.getElementById('plandcdr_termination').style.zIndex = 0;
3845               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3846               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3847               document.getElementById('plandbulk_simple').style.display = "none";
3848               document.getElementById('plandbulk_simple').style.zIndex = 0;
3849               document.getElementById('plandbulk').style.display = "none";
3850               document.getElementById('plandbulk').style.zIndex = 0;
3851               document.getElementById('plandagent').style.display = "none";
3852               document.getElementById('plandagent').style.zIndex = 0;
3853               document.getElementById('plandagent_cdr').style.display = "none";
3854               document.getElementById('plandagent_cdr').style.zIndex = 0;
3855               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3856               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3857               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3858               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3859               document.getElementById('plandrt_time').style.display = "none";
3860               document.getElementById('plandrt_time').style.zIndex = 0;
3861               document.getElementById('plandsql_generic').style.display = "none";
3862               document.getElementById('plandsql_generic').style.zIndex = 0;
3863               document.getElementById('plandsql_external').style.display = "none";
3864               document.getElementById('plandsql_external').style.zIndex = 0;
3865               document.getElementById('plandflat_comission_cust').style.display = "none";
3866               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3867               document.getElementById('plandflat_comission').style.display = "none";
3868               document.getElementById('plandflat_comission').style.zIndex = 0;
3869               document.getElementById('plandflat_comission_pkg').style.display = "none";
3870               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3871
3872             document.getElementById('plandsubscription').style.display = "";
3873             document.getElementById('plandsubscription').style.zIndex = 1;
3874
3875           }
3876           if (planlayer == "sqlradacct_hour" ) {
3877
3878               document.getElementById('plandflat').style.display = "none";
3879               document.getElementById('plandflat').style.zIndex = 0;
3880               document.getElementById('plandflat_delayed').style.display = "none";
3881               document.getElementById('plandflat_delayed').style.zIndex = 0;
3882               document.getElementById('plandflat_introrate').style.display = "none";
3883               document.getElementById('plandflat_introrate').style.zIndex = 0;
3884               document.getElementById('plandprorate').style.display = "none";
3885               document.getElementById('plandprorate').style.zIndex = 0;
3886               document.getElementById('plandprorate_calendar').style.display = "none";
3887               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3888               document.getElementById('plandprorate_delayed').style.display = "none";
3889               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3890               document.getElementById('plandprepaid').style.display = "none";
3891               document.getElementById('plandprepaid').style.zIndex = 0;
3892               document.getElementById('plandsubscription').style.display = "none";
3893               document.getElementById('plandsubscription').style.zIndex = 0;
3894               document.getElementById('plandsqlradacct_daily').style.display = "none";
3895               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
3896               document.getElementById('plandvoip_cdr').style.display = "none";
3897               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3898               document.getElementById('plandvoip_inbound').style.display = "none";
3899               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3900               document.getElementById('plandvoip_tiered').style.display = "none";
3901               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3902               document.getElementById('plandcdr_termination').style.display = "none";
3903               document.getElementById('plandcdr_termination').style.zIndex = 0;
3904               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3905               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3906               document.getElementById('plandbulk_simple').style.display = "none";
3907               document.getElementById('plandbulk_simple').style.zIndex = 0;
3908               document.getElementById('plandbulk').style.display = "none";
3909               document.getElementById('plandbulk').style.zIndex = 0;
3910               document.getElementById('plandagent').style.display = "none";
3911               document.getElementById('plandagent').style.zIndex = 0;
3912               document.getElementById('plandagent_cdr').style.display = "none";
3913               document.getElementById('plandagent_cdr').style.zIndex = 0;
3914               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3915               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3916               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3917               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3918               document.getElementById('plandrt_time').style.display = "none";
3919               document.getElementById('plandrt_time').style.zIndex = 0;
3920               document.getElementById('plandsql_generic').style.display = "none";
3921               document.getElementById('plandsql_generic').style.zIndex = 0;
3922               document.getElementById('plandsql_external').style.display = "none";
3923               document.getElementById('plandsql_external').style.zIndex = 0;
3924               document.getElementById('plandflat_comission_cust').style.display = "none";
3925               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3926               document.getElementById('plandflat_comission').style.display = "none";
3927               document.getElementById('plandflat_comission').style.zIndex = 0;
3928               document.getElementById('plandflat_comission_pkg').style.display = "none";
3929               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3930
3931             document.getElementById('plandsqlradacct_hour').style.display = "";
3932             document.getElementById('plandsqlradacct_hour').style.zIndex = 1;
3933
3934           }
3935           if (planlayer == "sqlradacct_daily" ) {
3936
3937               document.getElementById('plandflat').style.display = "none";
3938               document.getElementById('plandflat').style.zIndex = 0;
3939               document.getElementById('plandflat_delayed').style.display = "none";
3940               document.getElementById('plandflat_delayed').style.zIndex = 0;
3941               document.getElementById('plandflat_introrate').style.display = "none";
3942               document.getElementById('plandflat_introrate').style.zIndex = 0;
3943               document.getElementById('plandprorate').style.display = "none";
3944               document.getElementById('plandprorate').style.zIndex = 0;
3945               document.getElementById('plandprorate_calendar').style.display = "none";
3946               document.getElementById('plandprorate_calendar').style.zIndex = 0;
3947               document.getElementById('plandprorate_delayed').style.display = "none";
3948               document.getElementById('plandprorate_delayed').style.zIndex = 0;
3949               document.getElementById('plandprepaid').style.display = "none";
3950               document.getElementById('plandprepaid').style.zIndex = 0;
3951               document.getElementById('plandsubscription').style.display = "none";
3952               document.getElementById('plandsubscription').style.zIndex = 0;
3953               document.getElementById('plandsqlradacct_hour').style.display = "none";
3954               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
3955               document.getElementById('plandvoip_cdr').style.display = "none";
3956               document.getElementById('plandvoip_cdr').style.zIndex = 0;
3957               document.getElementById('plandvoip_inbound').style.display = "none";
3958               document.getElementById('plandvoip_inbound').style.zIndex = 0;
3959               document.getElementById('plandvoip_tiered').style.display = "none";
3960               document.getElementById('plandvoip_tiered').style.zIndex = 0;
3961               document.getElementById('plandcdr_termination').style.display = "none";
3962               document.getElementById('plandcdr_termination').style.zIndex = 0;
3963               document.getElementById('plandprepaid_nibblebill').style.display = "none";
3964               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
3965               document.getElementById('plandbulk_simple').style.display = "none";
3966               document.getElementById('plandbulk_simple').style.zIndex = 0;
3967               document.getElementById('plandbulk').style.display = "none";
3968               document.getElementById('plandbulk').style.zIndex = 0;
3969               document.getElementById('plandagent').style.display = "none";
3970               document.getElementById('plandagent').style.zIndex = 0;
3971               document.getElementById('plandagent_cdr').style.display = "none";
3972               document.getElementById('plandagent_cdr').style.zIndex = 0;
3973               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
3974               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
3975               document.getElementById('plandtorrus_bw_usage').style.display = "none";
3976               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
3977               document.getElementById('plandrt_time').style.display = "none";
3978               document.getElementById('plandrt_time').style.zIndex = 0;
3979               document.getElementById('plandsql_generic').style.display = "none";
3980               document.getElementById('plandsql_generic').style.zIndex = 0;
3981               document.getElementById('plandsql_external').style.display = "none";
3982               document.getElementById('plandsql_external').style.zIndex = 0;
3983               document.getElementById('plandflat_comission_cust').style.display = "none";
3984               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
3985               document.getElementById('plandflat_comission').style.display = "none";
3986               document.getElementById('plandflat_comission').style.zIndex = 0;
3987               document.getElementById('plandflat_comission_pkg').style.display = "none";
3988               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
3989
3990             document.getElementById('plandsqlradacct_daily').style.display = "";
3991             document.getElementById('plandsqlradacct_daily').style.zIndex = 1;
3992
3993           }
3994           if (planlayer == "voip_cdr" ) {
3995
3996               document.getElementById('plandflat').style.display = "none";
3997               document.getElementById('plandflat').style.zIndex = 0;
3998               document.getElementById('plandflat_delayed').style.display = "none";
3999               document.getElementById('plandflat_delayed').style.zIndex = 0;
4000               document.getElementById('plandflat_introrate').style.display = "none";
4001               document.getElementById('plandflat_introrate').style.zIndex = 0;
4002               document.getElementById('plandprorate').style.display = "none";
4003               document.getElementById('plandprorate').style.zIndex = 0;
4004               document.getElementById('plandprorate_calendar').style.display = "none";
4005               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4006               document.getElementById('plandprorate_delayed').style.display = "none";
4007               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4008               document.getElementById('plandprepaid').style.display = "none";
4009               document.getElementById('plandprepaid').style.zIndex = 0;
4010               document.getElementById('plandsubscription').style.display = "none";
4011               document.getElementById('plandsubscription').style.zIndex = 0;
4012               document.getElementById('plandsqlradacct_hour').style.display = "none";
4013               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4014               document.getElementById('plandsqlradacct_daily').style.display = "none";
4015               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4016               document.getElementById('plandvoip_inbound').style.display = "none";
4017               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4018               document.getElementById('plandvoip_tiered').style.display = "none";
4019               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4020               document.getElementById('plandcdr_termination').style.display = "none";
4021               document.getElementById('plandcdr_termination').style.zIndex = 0;
4022               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4023               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4024               document.getElementById('plandbulk_simple').style.display = "none";
4025               document.getElementById('plandbulk_simple').style.zIndex = 0;
4026               document.getElementById('plandbulk').style.display = "none";
4027               document.getElementById('plandbulk').style.zIndex = 0;
4028               document.getElementById('plandagent').style.display = "none";
4029               document.getElementById('plandagent').style.zIndex = 0;
4030               document.getElementById('plandagent_cdr').style.display = "none";
4031               document.getElementById('plandagent_cdr').style.zIndex = 0;
4032               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4033               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4034               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4035               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4036               document.getElementById('plandrt_time').style.display = "none";
4037               document.getElementById('plandrt_time').style.zIndex = 0;
4038               document.getElementById('plandsql_generic').style.display = "none";
4039               document.getElementById('plandsql_generic').style.zIndex = 0;
4040               document.getElementById('plandsql_external').style.display = "none";
4041               document.getElementById('plandsql_external').style.zIndex = 0;
4042               document.getElementById('plandflat_comission_cust').style.display = "none";
4043               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4044               document.getElementById('plandflat_comission').style.display = "none";
4045               document.getElementById('plandflat_comission').style.zIndex = 0;
4046               document.getElementById('plandflat_comission_pkg').style.display = "none";
4047               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4048
4049             document.getElementById('plandvoip_cdr').style.display = "";
4050             document.getElementById('plandvoip_cdr').style.zIndex = 1;
4051
4052           }
4053           if (planlayer == "voip_inbound" ) {
4054
4055               document.getElementById('plandflat').style.display = "none";
4056               document.getElementById('plandflat').style.zIndex = 0;
4057               document.getElementById('plandflat_delayed').style.display = "none";
4058               document.getElementById('plandflat_delayed').style.zIndex = 0;
4059               document.getElementById('plandflat_introrate').style.display = "none";
4060               document.getElementById('plandflat_introrate').style.zIndex = 0;
4061               document.getElementById('plandprorate').style.display = "none";
4062               document.getElementById('plandprorate').style.zIndex = 0;
4063               document.getElementById('plandprorate_calendar').style.display = "none";
4064               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4065               document.getElementById('plandprorate_delayed').style.display = "none";
4066               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4067               document.getElementById('plandprepaid').style.display = "none";
4068               document.getElementById('plandprepaid').style.zIndex = 0;
4069               document.getElementById('plandsubscription').style.display = "none";
4070               document.getElementById('plandsubscription').style.zIndex = 0;
4071               document.getElementById('plandsqlradacct_hour').style.display = "none";
4072               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4073               document.getElementById('plandsqlradacct_daily').style.display = "none";
4074               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4075               document.getElementById('plandvoip_cdr').style.display = "none";
4076               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4077               document.getElementById('plandvoip_tiered').style.display = "none";
4078               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4079               document.getElementById('plandcdr_termination').style.display = "none";
4080               document.getElementById('plandcdr_termination').style.zIndex = 0;
4081               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4082               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4083               document.getElementById('plandbulk_simple').style.display = "none";
4084               document.getElementById('plandbulk_simple').style.zIndex = 0;
4085               document.getElementById('plandbulk').style.display = "none";
4086               document.getElementById('plandbulk').style.zIndex = 0;
4087               document.getElementById('plandagent').style.display = "none";
4088               document.getElementById('plandagent').style.zIndex = 0;
4089               document.getElementById('plandagent_cdr').style.display = "none";
4090               document.getElementById('plandagent_cdr').style.zIndex = 0;
4091               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4092               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4093               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4094               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4095               document.getElementById('plandrt_time').style.display = "none";
4096               document.getElementById('plandrt_time').style.zIndex = 0;
4097               document.getElementById('plandsql_generic').style.display = "none";
4098               document.getElementById('plandsql_generic').style.zIndex = 0;
4099               document.getElementById('plandsql_external').style.display = "none";
4100               document.getElementById('plandsql_external').style.zIndex = 0;
4101               document.getElementById('plandflat_comission_cust').style.display = "none";
4102               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4103               document.getElementById('plandflat_comission').style.display = "none";
4104               document.getElementById('plandflat_comission').style.zIndex = 0;
4105               document.getElementById('plandflat_comission_pkg').style.display = "none";
4106               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4107
4108             document.getElementById('plandvoip_inbound').style.display = "";
4109             document.getElementById('plandvoip_inbound').style.zIndex = 1;
4110
4111           }
4112           if (planlayer == "voip_tiered" ) {
4113
4114               document.getElementById('plandflat').style.display = "none";
4115               document.getElementById('plandflat').style.zIndex = 0;
4116               document.getElementById('plandflat_delayed').style.display = "none";
4117               document.getElementById('plandflat_delayed').style.zIndex = 0;
4118               document.getElementById('plandflat_introrate').style.display = "none";
4119               document.getElementById('plandflat_introrate').style.zIndex = 0;
4120               document.getElementById('plandprorate').style.display = "none";
4121               document.getElementById('plandprorate').style.zIndex = 0;
4122               document.getElementById('plandprorate_calendar').style.display = "none";
4123               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4124               document.getElementById('plandprorate_delayed').style.display = "none";
4125               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4126               document.getElementById('plandprepaid').style.display = "none";
4127               document.getElementById('plandprepaid').style.zIndex = 0;
4128               document.getElementById('plandsubscription').style.display = "none";
4129               document.getElementById('plandsubscription').style.zIndex = 0;
4130               document.getElementById('plandsqlradacct_hour').style.display = "none";
4131               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4132               document.getElementById('plandsqlradacct_daily').style.display = "none";
4133               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4134               document.getElementById('plandvoip_cdr').style.display = "none";
4135               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4136               document.getElementById('plandvoip_inbound').style.display = "none";
4137               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4138               document.getElementById('plandcdr_termination').style.display = "none";
4139               document.getElementById('plandcdr_termination').style.zIndex = 0;
4140               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4141               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4142               document.getElementById('plandbulk_simple').style.display = "none";
4143               document.getElementById('plandbulk_simple').style.zIndex = 0;
4144               document.getElementById('plandbulk').style.display = "none";
4145               document.getElementById('plandbulk').style.zIndex = 0;
4146               document.getElementById('plandagent').style.display = "none";
4147               document.getElementById('plandagent').style.zIndex = 0;
4148               document.getElementById('plandagent_cdr').style.display = "none";
4149               document.getElementById('plandagent_cdr').style.zIndex = 0;
4150               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4151               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4152               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4153               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4154               document.getElementById('plandrt_time').style.display = "none";
4155               document.getElementById('plandrt_time').style.zIndex = 0;
4156               document.getElementById('plandsql_generic').style.display = "none";
4157               document.getElementById('plandsql_generic').style.zIndex = 0;
4158               document.getElementById('plandsql_external').style.display = "none";
4159               document.getElementById('plandsql_external').style.zIndex = 0;
4160               document.getElementById('plandflat_comission_cust').style.display = "none";
4161               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4162               document.getElementById('plandflat_comission').style.display = "none";
4163               document.getElementById('plandflat_comission').style.zIndex = 0;
4164               document.getElementById('plandflat_comission_pkg').style.display = "none";
4165               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4166
4167             document.getElementById('plandvoip_tiered').style.display = "";
4168             document.getElementById('plandvoip_tiered').style.zIndex = 1;
4169
4170           }
4171           if (planlayer == "cdr_termination" ) {
4172
4173               document.getElementById('plandflat').style.display = "none";
4174               document.getElementById('plandflat').style.zIndex = 0;
4175               document.getElementById('plandflat_delayed').style.display = "none";
4176               document.getElementById('plandflat_delayed').style.zIndex = 0;
4177               document.getElementById('plandflat_introrate').style.display = "none";
4178               document.getElementById('plandflat_introrate').style.zIndex = 0;
4179               document.getElementById('plandprorate').style.display = "none";
4180               document.getElementById('plandprorate').style.zIndex = 0;
4181               document.getElementById('plandprorate_calendar').style.display = "none";
4182               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4183               document.getElementById('plandprorate_delayed').style.display = "none";
4184               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4185               document.getElementById('plandprepaid').style.display = "none";
4186               document.getElementById('plandprepaid').style.zIndex = 0;
4187               document.getElementById('plandsubscription').style.display = "none";
4188               document.getElementById('plandsubscription').style.zIndex = 0;
4189               document.getElementById('plandsqlradacct_hour').style.display = "none";
4190               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4191               document.getElementById('plandsqlradacct_daily').style.display = "none";
4192               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4193               document.getElementById('plandvoip_cdr').style.display = "none";
4194               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4195               document.getElementById('plandvoip_inbound').style.display = "none";
4196               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4197               document.getElementById('plandvoip_tiered').style.display = "none";
4198               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4199               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4200               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4201               document.getElementById('plandbulk_simple').style.display = "none";
4202               document.getElementById('plandbulk_simple').style.zIndex = 0;
4203               document.getElementById('plandbulk').style.display = "none";
4204               document.getElementById('plandbulk').style.zIndex = 0;
4205               document.getElementById('plandagent').style.display = "none";
4206               document.getElementById('plandagent').style.zIndex = 0;
4207               document.getElementById('plandagent_cdr').style.display = "none";
4208               document.getElementById('plandagent_cdr').style.zIndex = 0;
4209               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4210               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4211               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4212               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4213               document.getElementById('plandrt_time').style.display = "none";
4214               document.getElementById('plandrt_time').style.zIndex = 0;
4215               document.getElementById('plandsql_generic').style.display = "none";
4216               document.getElementById('plandsql_generic').style.zIndex = 0;
4217               document.getElementById('plandsql_external').style.display = "none";
4218               document.getElementById('plandsql_external').style.zIndex = 0;
4219               document.getElementById('plandflat_comission_cust').style.display = "none";
4220               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4221               document.getElementById('plandflat_comission').style.display = "none";
4222               document.getElementById('plandflat_comission').style.zIndex = 0;
4223               document.getElementById('plandflat_comission_pkg').style.display = "none";
4224               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4225
4226             document.getElementById('plandcdr_termination').style.display = "";
4227             document.getElementById('plandcdr_termination').style.zIndex = 1;
4228
4229           }
4230           if (planlayer == "prepaid_nibblebill" ) {
4231
4232               document.getElementById('plandflat').style.display = "none";
4233               document.getElementById('plandflat').style.zIndex = 0;
4234               document.getElementById('plandflat_delayed').style.display = "none";
4235               document.getElementById('plandflat_delayed').style.zIndex = 0;
4236               document.getElementById('plandflat_introrate').style.display = "none";
4237               document.getElementById('plandflat_introrate').style.zIndex = 0;
4238               document.getElementById('plandprorate').style.display = "none";
4239               document.getElementById('plandprorate').style.zIndex = 0;
4240               document.getElementById('plandprorate_calendar').style.display = "none";
4241               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4242               document.getElementById('plandprorate_delayed').style.display = "none";
4243               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4244               document.getElementById('plandprepaid').style.display = "none";
4245               document.getElementById('plandprepaid').style.zIndex = 0;
4246               document.getElementById('plandsubscription').style.display = "none";
4247               document.getElementById('plandsubscription').style.zIndex = 0;
4248               document.getElementById('plandsqlradacct_hour').style.display = "none";
4249               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4250               document.getElementById('plandsqlradacct_daily').style.display = "none";
4251               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4252               document.getElementById('plandvoip_cdr').style.display = "none";
4253               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4254               document.getElementById('plandvoip_inbound').style.display = "none";
4255               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4256               document.getElementById('plandvoip_tiered').style.display = "none";
4257               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4258               document.getElementById('plandcdr_termination').style.display = "none";
4259               document.getElementById('plandcdr_termination').style.zIndex = 0;
4260               document.getElementById('plandbulk_simple').style.display = "none";
4261               document.getElementById('plandbulk_simple').style.zIndex = 0;
4262               document.getElementById('plandbulk').style.display = "none";
4263               document.getElementById('plandbulk').style.zIndex = 0;
4264               document.getElementById('plandagent').style.display = "none";
4265               document.getElementById('plandagent').style.zIndex = 0;
4266               document.getElementById('plandagent_cdr').style.display = "none";
4267               document.getElementById('plandagent_cdr').style.zIndex = 0;
4268               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4269               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4270               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4271               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4272               document.getElementById('plandrt_time').style.display = "none";
4273               document.getElementById('plandrt_time').style.zIndex = 0;
4274               document.getElementById('plandsql_generic').style.display = "none";
4275               document.getElementById('plandsql_generic').style.zIndex = 0;
4276               document.getElementById('plandsql_external').style.display = "none";
4277               document.getElementById('plandsql_external').style.zIndex = 0;
4278               document.getElementById('plandflat_comission_cust').style.display = "none";
4279               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4280               document.getElementById('plandflat_comission').style.display = "none";
4281               document.getElementById('plandflat_comission').style.zIndex = 0;
4282               document.getElementById('plandflat_comission_pkg').style.display = "none";
4283               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4284
4285             document.getElementById('plandprepaid_nibblebill').style.display = "";
4286             document.getElementById('plandprepaid_nibblebill').style.zIndex = 1;
4287
4288           }
4289           if (planlayer == "bulk_simple" ) {
4290
4291               document.getElementById('plandflat').style.display = "none";
4292               document.getElementById('plandflat').style.zIndex = 0;
4293               document.getElementById('plandflat_delayed').style.display = "none";
4294               document.getElementById('plandflat_delayed').style.zIndex = 0;
4295               document.getElementById('plandflat_introrate').style.display = "none";
4296               document.getElementById('plandflat_introrate').style.zIndex = 0;
4297               document.getElementById('plandprorate').style.display = "none";
4298               document.getElementById('plandprorate').style.zIndex = 0;
4299               document.getElementById('plandprorate_calendar').style.display = "none";
4300               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4301               document.getElementById('plandprorate_delayed').style.display = "none";
4302               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4303               document.getElementById('plandprepaid').style.display = "none";
4304               document.getElementById('plandprepaid').style.zIndex = 0;
4305               document.getElementById('plandsubscription').style.display = "none";
4306               document.getElementById('plandsubscription').style.zIndex = 0;
4307               document.getElementById('plandsqlradacct_hour').style.display = "none";
4308               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4309               document.getElementById('plandsqlradacct_daily').style.display = "none";
4310               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4311               document.getElementById('plandvoip_cdr').style.display = "none";
4312               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4313               document.getElementById('plandvoip_inbound').style.display = "none";
4314               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4315               document.getElementById('plandvoip_tiered').style.display = "none";
4316               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4317               document.getElementById('plandcdr_termination').style.display = "none";
4318               document.getElementById('plandcdr_termination').style.zIndex = 0;
4319               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4320               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4321               document.getElementById('plandbulk').style.display = "none";
4322               document.getElementById('plandbulk').style.zIndex = 0;
4323               document.getElementById('plandagent').style.display = "none";
4324               document.getElementById('plandagent').style.zIndex = 0;
4325               document.getElementById('plandagent_cdr').style.display = "none";
4326               document.getElementById('plandagent_cdr').style.zIndex = 0;
4327               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4328               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4329               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4330               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4331               document.getElementById('plandrt_time').style.display = "none";
4332               document.getElementById('plandrt_time').style.zIndex = 0;
4333               document.getElementById('plandsql_generic').style.display = "none";
4334               document.getElementById('plandsql_generic').style.zIndex = 0;
4335               document.getElementById('plandsql_external').style.display = "none";
4336               document.getElementById('plandsql_external').style.zIndex = 0;
4337               document.getElementById('plandflat_comission_cust').style.display = "none";
4338               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4339               document.getElementById('plandflat_comission').style.display = "none";
4340               document.getElementById('plandflat_comission').style.zIndex = 0;
4341               document.getElementById('plandflat_comission_pkg').style.display = "none";
4342               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4343
4344             document.getElementById('plandbulk_simple').style.display = "";
4345             document.getElementById('plandbulk_simple').style.zIndex = 1;
4346
4347           }
4348           if (planlayer == "bulk" ) {
4349
4350               document.getElementById('plandflat').style.display = "none";
4351               document.getElementById('plandflat').style.zIndex = 0;
4352               document.getElementById('plandflat_delayed').style.display = "none";
4353               document.getElementById('plandflat_delayed').style.zIndex = 0;
4354               document.getElementById('plandflat_introrate').style.display = "none";
4355               document.getElementById('plandflat_introrate').style.zIndex = 0;
4356               document.getElementById('plandprorate').style.display = "none";
4357               document.getElementById('plandprorate').style.zIndex = 0;
4358               document.getElementById('plandprorate_calendar').style.display = "none";
4359               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4360               document.getElementById('plandprorate_delayed').style.display = "none";
4361               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4362               document.getElementById('plandprepaid').style.display = "none";
4363               document.getElementById('plandprepaid').style.zIndex = 0;
4364               document.getElementById('plandsubscription').style.display = "none";
4365               document.getElementById('plandsubscription').style.zIndex = 0;
4366               document.getElementById('plandsqlradacct_hour').style.display = "none";
4367               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4368               document.getElementById('plandsqlradacct_daily').style.display = "none";
4369               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4370               document.getElementById('plandvoip_cdr').style.display = "none";
4371               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4372               document.getElementById('plandvoip_inbound').style.display = "none";
4373               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4374               document.getElementById('plandvoip_tiered').style.display = "none";
4375               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4376               document.getElementById('plandcdr_termination').style.display = "none";
4377               document.getElementById('plandcdr_termination').style.zIndex = 0;
4378               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4379               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4380               document.getElementById('plandbulk_simple').style.display = "none";
4381               document.getElementById('plandbulk_simple').style.zIndex = 0;
4382               document.getElementById('plandagent').style.display = "none";
4383               document.getElementById('plandagent').style.zIndex = 0;
4384               document.getElementById('plandagent_cdr').style.display = "none";
4385               document.getElementById('plandagent_cdr').style.zIndex = 0;
4386               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4387               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4388               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4389               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4390               document.getElementById('plandrt_time').style.display = "none";
4391               document.getElementById('plandrt_time').style.zIndex = 0;
4392               document.getElementById('plandsql_generic').style.display = "none";
4393               document.getElementById('plandsql_generic').style.zIndex = 0;
4394               document.getElementById('plandsql_external').style.display = "none";
4395               document.getElementById('plandsql_external').style.zIndex = 0;
4396               document.getElementById('plandflat_comission_cust').style.display = "none";
4397               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4398               document.getElementById('plandflat_comission').style.display = "none";
4399               document.getElementById('plandflat_comission').style.zIndex = 0;
4400               document.getElementById('plandflat_comission_pkg').style.display = "none";
4401               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4402
4403             document.getElementById('plandbulk').style.display = "";
4404             document.getElementById('plandbulk').style.zIndex = 1;
4405
4406           }
4407           if (planlayer == "agent" ) {
4408
4409               document.getElementById('plandflat').style.display = "none";
4410               document.getElementById('plandflat').style.zIndex = 0;
4411               document.getElementById('plandflat_delayed').style.display = "none";
4412               document.getElementById('plandflat_delayed').style.zIndex = 0;
4413               document.getElementById('plandflat_introrate').style.display = "none";
4414               document.getElementById('plandflat_introrate').style.zIndex = 0;
4415               document.getElementById('plandprorate').style.display = "none";
4416               document.getElementById('plandprorate').style.zIndex = 0;
4417               document.getElementById('plandprorate_calendar').style.display = "none";
4418               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4419               document.getElementById('plandprorate_delayed').style.display = "none";
4420               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4421               document.getElementById('plandprepaid').style.display = "none";
4422               document.getElementById('plandprepaid').style.zIndex = 0;
4423               document.getElementById('plandsubscription').style.display = "none";
4424               document.getElementById('plandsubscription').style.zIndex = 0;
4425               document.getElementById('plandsqlradacct_hour').style.display = "none";
4426               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4427               document.getElementById('plandsqlradacct_daily').style.display = "none";
4428               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4429               document.getElementById('plandvoip_cdr').style.display = "none";
4430               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4431               document.getElementById('plandvoip_inbound').style.display = "none";
4432               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4433               document.getElementById('plandvoip_tiered').style.display = "none";
4434               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4435               document.getElementById('plandcdr_termination').style.display = "none";
4436               document.getElementById('plandcdr_termination').style.zIndex = 0;
4437               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4438               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4439               document.getElementById('plandbulk_simple').style.display = "none";
4440               document.getElementById('plandbulk_simple').style.zIndex = 0;
4441               document.getElementById('plandbulk').style.display = "none";
4442               document.getElementById('plandbulk').style.zIndex = 0;
4443               document.getElementById('plandagent_cdr').style.display = "none";
4444               document.getElementById('plandagent_cdr').style.zIndex = 0;
4445               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4446               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4447               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4448               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4449               document.getElementById('plandrt_time').style.display = "none";
4450               document.getElementById('plandrt_time').style.zIndex = 0;
4451               document.getElementById('plandsql_generic').style.display = "none";
4452               document.getElementById('plandsql_generic').style.zIndex = 0;
4453               document.getElementById('plandsql_external').style.display = "none";
4454               document.getElementById('plandsql_external').style.zIndex = 0;
4455               document.getElementById('plandflat_comission_cust').style.display = "none";
4456               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4457               document.getElementById('plandflat_comission').style.display = "none";
4458               document.getElementById('plandflat_comission').style.zIndex = 0;
4459               document.getElementById('plandflat_comission_pkg').style.display = "none";
4460               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4461
4462             document.getElementById('plandagent').style.display = "";
4463             document.getElementById('plandagent').style.zIndex = 1;
4464
4465           }
4466           if (planlayer == "agent_cdr" ) {
4467
4468               document.getElementById('plandflat').style.display = "none";
4469               document.getElementById('plandflat').style.zIndex = 0;
4470               document.getElementById('plandflat_delayed').style.display = "none";
4471               document.getElementById('plandflat_delayed').style.zIndex = 0;
4472               document.getElementById('plandflat_introrate').style.display = "none";
4473               document.getElementById('plandflat_introrate').style.zIndex = 0;
4474               document.getElementById('plandprorate').style.display = "none";
4475               document.getElementById('plandprorate').style.zIndex = 0;
4476               document.getElementById('plandprorate_calendar').style.display = "none";
4477               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4478               document.getElementById('plandprorate_delayed').style.display = "none";
4479               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4480               document.getElementById('plandprepaid').style.display = "none";
4481               document.getElementById('plandprepaid').style.zIndex = 0;
4482               document.getElementById('plandsubscription').style.display = "none";
4483               document.getElementById('plandsubscription').style.zIndex = 0;
4484               document.getElementById('plandsqlradacct_hour').style.display = "none";
4485               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4486               document.getElementById('plandsqlradacct_daily').style.display = "none";
4487               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4488               document.getElementById('plandvoip_cdr').style.display = "none";
4489               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4490               document.getElementById('plandvoip_inbound').style.display = "none";
4491               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4492               document.getElementById('plandvoip_tiered').style.display = "none";
4493               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4494               document.getElementById('plandcdr_termination').style.display = "none";
4495               document.getElementById('plandcdr_termination').style.zIndex = 0;
4496               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4497               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4498               document.getElementById('plandbulk_simple').style.display = "none";
4499               document.getElementById('plandbulk_simple').style.zIndex = 0;
4500               document.getElementById('plandbulk').style.display = "none";
4501               document.getElementById('plandbulk').style.zIndex = 0;
4502               document.getElementById('plandagent').style.display = "none";
4503               document.getElementById('plandagent').style.zIndex = 0;
4504               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4505               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4506               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4507               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4508               document.getElementById('plandrt_time').style.display = "none";
4509               document.getElementById('plandrt_time').style.zIndex = 0;
4510               document.getElementById('plandsql_generic').style.display = "none";
4511               document.getElementById('plandsql_generic').style.zIndex = 0;
4512               document.getElementById('plandsql_external').style.display = "none";
4513               document.getElementById('plandsql_external').style.zIndex = 0;
4514               document.getElementById('plandflat_comission_cust').style.display = "none";
4515               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4516               document.getElementById('plandflat_comission').style.display = "none";
4517               document.getElementById('plandflat_comission').style.zIndex = 0;
4518               document.getElementById('plandflat_comission_pkg').style.display = "none";
4519               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4520
4521             document.getElementById('plandagent_cdr').style.display = "";
4522             document.getElementById('plandagent_cdr').style.zIndex = 1;
4523
4524           }
4525           if (planlayer == "torrus_bw_percentile" ) {
4526
4527               document.getElementById('plandflat').style.display = "none";
4528               document.getElementById('plandflat').style.zIndex = 0;
4529               document.getElementById('plandflat_delayed').style.display = "none";
4530               document.getElementById('plandflat_delayed').style.zIndex = 0;
4531               document.getElementById('plandflat_introrate').style.display = "none";
4532               document.getElementById('plandflat_introrate').style.zIndex = 0;
4533               document.getElementById('plandprorate').style.display = "none";
4534               document.getElementById('plandprorate').style.zIndex = 0;
4535               document.getElementById('plandprorate_calendar').style.display = "none";
4536               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4537               document.getElementById('plandprorate_delayed').style.display = "none";
4538               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4539               document.getElementById('plandprepaid').style.display = "none";
4540               document.getElementById('plandprepaid').style.zIndex = 0;
4541               document.getElementById('plandsubscription').style.display = "none";
4542               document.getElementById('plandsubscription').style.zIndex = 0;
4543               document.getElementById('plandsqlradacct_hour').style.display = "none";
4544               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4545               document.getElementById('plandsqlradacct_daily').style.display = "none";
4546               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4547               document.getElementById('plandvoip_cdr').style.display = "none";
4548               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4549               document.getElementById('plandvoip_inbound').style.display = "none";
4550               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4551               document.getElementById('plandvoip_tiered').style.display = "none";
4552               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4553               document.getElementById('plandcdr_termination').style.display = "none";
4554               document.getElementById('plandcdr_termination').style.zIndex = 0;
4555               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4556               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4557               document.getElementById('plandbulk_simple').style.display = "none";
4558               document.getElementById('plandbulk_simple').style.zIndex = 0;
4559               document.getElementById('plandbulk').style.display = "none";
4560               document.getElementById('plandbulk').style.zIndex = 0;
4561               document.getElementById('plandagent').style.display = "none";
4562               document.getElementById('plandagent').style.zIndex = 0;
4563               document.getElementById('plandagent_cdr').style.display = "none";
4564               document.getElementById('plandagent_cdr').style.zIndex = 0;
4565               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4566               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4567               document.getElementById('plandrt_time').style.display = "none";
4568               document.getElementById('plandrt_time').style.zIndex = 0;
4569               document.getElementById('plandsql_generic').style.display = "none";
4570               document.getElementById('plandsql_generic').style.zIndex = 0;
4571               document.getElementById('plandsql_external').style.display = "none";
4572               document.getElementById('plandsql_external').style.zIndex = 0;
4573               document.getElementById('plandflat_comission_cust').style.display = "none";
4574               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4575               document.getElementById('plandflat_comission').style.display = "none";
4576               document.getElementById('plandflat_comission').style.zIndex = 0;
4577               document.getElementById('plandflat_comission_pkg').style.display = "none";
4578               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4579
4580             document.getElementById('plandtorrus_bw_percentile').style.display = "";
4581             document.getElementById('plandtorrus_bw_percentile').style.zIndex = 1;
4582
4583           }
4584           if (planlayer == "torrus_bw_usage" ) {
4585
4586               document.getElementById('plandflat').style.display = "none";
4587               document.getElementById('plandflat').style.zIndex = 0;
4588               document.getElementById('plandflat_delayed').style.display = "none";
4589               document.getElementById('plandflat_delayed').style.zIndex = 0;
4590               document.getElementById('plandflat_introrate').style.display = "none";
4591               document.getElementById('plandflat_introrate').style.zIndex = 0;
4592               document.getElementById('plandprorate').style.display = "none";
4593               document.getElementById('plandprorate').style.zIndex = 0;
4594               document.getElementById('plandprorate_calendar').style.display = "none";
4595               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4596               document.getElementById('plandprorate_delayed').style.display = "none";
4597               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4598               document.getElementById('plandprepaid').style.display = "none";
4599               document.getElementById('plandprepaid').style.zIndex = 0;
4600               document.getElementById('plandsubscription').style.display = "none";
4601               document.getElementById('plandsubscription').style.zIndex = 0;
4602               document.getElementById('plandsqlradacct_hour').style.display = "none";
4603               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4604               document.getElementById('plandsqlradacct_daily').style.display = "none";
4605               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4606               document.getElementById('plandvoip_cdr').style.display = "none";
4607               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4608               document.getElementById('plandvoip_inbound').style.display = "none";
4609               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4610               document.getElementById('plandvoip_tiered').style.display = "none";
4611               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4612               document.getElementById('plandcdr_termination').style.display = "none";
4613               document.getElementById('plandcdr_termination').style.zIndex = 0;
4614               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4615               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4616               document.getElementById('plandbulk_simple').style.display = "none";
4617               document.getElementById('plandbulk_simple').style.zIndex = 0;
4618               document.getElementById('plandbulk').style.display = "none";
4619               document.getElementById('plandbulk').style.zIndex = 0;
4620               document.getElementById('plandagent').style.display = "none";
4621               document.getElementById('plandagent').style.zIndex = 0;
4622               document.getElementById('plandagent_cdr').style.display = "none";
4623               document.getElementById('plandagent_cdr').style.zIndex = 0;
4624               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4625               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4626               document.getElementById('plandrt_time').style.display = "none";
4627               document.getElementById('plandrt_time').style.zIndex = 0;
4628               document.getElementById('plandsql_generic').style.display = "none";
4629               document.getElementById('plandsql_generic').style.zIndex = 0;
4630               document.getElementById('plandsql_external').style.display = "none";
4631               document.getElementById('plandsql_external').style.zIndex = 0;
4632               document.getElementById('plandflat_comission_cust').style.display = "none";
4633               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4634               document.getElementById('plandflat_comission').style.display = "none";
4635               document.getElementById('plandflat_comission').style.zIndex = 0;
4636               document.getElementById('plandflat_comission_pkg').style.display = "none";
4637               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4638
4639             document.getElementById('plandtorrus_bw_usage').style.display = "";
4640             document.getElementById('plandtorrus_bw_usage').style.zIndex = 1;
4641
4642           }
4643           if (planlayer == "rt_time" ) {
4644
4645               document.getElementById('plandflat').style.display = "none";
4646               document.getElementById('plandflat').style.zIndex = 0;
4647               document.getElementById('plandflat_delayed').style.display = "none";
4648               document.getElementById('plandflat_delayed').style.zIndex = 0;
4649               document.getElementById('plandflat_introrate').style.display = "none";
4650               document.getElementById('plandflat_introrate').style.zIndex = 0;
4651               document.getElementById('plandprorate').style.display = "none";
4652               document.getElementById('plandprorate').style.zIndex = 0;
4653               document.getElementById('plandprorate_calendar').style.display = "none";
4654               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4655               document.getElementById('plandprorate_delayed').style.display = "none";
4656               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4657               document.getElementById('plandprepaid').style.display = "none";
4658               document.getElementById('plandprepaid').style.zIndex = 0;
4659               document.getElementById('plandsubscription').style.display = "none";
4660               document.getElementById('plandsubscription').style.zIndex = 0;
4661               document.getElementById('plandsqlradacct_hour').style.display = "none";
4662               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4663               document.getElementById('plandsqlradacct_daily').style.display = "none";
4664               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4665               document.getElementById('plandvoip_cdr').style.display = "none";
4666               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4667               document.getElementById('plandvoip_inbound').style.display = "none";
4668               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4669               document.getElementById('plandvoip_tiered').style.display = "none";
4670               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4671               document.getElementById('plandcdr_termination').style.display = "none";
4672               document.getElementById('plandcdr_termination').style.zIndex = 0;
4673               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4674               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4675               document.getElementById('plandbulk_simple').style.display = "none";
4676               document.getElementById('plandbulk_simple').style.zIndex = 0;
4677               document.getElementById('plandbulk').style.display = "none";
4678               document.getElementById('plandbulk').style.zIndex = 0;
4679               document.getElementById('plandagent').style.display = "none";
4680               document.getElementById('plandagent').style.zIndex = 0;
4681               document.getElementById('plandagent_cdr').style.display = "none";
4682               document.getElementById('plandagent_cdr').style.zIndex = 0;
4683               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4684               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4685               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4686               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4687               document.getElementById('plandsql_generic').style.display = "none";
4688               document.getElementById('plandsql_generic').style.zIndex = 0;
4689               document.getElementById('plandsql_external').style.display = "none";
4690               document.getElementById('plandsql_external').style.zIndex = 0;
4691               document.getElementById('plandflat_comission_cust').style.display = "none";
4692               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4693               document.getElementById('plandflat_comission').style.display = "none";
4694               document.getElementById('plandflat_comission').style.zIndex = 0;
4695               document.getElementById('plandflat_comission_pkg').style.display = "none";
4696               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4697
4698             document.getElementById('plandrt_time').style.display = "";
4699             document.getElementById('plandrt_time').style.zIndex = 1;
4700
4701           }
4702           if (planlayer == "sql_generic" ) {
4703
4704               document.getElementById('plandflat').style.display = "none";
4705               document.getElementById('plandflat').style.zIndex = 0;
4706               document.getElementById('plandflat_delayed').style.display = "none";
4707               document.getElementById('plandflat_delayed').style.zIndex = 0;
4708               document.getElementById('plandflat_introrate').style.display = "none";
4709               document.getElementById('plandflat_introrate').style.zIndex = 0;
4710               document.getElementById('plandprorate').style.display = "none";
4711               document.getElementById('plandprorate').style.zIndex = 0;
4712               document.getElementById('plandprorate_calendar').style.display = "none";
4713               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4714               document.getElementById('plandprorate_delayed').style.display = "none";
4715               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4716               document.getElementById('plandprepaid').style.display = "none";
4717               document.getElementById('plandprepaid').style.zIndex = 0;
4718               document.getElementById('plandsubscription').style.display = "none";
4719               document.getElementById('plandsubscription').style.zIndex = 0;
4720               document.getElementById('plandsqlradacct_hour').style.display = "none";
4721               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4722               document.getElementById('plandsqlradacct_daily').style.display = "none";
4723               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4724               document.getElementById('plandvoip_cdr').style.display = "none";
4725               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4726               document.getElementById('plandvoip_inbound').style.display = "none";
4727               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4728               document.getElementById('plandvoip_tiered').style.display = "none";
4729               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4730               document.getElementById('plandcdr_termination').style.display = "none";
4731               document.getElementById('plandcdr_termination').style.zIndex = 0;
4732               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4733               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4734               document.getElementById('plandbulk_simple').style.display = "none";
4735               document.getElementById('plandbulk_simple').style.zIndex = 0;
4736               document.getElementById('plandbulk').style.display = "none";
4737               document.getElementById('plandbulk').style.zIndex = 0;
4738               document.getElementById('plandagent').style.display = "none";
4739               document.getElementById('plandagent').style.zIndex = 0;
4740               document.getElementById('plandagent_cdr').style.display = "none";
4741               document.getElementById('plandagent_cdr').style.zIndex = 0;
4742               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4743               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4744               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4745               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4746               document.getElementById('plandrt_time').style.display = "none";
4747               document.getElementById('plandrt_time').style.zIndex = 0;
4748               document.getElementById('plandsql_external').style.display = "none";
4749               document.getElementById('plandsql_external').style.zIndex = 0;
4750               document.getElementById('plandflat_comission_cust').style.display = "none";
4751               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4752               document.getElementById('plandflat_comission').style.display = "none";
4753               document.getElementById('plandflat_comission').style.zIndex = 0;
4754               document.getElementById('plandflat_comission_pkg').style.display = "none";
4755               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4756
4757             document.getElementById('plandsql_generic').style.display = "";
4758             document.getElementById('plandsql_generic').style.zIndex = 1;
4759
4760           }
4761           if (planlayer == "sql_external" ) {
4762
4763               document.getElementById('plandflat').style.display = "none";
4764               document.getElementById('plandflat').style.zIndex = 0;
4765               document.getElementById('plandflat_delayed').style.display = "none";
4766               document.getElementById('plandflat_delayed').style.zIndex = 0;
4767               document.getElementById('plandflat_introrate').style.display = "none";
4768               document.getElementById('plandflat_introrate').style.zIndex = 0;
4769               document.getElementById('plandprorate').style.display = "none";
4770               document.getElementById('plandprorate').style.zIndex = 0;
4771               document.getElementById('plandprorate_calendar').style.display = "none";
4772               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4773               document.getElementById('plandprorate_delayed').style.display = "none";
4774               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4775               document.getElementById('plandprepaid').style.display = "none";
4776               document.getElementById('plandprepaid').style.zIndex = 0;
4777               document.getElementById('plandsubscription').style.display = "none";
4778               document.getElementById('plandsubscription').style.zIndex = 0;
4779               document.getElementById('plandsqlradacct_hour').style.display = "none";
4780               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4781               document.getElementById('plandsqlradacct_daily').style.display = "none";
4782               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4783               document.getElementById('plandvoip_cdr').style.display = "none";
4784               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4785               document.getElementById('plandvoip_inbound').style.display = "none";
4786               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4787               document.getElementById('plandvoip_tiered').style.display = "none";
4788               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4789               document.getElementById('plandcdr_termination').style.display = "none";
4790               document.getElementById('plandcdr_termination').style.zIndex = 0;
4791               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4792               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4793               document.getElementById('plandbulk_simple').style.display = "none";
4794               document.getElementById('plandbulk_simple').style.zIndex = 0;
4795               document.getElementById('plandbulk').style.display = "none";
4796               document.getElementById('plandbulk').style.zIndex = 0;
4797               document.getElementById('plandagent').style.display = "none";
4798               document.getElementById('plandagent').style.zIndex = 0;
4799               document.getElementById('plandagent_cdr').style.display = "none";
4800               document.getElementById('plandagent_cdr').style.zIndex = 0;
4801               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4802               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4803               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4804               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4805               document.getElementById('plandrt_time').style.display = "none";
4806               document.getElementById('plandrt_time').style.zIndex = 0;
4807               document.getElementById('plandsql_generic').style.display = "none";
4808               document.getElementById('plandsql_generic').style.zIndex = 0;
4809               document.getElementById('plandflat_comission_cust').style.display = "none";
4810               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4811               document.getElementById('plandflat_comission').style.display = "none";
4812               document.getElementById('plandflat_comission').style.zIndex = 0;
4813               document.getElementById('plandflat_comission_pkg').style.display = "none";
4814               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4815
4816             document.getElementById('plandsql_external').style.display = "";
4817             document.getElementById('plandsql_external').style.zIndex = 1;
4818
4819           }
4820           if (planlayer == "flat_comission_cust" ) {
4821
4822               document.getElementById('plandflat').style.display = "none";
4823               document.getElementById('plandflat').style.zIndex = 0;
4824               document.getElementById('plandflat_delayed').style.display = "none";
4825               document.getElementById('plandflat_delayed').style.zIndex = 0;
4826               document.getElementById('plandflat_introrate').style.display = "none";
4827               document.getElementById('plandflat_introrate').style.zIndex = 0;
4828               document.getElementById('plandprorate').style.display = "none";
4829               document.getElementById('plandprorate').style.zIndex = 0;
4830               document.getElementById('plandprorate_calendar').style.display = "none";
4831               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4832               document.getElementById('plandprorate_delayed').style.display = "none";
4833               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4834               document.getElementById('plandprepaid').style.display = "none";
4835               document.getElementById('plandprepaid').style.zIndex = 0;
4836               document.getElementById('plandsubscription').style.display = "none";
4837               document.getElementById('plandsubscription').style.zIndex = 0;
4838               document.getElementById('plandsqlradacct_hour').style.display = "none";
4839               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4840               document.getElementById('plandsqlradacct_daily').style.display = "none";
4841               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4842               document.getElementById('plandvoip_cdr').style.display = "none";
4843               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4844               document.getElementById('plandvoip_inbound').style.display = "none";
4845               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4846               document.getElementById('plandvoip_tiered').style.display = "none";
4847               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4848               document.getElementById('plandcdr_termination').style.display = "none";
4849               document.getElementById('plandcdr_termination').style.zIndex = 0;
4850               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4851               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4852               document.getElementById('plandbulk_simple').style.display = "none";
4853               document.getElementById('plandbulk_simple').style.zIndex = 0;
4854               document.getElementById('plandbulk').style.display = "none";
4855               document.getElementById('plandbulk').style.zIndex = 0;
4856               document.getElementById('plandagent').style.display = "none";
4857               document.getElementById('plandagent').style.zIndex = 0;
4858               document.getElementById('plandagent_cdr').style.display = "none";
4859               document.getElementById('plandagent_cdr').style.zIndex = 0;
4860               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4861               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4862               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4863               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4864               document.getElementById('plandrt_time').style.display = "none";
4865               document.getElementById('plandrt_time').style.zIndex = 0;
4866               document.getElementById('plandsql_generic').style.display = "none";
4867               document.getElementById('plandsql_generic').style.zIndex = 0;
4868               document.getElementById('plandsql_external').style.display = "none";
4869               document.getElementById('plandsql_external').style.zIndex = 0;
4870               document.getElementById('plandflat_comission').style.display = "none";
4871               document.getElementById('plandflat_comission').style.zIndex = 0;
4872               document.getElementById('plandflat_comission_pkg').style.display = "none";
4873               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4874
4875             document.getElementById('plandflat_comission_cust').style.display = "";
4876             document.getElementById('plandflat_comission_cust').style.zIndex = 1;
4877
4878           }
4879           if (planlayer == "flat_comission" ) {
4880
4881               document.getElementById('plandflat').style.display = "none";
4882               document.getElementById('plandflat').style.zIndex = 0;
4883               document.getElementById('plandflat_delayed').style.display = "none";
4884               document.getElementById('plandflat_delayed').style.zIndex = 0;
4885               document.getElementById('plandflat_introrate').style.display = "none";
4886               document.getElementById('plandflat_introrate').style.zIndex = 0;
4887               document.getElementById('plandprorate').style.display = "none";
4888               document.getElementById('plandprorate').style.zIndex = 0;
4889               document.getElementById('plandprorate_calendar').style.display = "none";
4890               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4891               document.getElementById('plandprorate_delayed').style.display = "none";
4892               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4893               document.getElementById('plandprepaid').style.display = "none";
4894               document.getElementById('plandprepaid').style.zIndex = 0;
4895               document.getElementById('plandsubscription').style.display = "none";
4896               document.getElementById('plandsubscription').style.zIndex = 0;
4897               document.getElementById('plandsqlradacct_hour').style.display = "none";
4898               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4899               document.getElementById('plandsqlradacct_daily').style.display = "none";
4900               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4901               document.getElementById('plandvoip_cdr').style.display = "none";
4902               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4903               document.getElementById('plandvoip_inbound').style.display = "none";
4904               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4905               document.getElementById('plandvoip_tiered').style.display = "none";
4906               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4907               document.getElementById('plandcdr_termination').style.display = "none";
4908               document.getElementById('plandcdr_termination').style.zIndex = 0;
4909               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4910               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4911               document.getElementById('plandbulk_simple').style.display = "none";
4912               document.getElementById('plandbulk_simple').style.zIndex = 0;
4913               document.getElementById('plandbulk').style.display = "none";
4914               document.getElementById('plandbulk').style.zIndex = 0;
4915               document.getElementById('plandagent').style.display = "none";
4916               document.getElementById('plandagent').style.zIndex = 0;
4917               document.getElementById('plandagent_cdr').style.display = "none";
4918               document.getElementById('plandagent_cdr').style.zIndex = 0;
4919               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4920               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4921               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4922               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4923               document.getElementById('plandrt_time').style.display = "none";
4924               document.getElementById('plandrt_time').style.zIndex = 0;
4925               document.getElementById('plandsql_generic').style.display = "none";
4926               document.getElementById('plandsql_generic').style.zIndex = 0;
4927               document.getElementById('plandsql_external').style.display = "none";
4928               document.getElementById('plandsql_external').style.zIndex = 0;
4929               document.getElementById('plandflat_comission_cust').style.display = "none";
4930               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4931               document.getElementById('plandflat_comission_pkg').style.display = "none";
4932               document.getElementById('plandflat_comission_pkg').style.zIndex = 0;
4933
4934             document.getElementById('plandflat_comission').style.display = "";
4935             document.getElementById('plandflat_comission').style.zIndex = 1;
4936
4937           }
4938           if (planlayer == "flat_comission_pkg" ) {
4939
4940               document.getElementById('plandflat').style.display = "none";
4941               document.getElementById('plandflat').style.zIndex = 0;
4942               document.getElementById('plandflat_delayed').style.display = "none";
4943               document.getElementById('plandflat_delayed').style.zIndex = 0;
4944               document.getElementById('plandflat_introrate').style.display = "none";
4945               document.getElementById('plandflat_introrate').style.zIndex = 0;
4946               document.getElementById('plandprorate').style.display = "none";
4947               document.getElementById('plandprorate').style.zIndex = 0;
4948               document.getElementById('plandprorate_calendar').style.display = "none";
4949               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4950               document.getElementById('plandprorate_delayed').style.display = "none";
4951               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4952               document.getElementById('plandprepaid').style.display = "none";
4953               document.getElementById('plandprepaid').style.zIndex = 0;
4954               document.getElementById('plandsubscription').style.display = "none";
4955               document.getElementById('plandsubscription').style.zIndex = 0;
4956               document.getElementById('plandsqlradacct_hour').style.display = "none";
4957               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4958               document.getElementById('plandsqlradacct_daily').style.display = "none";
4959               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4960               document.getElementById('plandvoip_cdr').style.display = "none";
4961               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4962               document.getElementById('plandvoip_inbound').style.display = "none";
4963               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4964               document.getElementById('plandvoip_tiered').style.display = "none";
4965               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4966               document.getElementById('plandcdr_termination').style.display = "none";
4967               document.getElementById('plandcdr_termination').style.zIndex = 0;
4968               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4969               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4970               document.getElementById('plandbulk_simple').style.display = "none";
4971               document.getElementById('plandbulk_simple').style.zIndex = 0;
4972               document.getElementById('plandbulk').style.display = "none";
4973               document.getElementById('plandbulk').style.zIndex = 0;
4974               document.getElementById('plandagent').style.display = "none";
4975               document.getElementById('plandagent').style.zIndex = 0;
4976               document.getElementById('plandagent_cdr').style.display = "none";
4977               document.getElementById('plandagent_cdr').style.zIndex = 0;
4978               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4979               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4980               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4981               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4982               document.getElementById('plandrt_time').style.display = "none";
4983               document.getElementById('plandrt_time').style.zIndex = 0;
4984               document.getElementById('plandsql_generic').style.display = "none";
4985               document.getElementById('plandsql_generic').style.zIndex = 0;
4986               document.getElementById('plandsql_external').style.display = "none";
4987               document.getElementById('plandsql_external').style.zIndex = 0;
4988               document.getElementById('plandflat_comission_cust').style.display = "none";
4989               document.getElementById('plandflat_comission_cust').style.zIndex = 0;
4990               document.getElementById('plandflat_comission').style.display = "none";
4991               document.getElementById('plandflat_comission').style.zIndex = 0;
4992
4993             document.getElementById('plandflat_comission_pkg').style.display = "";
4994             document.getElementById('plandflat_comission_pkg').style.zIndex = 1;
4995
4996           }
4997
4998         //aux_planchanged(what);
4999
5000       }
5001 </SCRIPT>
5002
5003
5004   <BR>
5005
5006       <INPUT TYPE     = "submit"
5007              ID       = "submit"
5008              VALUE    = "Apply changes"
5009       >
5010
5011   </FORM>
5012
5013   
5014
5015           </TD>
5016       </TR>
5017     </TABLE>
5018   </BODY>
5019 </HTML>
5020
5021
5022