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