be65b463eb2d2c2921c93f47d31ae4ba458ad877
[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.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_calendar"
1329                 
1330         >Prorate (calendar cycle)</OPTION>
1331
1332
1333         <OPTION VALUE="prorate"
1334                  SELECTED
1335         >Prorate (Nth of month billing)</OPTION>
1336
1337
1338         <OPTION VALUE="prorate_delayed"
1339                 
1340         >Prorate (Nth of month billing), with intro period</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 <TABLE BORDER=0 CELLSPACING=4 ><TR><TD VALIGN="top">
3746
3747
3748 <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"><FONT SIZE=-1>Hold<BR>Until<BR>Provision</FONT></TH></TR>
3749
3750
3751   <TR>
3752     <TD>
3753       <INPUT TYPE="text" NAME="pkg_svc1" SIZE=4 MAXLENGTH=6 VALUE="0">
3754     </TD>
3755    
3756     <TD ALIGN="center">
3757       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="1" >
3758     </TD>
3759
3760     <TD>
3761       <A HREF="part_svc.cgi?1">Domain</A>      
3762     </TD>
3763
3764     <TD ALIGN="center">
3765       <INPUT TYPE="checkbox" NAME="hidden1" VALUE="Y">
3766     </TD>
3767
3768     <TD ALIGN="center">
3769       <INPUT TYPE="checkbox" NAME="no_bulk_skip1" VALUE="Y" CHECKED>
3770     </TD>
3771
3772     <TD ALIGN="center">
3773       <INPUT TYPE="checkbox" NAME="provision_hold1" VALUE="Y">
3774     </TD>
3775
3776   </TR>
3777
3778   <TR>
3779     <TD>
3780       <INPUT TYPE="text" NAME="pkg_svc2" SIZE=4 MAXLENGTH=6 VALUE="1">
3781     </TD>
3782    
3783     <TD ALIGN="center">
3784       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="2" >
3785     </TD>
3786
3787     <TD>
3788       <A HREF="part_svc.cgi?2">Test svc_acct</A>      
3789     </TD>
3790
3791     <TD ALIGN="center">
3792       <INPUT TYPE="checkbox" NAME="hidden2" VALUE="Y">
3793     </TD>
3794
3795     <TD ALIGN="center">
3796       <INPUT TYPE="checkbox" NAME="no_bulk_skip2" VALUE="Y" CHECKED>
3797     </TD>
3798
3799     <TD ALIGN="center">
3800       <INPUT TYPE="checkbox" NAME="provision_hold2" VALUE="Y">
3801     </TD>
3802
3803   </TR>
3804
3805          </TABLE></TD><TD VALIGN="top">
3806
3807 <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"><FONT SIZE=-1>Hold<BR>Until<BR>Provision</FONT></TH></TR>
3808
3809   <TR>
3810     <TD>
3811       <INPUT TYPE="text" NAME="pkg_svc3" SIZE=4 MAXLENGTH=6 VALUE="0">
3812     </TD>
3813    
3814     <TD ALIGN="center">
3815       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="3" >
3816     </TD>
3817
3818     <TD>
3819       <A HREF="part_svc.cgi?3">Test svc_domain</A>      
3820     </TD>
3821
3822     <TD ALIGN="center">
3823       <INPUT TYPE="checkbox" NAME="hidden3" VALUE="Y">
3824     </TD>
3825
3826     <TD ALIGN="center">
3827       <INPUT TYPE="checkbox" NAME="no_bulk_skip3" VALUE="Y" CHECKED>
3828     </TD>
3829
3830     <TD ALIGN="center">
3831       <INPUT TYPE="checkbox" NAME="provision_hold3" VALUE="Y">
3832     </TD>
3833
3834   </TR>
3835
3836   <TR>
3837     <TD>
3838       <INPUT TYPE="text" NAME="pkg_svc4" SIZE=4 MAXLENGTH=6 VALUE="0">
3839     </TD>
3840    
3841     <TD ALIGN="center">
3842       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="4" >
3843     </TD>
3844
3845     <TD>
3846       <A HREF="part_svc.cgi?4">Test svc_broadband</A>      
3847     </TD>
3848
3849     <TD ALIGN="center">
3850       <INPUT TYPE="checkbox" NAME="hidden4" VALUE="Y">
3851     </TD>
3852
3853     <TD ALIGN="center">
3854       <INPUT TYPE="checkbox" NAME="no_bulk_skip4" VALUE="Y" CHECKED>
3855     </TD>
3856
3857     <TD ALIGN="center">
3858       <INPUT TYPE="checkbox" NAME="provision_hold4" VALUE="Y">
3859     </TD>
3860
3861   </TR>
3862
3863          </TABLE></TD><TD VALIGN="top">
3864
3865 <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"><FONT SIZE=-1>Hold<BR>Until<BR>Provision</FONT></TH></TR>
3866
3867   <TR>
3868     <TD>
3869       <INPUT TYPE="text" NAME="pkg_svc5" SIZE=4 MAXLENGTH=6 VALUE="0">
3870     </TD>
3871    
3872     <TD ALIGN="center">
3873       <INPUT TYPE="radio" NAME="pkg_svc_primary" VALUE="5" >
3874     </TD>
3875
3876     <TD>
3877       <A HREF="part_svc.cgi?5">Test svc_phone</A>      
3878     </TD>
3879
3880     <TD ALIGN="center">
3881       <INPUT TYPE="checkbox" NAME="hidden5" VALUE="Y">
3882     </TD>
3883
3884     <TD ALIGN="center">
3885       <INPUT TYPE="checkbox" NAME="no_bulk_skip5" VALUE="Y" CHECKED>
3886     </TD>
3887
3888     <TD ALIGN="center">
3889       <INPUT TYPE="checkbox" NAME="provision_hold5" VALUE="Y">
3890     </TD>
3891
3892   </TR>
3893
3894 </TR></TABLE></TD></TR></TABLE>
3895
3896
3897   </TD>
3898 </TR>
3899
3900
3901
3902
3903
3904       <TR>
3905
3906   <TH ALIGN  = "right"
3907       VALIGN = "top"
3908       STYLE  = "padding-top: 3px"
3909       ID     = "svc_dst_pkgpart_label0"
3910   >Include services of package</TD>
3911
3912
3913       <TD COLSPAN="1">
3914       
3915
3916 <SELECT 
3917         NAME = "svc_dst_pkgpart0"
3918         ID   = "svc_dst_pkgpart0"
3919         onChange="
3920 spawn_svc_dst_pkgpart(this);"
3921         
3922         
3923 >
3924
3925
3926     <OPTION VALUE="">Select package
3927
3928     <OPTION VALUE="4"
3929             
3930     >
3931      4: Annual subscription domain
3932     <OPTION VALUE="5"
3933             
3934     >
3935      5: Monthly anniversary phone x4
3936     <OPTION VALUE="3"
3937             
3938     >
3939      3: Monthly prorated broadband
3940     <OPTION VALUE="1"
3941             
3942     >
3943      1: System Domain - (NOT FOR CUSTOMERS)
3944
3945
3946 </SELECT>
3947
3948
3949
3950       </TD>
3951
3952
3953       </TR>
3954
3955
3956       <SCRIPT TYPE="text/javascript">
3957
3958         var svc_dst_pkgpart_rownum = 4;
3959         var svc_dst_pkgpart_fieldnum = 0;
3960
3961         function spawn_svc_dst_pkgpart(what) {
3962
3963           // only spawn if we're the last element... return if not
3964
3965           var field_regex = /(\d+)(_[a-z_]+)?$/;
3966           var match = field_regex.exec(what.name);
3967           if ( !match ) {
3968             alert(what.name + " didn't match for " + what);
3969             return;
3970           }
3971           if ( match[1] != svc_dst_pkgpart_fieldnum ) {
3972             return;
3973           }
3974
3975           // change the label on the last entry & add a remove button
3976           var prev_label = document.getElementById('svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum );
3977           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: ';
3978
3979           svc_dst_pkgpart_fieldnum++;
3980
3981           //get the new widget
3982
3983
3984           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';
3985
3986             var newfunc = '';
3987
3988           // substitute in the new field name
3989           var magic_regex = /MAGIC_NUMBER/g;
3990           newrow  = newrow.replace(  magic_regex, svc_dst_pkgpart_fieldnum );
3991           newfunc = newfunc.replace( magic_regex, svc_dst_pkgpart_fieldnum );
3992
3993           // evaluate new_func
3994           if (window.ActiveXObject) {
3995             window.execScript(newfunc);
3996           } else { /* (window.XMLHttpRequest) */
3997             //window.eval(newfunc);
3998             setTimeout(newfunc, 0);
3999           }
4000
4001           // add new row
4002
4003           //hmm, can't use selectlayers after a tablebreak-title for now
4004           var table = document.getElementById('TableNumber10');
4005
4006           var row = table.insertRow(svc_dst_pkgpart_rownum++);
4007
4008           var label_cell = document.createElement('TD');
4009
4010           label_cell.id = 'svc_dst_pkgpart_label' + svc_dst_pkgpart_fieldnum;
4011
4012           label_cell.style.textAlign = "right";
4013           label_cell.style.verticalAlign = "top";
4014           label_cell.style.borderTop = "1px solid black";
4015           label_cell.style.paddingTop = "5px";
4016
4017           label_cell.innerHTML = 'Include services of package';
4018
4019           row.appendChild(label_cell);
4020           
4021           var widget_cell = document.createElement('TD');
4022
4023           widget_cell.style.borderTop = "1px solid black";
4024           widget_cell.style.paddingTop = "3px";
4025           widget_cell.colSpan = "1";
4026
4027           widget_cell.innerHTML = newrow;
4028
4029           row.appendChild(widget_cell);
4030
4031
4032
4033         }
4034
4035         function remove_svc_dst_pkgpart(remove_fieldnum) {
4036           //alert("remove svc_dst_pkgpart " + remove_fieldnum);
4037           var select = document.getElementById('svc_dst_pkgpart' + remove_fieldnum);
4038
4039           if ( ! select ) {
4040             alert("can't find element svc_dst_pkgpart" + remove_fieldnum);
4041             return;
4042           }
4043
4044
4045           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
4046           var label_td = document.getElementById('svc_dst_pkgpart_label' + remove_fieldnum );
4047           label_td.parentNode.style.display = 'none';
4048
4049
4050         }
4051
4052       </SCRIPT>
4053
4054
4055
4056       </TABLE>
4057
4058 <TABLE ID="TableNumber11" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
4059
4060 <TR>
4061   <TD CLASS="background" COLSPAN=4>&nbsp;</TD>
4062 </TR>
4063
4064 <TR>
4065   <TH CLASS="background" COLSPAN=4 ALIGN="left" ID="show_supp_pkgs">
4066     <FONT SIZE="+1">Supplemental packages</FONT>
4067   </TH>
4068 </TR>
4069
4070
4071
4072
4073
4074
4075
4076
4077       <TR>
4078
4079   <TH ALIGN  = "right"
4080       VALIGN = "top"
4081       STYLE  = "padding-top: 3px"
4082       ID     = "supp_dst_pkgpart_label0"
4083   >When ordering package, also order</TD>
4084
4085
4086       <TD COLSPAN="1">
4087       
4088
4089 <SELECT 
4090         NAME = "supp_dst_pkgpart0"
4091         ID   = "supp_dst_pkgpart0"
4092         onChange="
4093 spawn_supp_dst_pkgpart(this);"
4094         
4095         
4096 >
4097
4098
4099     <OPTION VALUE="">Select package
4100
4101     <OPTION VALUE="4"
4102             
4103     >
4104      4: Annual subscription domain
4105     <OPTION VALUE="5"
4106             
4107     >
4108      5: Monthly anniversary phone x4
4109     <OPTION VALUE="2"
4110             
4111     >
4112      2: Monthly prorated account
4113     <OPTION VALUE="3"
4114             
4115     >
4116      3: Monthly prorated broadband
4117     <OPTION VALUE="1"
4118             
4119     >
4120      1: System Domain - (NOT FOR CUSTOMERS)
4121
4122
4123 </SELECT>
4124
4125
4126
4127       </TD>
4128
4129
4130       </TR>
4131
4132
4133       <SCRIPT TYPE="text/javascript">
4134
4135         var supp_dst_pkgpart_rownum = 3;
4136         var supp_dst_pkgpart_fieldnum = 0;
4137
4138         function spawn_supp_dst_pkgpart(what) {
4139
4140           // only spawn if we're the last element... return if not
4141
4142           var field_regex = /(\d+)(_[a-z_]+)?$/;
4143           var match = field_regex.exec(what.name);
4144           if ( !match ) {
4145             alert(what.name + " didn't match for " + what);
4146             return;
4147           }
4148           if ( match[1] != supp_dst_pkgpart_fieldnum ) {
4149             return;
4150           }
4151
4152           // change the label on the last entry & add a remove button
4153           var prev_label = document.getElementById('supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum );
4154           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';
4155
4156           supp_dst_pkgpart_fieldnum++;
4157
4158           //get the new widget
4159
4160
4161           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';
4162
4163             var newfunc = '';
4164
4165           // substitute in the new field name
4166           var magic_regex = /MAGIC_NUMBER/g;
4167           newrow  = newrow.replace(  magic_regex, supp_dst_pkgpart_fieldnum );
4168           newfunc = newfunc.replace( magic_regex, supp_dst_pkgpart_fieldnum );
4169
4170           // evaluate new_func
4171           if (window.ActiveXObject) {
4172             window.execScript(newfunc);
4173           } else { /* (window.XMLHttpRequest) */
4174             //window.eval(newfunc);
4175             setTimeout(newfunc, 0);
4176           }
4177
4178           // add new row
4179
4180           //hmm, can't use selectlayers after a tablebreak-title for now
4181           var table = document.getElementById('TableNumber11');
4182
4183           var row = table.insertRow(supp_dst_pkgpart_rownum++);
4184
4185           var label_cell = document.createElement('TD');
4186
4187           label_cell.id = 'supp_dst_pkgpart_label' + supp_dst_pkgpart_fieldnum;
4188
4189           label_cell.style.textAlign = "right";
4190           label_cell.style.verticalAlign = "top";
4191           label_cell.style.borderTop = "1px solid black";
4192           label_cell.style.paddingTop = "5px";
4193
4194           label_cell.innerHTML = 'When ordering package, also order';
4195
4196           row.appendChild(label_cell);
4197           
4198           var widget_cell = document.createElement('TD');
4199
4200           widget_cell.style.borderTop = "1px solid black";
4201           widget_cell.style.paddingTop = "3px";
4202           widget_cell.colSpan = "1";
4203
4204           widget_cell.innerHTML = newrow;
4205
4206           row.appendChild(widget_cell);
4207
4208
4209
4210         }
4211
4212         function remove_supp_dst_pkgpart(remove_fieldnum) {
4213           //alert("remove supp_dst_pkgpart " + remove_fieldnum);
4214           var select = document.getElementById('supp_dst_pkgpart' + remove_fieldnum);
4215
4216           if ( ! select ) {
4217             alert("can't find element supp_dst_pkgpart" + remove_fieldnum);
4218             return;
4219           }
4220
4221
4222           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
4223           var label_td = document.getElementById('supp_dst_pkgpart_label' + remove_fieldnum );
4224           label_td.parentNode.style.display = 'none';
4225
4226
4227         }
4228
4229       </SCRIPT>
4230
4231
4232
4233       </TABLE>
4234
4235 <TABLE ID="TableNumber12" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
4236
4237 <TR>
4238   <TD CLASS="background" COLSPAN=2>&nbsp;</TD>
4239 </TR>
4240
4241 <TR>
4242   <TH CLASS="background" COLSPAN=2 ALIGN="left" >
4243     <FONT SIZE="+1">Price plan options</FONT>
4244   </TH>
4245 </TR>
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256 </TABLE>
4257
4258
4259
4260       <DIV ID="plandflat"
4261            STYLE="display: none; z-index: 0"
4262       >
4263
4264         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="flat__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="flat__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Prorate first month to synchronize with the customer's other packages</TD><TD><INPUT TYPE="checkbox" NAME="flat__sync_bill_date" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD><INPUT TYPE="checkbox" NAME="flat__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="flat__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="flat__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="flat__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="flat__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="flat__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="flat__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="flat__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><INPUT TYPE="text" NAME="flat__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD><INPUT TYPE="checkbox" NAME="flat__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD><INPUT TYPE="checkbox" NAME="flat__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="flat__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="flat__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat__OPTIONS" VALUE="a2billing_simultaccess,unused_credit_suspend,a2billing_carrier_cost_min,recharge_upbytes,recharge_totalbytes,add_full_period,a2billing_tariff,unused_credit_change,recharge_reset,a2billing_carrer_initblock_offp,setup_fee,totalbytes,sync_bill_date,a2billing_retail_initblock_offp,prorate_round_day,seconds,a2billing_retail_cost_min_offp,externalid,bill_suspend_as_cancel,recharge_downbytes,downbytes,recharge_seconds,recur_temporality,start_1st,bill_recur_on_cancel,unsuspend_adjust_bill,prorate_defer_bill,a2billing_type,recharge_amount,a2billing_carrier_increment_offp,prorate_verbose,suspend_bill,a2billing_retail_increment_offp,unused_credit_cancel,delay_cancel,upbytes,usage_rollover,recur_fee">
4265
4266       </DIV>
4267
4268
4269       <DIV ID="plandflat_delayed"
4270            STYLE="display: none; z-index: 0"
4271       >
4272
4273         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="flat_delayed__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat_delayed__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="flat_delayed__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="flat_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD><INPUT TYPE="text" NAME="flat_delayed__free_days" VALUE="0"></TD></TR><TR><TD ALIGN="right">Delay setup fee in addition to recurring fee</TD><TD><INPUT TYPE="checkbox" NAME="flat_delayed__delay_setup" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Number of days before recurring billing commences to notify customer. (0 means no warning)</TD><TD><INPUT TYPE="text" NAME="flat_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_delayed__OPTIONS" VALUE="a2billing_type,recur_notify,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,suspend_bill,delay_cancel,unused_credit_cancel,a2billing_retail_cost_min_offp,recur_fee,unused_credit_suspend,a2billing_simultaccess,a2billing_tariff,a2billing_carrier_cost_min,unused_credit_change,free_days,a2billing_carrer_initblock_offp,setup_fee,delay_setup">
4274
4275       </DIV>
4276
4277
4278       <DIV ID="plandflat_introrate"
4279            STYLE="display: none; z-index: 0"
4280       >
4281
4282         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Duration of the introductory period, in number of months</TD><TD><INPUT TYPE="text" NAME="flat_introrate__intro_duration" VALUE="0"></TD></TR><TR><TD ALIGN="right">Introductory recurring fee for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__intro_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="flat_introrate__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Prorate first month to synchronize with the customer's other packages</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__sync_bill_date" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="flat_introrate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><INPUT TYPE="text" NAME="flat_introrate__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="flat_introrate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="flat_introrate__OPTIONS" VALUE="a2billing_type,prorate_defer_bill,unsuspend_adjust_bill,bill_recur_on_cancel,start_1st,a2billing_carrier_increment_offp,recharge_amount,unused_credit_cancel,delay_cancel,a2billing_retail_increment_offp,suspend_bill,recur_fee,usage_rollover,upbytes,intro_duration,bill_suspend_as_cancel,recur_temporality,recharge_seconds,downbytes,recharge_downbytes,sync_bill_date,a2billing_retail_initblock_offp,seconds,prorate_round_day,externalid,a2billing_retail_cost_min_offp,a2billing_tariff,add_full_period,recharge_totalbytes,a2billing_carrier_cost_min,recharge_upbytes,unused_credit_suspend,a2billing_simultaccess,intro_fee,unused_credit_change,a2billing_carrer_initblock_offp,recharge_reset,totalbytes,setup_fee">
4283
4284       </DIV>
4285
4286
4287       <DIV ID="plandprorate_calendar"
4288            STYLE="display: none; z-index: 0"
4289       >
4290
4291         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day (1 - end of cycle)</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><INPUT TYPE="text" NAME="prorate_calendar__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="prorate_calendar__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate_calendar__OPTIONS" VALUE="totalbytes,setup_fee,a2billing_carrer_initblock_offp,recharge_reset,unused_credit_change,a2billing_carrier_cost_min,recharge_upbytes,recharge_totalbytes,add_full_period,a2billing_tariff,a2billing_simultaccess,unused_credit_suspend,externalid,a2billing_retail_cost_min_offp,seconds,prorate_round_day,a2billing_retail_initblock_offp,sync_bill_date,downbytes,recharge_seconds,recur_temporality,recharge_downbytes,bill_suspend_as_cancel,usage_rollover,recur_fee,upbytes,unused_credit_cancel,delay_cancel,suspend_bill,a2billing_retail_increment_offp,prorate_verbose,recharge_amount,a2billing_carrier_increment_offp,cutoff_day,a2billing_type,prorate_defer_bill,start_1st,bill_recur_on_cancel,unsuspend_adjust_bill">
4292
4293       </DIV>
4294
4295
4296       <DIV ID="plandprorate"
4297            STYLE="display: block; z-index: 1"
4298       >
4299
4300         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD><INPUT TYPE="text" NAME="prorate__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="prorate__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="prorate__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="prorate__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="prorate__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="prorate__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="prorate__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="prorate__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="prorate__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="prorate__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="prorate__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><INPUT TYPE="text" NAME="prorate__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll  over into current period</TD><TD><INPUT TYPE="checkbox" NAME="prorate__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD><INPUT TYPE="checkbox" NAME="prorate__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="prorate__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="prorate__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate__OPTIONS" VALUE="unused_credit_change,recharge_upbytes,a2billing_carrier_cost_min,recharge_totalbytes,add_full_period,a2billing_tariff,a2billing_simultaccess,unused_credit_suspend,setup_fee,totalbytes,a2billing_carrer_initblock_offp,recharge_reset,a2billing_retail_initblock_offp,sync_bill_date,externalid,a2billing_retail_cost_min_offp,seconds,prorate_round_day,bill_suspend_as_cancel,recharge_seconds,downbytes,recur_temporality,recharge_downbytes,prorate_verbose,recharge_amount,cutoff_day,a2billing_carrier_increment_offp,prorate_defer_bill,a2billing_type,start_1st,bill_recur_on_cancel,unsuspend_adjust_bill,usage_rollover,recur_fee,upbytes,unused_credit_cancel,delay_cancel,suspend_bill,a2billing_retail_increment_offp">
4301
4302       </DIV>
4303
4304
4305       <DIV ID="plandprorate_delayed"
4306            STYLE="display: none; z-index: 0"
4307       >
4308
4309         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="prorate_delayed__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prorate_delayed__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="prorate_delayed__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="prorate_delayed__delay_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Initial free days</TD><TD><INPUT TYPE="text" NAME="prorate_delayed__free_days" VALUE="0"></TD></TR><TR><TD ALIGN="right">Delay setup fee in addition to recurring fee</TD><TD><INPUT TYPE="checkbox" NAME="prorate_delayed__delay_setup" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Number of days before recurring billing commences to notify customer. (0 means no warning)</TD><TD><INPUT TYPE="text" NAME="prorate_delayed__recur_notify" VALUE="0"></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prorate_delayed__OPTIONS" VALUE="a2billing_type,recur_notify,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,suspend_bill,delay_cancel,unused_credit_cancel,a2billing_retail_cost_min_offp,recur_fee,unused_credit_suspend,a2billing_simultaccess,a2billing_tariff,a2billing_carrier_cost_min,unused_credit_change,free_days,a2billing_carrer_initblock_offp,setup_fee,delay_setup">
4310
4311       </DIV>
4312
4313
4314       <DIV ID="plandprepaid"
4315            STYLE="display: none; z-index: 0"
4316       >
4317
4318         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Action to take upon reaching end of prepaid period</TD><TD><SELECT NAME="prepaid__recur_action"><OPTION VALUE="suspend">suspend<OPTION VALUE="cancel">cancel</SELECT></TD></TR><TR><TD ALIGN="right">Action to take upon reaching a usage limit.</TD><TD><SELECT NAME="prepaid__overlimit_action"><OPTION VALUE="overlimit">Default overlimit processing<OPTION VALUE="cancel">Cancel</SELECT></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="prepaid__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="prepaid__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="prepaid__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="prepaid__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prepaid__OPTIONS" VALUE="recharge_seconds,downbytes,setup_fee,totalbytes,recharge_downbytes,a2billing_carrer_initblock_offp,recharge_reset,unused_credit_change,a2billing_carrier_cost_min,recharge_upbytes,recharge_totalbytes,a2billing_tariff,a2billing_simultaccess,unused_credit_suspend,usage_rollover,recur_fee,recur_action,a2billing_retail_cost_min_offp,upbytes,seconds,delay_cancel,overlimit_action,unused_credit_cancel,a2billing_retail_increment_offp,a2billing_retail_initblock_offp,recharge_amount,a2billing_carrier_increment_offp,a2billing_type">
4319
4320       </DIV>
4321
4322
4323       <DIV ID="plandsubscription"
4324            STYLE="display: none; z-index: 0"
4325       >
4326
4327         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing day</TD><TD><INPUT TYPE="text" NAME="subscription__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">Time limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Upload limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Download limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Transfer limit for this package</TD><TD><INPUT TYPE="text" NAME="subscription__totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Cost of recharge for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_amount" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge time for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_seconds" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge upload for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_upbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge download for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_downbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Recharge transfer for this package</TD><TD><INPUT TYPE="text" NAME="subscription__recharge_totalbytes" VALUE=""></TD></TR><TR><TD ALIGN="right">Allow usage from previous period to roll over into current period</TD><TD><INPUT TYPE="checkbox" NAME="subscription__usage_rollover" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Reset usage to these values on manual package recharge</TD><TD><INPUT TYPE="checkbox" NAME="subscription__recharge_reset" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="subscription__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="subscription__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="subscription__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="subscription__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="subscription__OPTIONS" VALUE="downbytes,recharge_seconds,recharge_downbytes,totalbytes,setup_fee,a2billing_carrer_initblock_offp,recharge_reset,unused_credit_change,recharge_upbytes,a2billing_carrier_cost_min,recharge_totalbytes,a2billing_tariff,a2billing_simultaccess,unused_credit_suspend,recur_fee,usage_rollover,upbytes,externalid,a2billing_retail_cost_min_offp,seconds,delay_cancel,unused_credit_cancel,a2billing_retail_increment_offp,a2billing_retail_initblock_offp,recharge_amount,cutoff_day,a2billing_carrier_increment_offp,a2billing_type">
4328
4329       </DIV>
4330
4331
4332       <DIV ID="plandsqlradacct_hour"
4333            STYLE="display: none; z-index: 0"
4334       >
4335
4336         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_hourly_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for hours (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload gigabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per gigabyte upload</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_input_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for upload (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download gigabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per gigabyte download</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_output_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for download (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total gigabytes included</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per gigabyte total</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_total_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum overage charge for total gigabytes (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__recur_total_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Global cap on all overage charges (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_hour__global_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_hour__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_hour__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_hour__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sqlradacct_hour__OPTIONS" VALUE="recur_input_cap,a2billing_type,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp,a2billing_retail_increment_offp,recur_hourly_charge,unused_credit_cancel,delay_cancel,recur_total_cap,recur_included_output,a2billing_retail_cost_min_offp,global_cap,recur_fee,recur_included_input,unused_credit_suspend,a2billing_simultaccess,recur_output_charge,recur_output_cap,a2billing_tariff,recur_hourly_cap,a2billing_carrier_cost_min,recur_included_hours,unused_credit_change,recur_total_charge,recur_input_charge,a2billing_carrer_initblock_offp,setup_fee,recur_included_total">
4337
4338       </DIV>
4339
4340
4341       <DIV ID="plandsqlradacct_daily"
4342            STYLE="display: none; z-index: 0"
4343       >
4344
4345         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Hours included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_hours" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per hour</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_hourly_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for hours (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_hourly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Upload megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_input" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte upload</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_input_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for upload (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_input_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Download megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_output" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte download</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_output_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for download (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_output_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Total megabytes included per day</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_included_total" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per megabyte total</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_total_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">Maximum daily charge for total megabytes (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__recur_total_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Daily cap on all overage charges (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__global_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Monthly (billing frequency) cap on all overage charges (0 means no cap)</TD><TD><INPUT TYPE="text" NAME="sqlradacct_daily__monthly_cap" VALUE="0"></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_daily__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_daily__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="sqlradacct_daily__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sqlradacct_daily__OPTIONS" VALUE="recur_fee,recur_included_input,a2billing_retail_cost_min_offp,recur_included_output,global_cap,unused_credit_cancel,delay_cancel,recur_total_cap,a2billing_retail_increment_offp,recur_hourly_charge,a2billing_retail_initblock_offp,a2billing_carrier_increment_offp,a2billing_type,recur_input_cap,setup_fee,recur_included_total,recur_input_charge,a2billing_carrer_initblock_offp,recur_total_charge,unused_credit_change,monthly_cap,a2billing_tariff,recur_output_cap,a2billing_carrier_cost_min,recur_included_hours,recur_hourly_cap,unused_credit_suspend,a2billing_simultaccess,recur_output_charge">
4346
4347       </DIV>
4348
4349
4350       <DIV ID="plandvoip_cdr"
4351            STYLE="display: none; z-index: 0"
4352       >
4353
4354         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="voip_cdr__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="voip_cdr__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="voip_cdr__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD><SELECT NAME="voip_cdr__cdr_svc_method"><OPTION VALUE="svc_phone.phonenum">Phone numbers (svc_phone.phonenum)<OPTION VALUE="svc_pbx.title">PBX name (svc_pbx.title)<OPTION VALUE="svc_pbx.svcnum">Freeside service # (svc_pbx.svcnum)<OPTION VALUE="svc_pbx.ip.src">PBX name to source IP address<OPTION VALUE="svc_pbx.ip.dst">PBX name to destination IP address<OPTION VALUE="svc_acct.username">Username (svc_acct.username)</SELECT></TD></TR><TR><TD ALIGN="right">Rating method</TD><TD><INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="prefix"> Rate calls by using destination prefix to look up a region and rate according to the internal prefix and rate tables<BR><INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="upstream_simple"> Simply pass through and charge the "upstream_price" amount.<BR><INPUT TYPE="radio" NAME="voip_cdr__rating_method" VALUE="single_price"> A single price per minute for all calls.<BR></TD></TR><TR><TD ALIGN="right">Rounding for destination prefix rating</TD><TD><SELECT NAME="voip_cdr__rounding"><OPTION VALUE="2">Two decimal places (cent)<OPTION VALUE="4">Four decimal places (100th of a cent)</SELECT></TD></TR><TR><TD ALIGN="right">Rate plan</TD><TD>
4355 <SELECT 
4356         NAME = "voip_cdr__ratenum"
4357         ID   = "ratenum"
4358         
4359         
4360         
4361 >
4362
4363
4364     <OPTION VALUE="">Select rate plan
4365
4366
4367
4368 </SELECT>
4369
4370
4371 </TD></TR><TR><TD ALIGN="right">Optional alternate intrastate rate plan</TD><TD>
4372 <SELECT 
4373         NAME = "voip_cdr__intrastate_ratenum"
4374         ID   = "ratenum"
4375         
4376         
4377         
4378 >
4379
4380
4381     <OPTION VALUE=""> 
4382
4383
4384
4385 </SELECT>
4386
4387
4388 </TD></TR><TR><TD ALIGN="right">Number of calls included at no usage charge</TD><TD><INPUT TYPE="text" NAME="voip_cdr__calls_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Charge per minute when using "single price per minute" rating method</TD><TD><INPUT TYPE="text" NAME="voip_cdr__min_charge" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included when using the "single price per minute" or "prefix" rating method</TD><TD><INPUT TYPE="text" NAME="voip_cdr__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity when using "single price per minute" rating method</TD><TD><SELECT NAME="voip_cdr__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Handling of calls without a rate in the rate table</TD><TD><SELECT NAME="voip_cdr__ignore_unrateable"><OPTION VALUE="" SELECTED>Exit with a fatal error<OPTION VALUE="1">Ignore and continue<OPTION VALUE="2">Flag for later review</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD><INPUT TYPE="text" NAME="voip_cdr__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Disable rating of CDR records based on the "src" field in addition to "charged_party"</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__disable_src" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Destination prefix for domestic CDR records</TD><TD><INPUT TYPE="text" NAME="voip_cdr__domestic_prefix" VALUE="1"></TD></TR><TR><TD ALIGN="right">Destination prefix for international CDR records</TD><TD><INPUT TYPE="text" NAME="voip_cdr__international_prefix" VALUE="011"></TD></TR><TR><TD ALIGN="right">Disable automatic toll-free processing</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__disable_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination number starts with any of these values: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_dst_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the source is more than this many digits:</TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_src_length_more" VALUE=""></TD></TR><TR><TD ALIGN="right">Do charge for CDRs where source is equal or greater than the specified digits, when accountcode is toll free</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__noskip_src_length_accountcode_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional alternate rate plan when accountcode is toll free: </TD><TD><SELECT NAME="voip_cdr__accountcode_tollfree_ratenum"><OPTION VALUE=""></SELECT></TD></TR><TR><TD ALIGN="right">When using an alternate rate plan for toll-free accountcodes, the CDR field to use in rating calculations</TD><TD><SELECT NAME="voip_cdr__accountcode_tollfree_field"><OPTION VALUE="dst">Destination (dst)<OPTION VALUE="src">Source (src)</SELECT></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do charge for CDRs where dst is less than the specified digits, when accountcode is toll free</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__noskip_dst_length_accountcode_tollfree" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where max_callers is less than or equal to this value: </TD><TD><INPUT TYPE="text" NAME="voip_cdr__skip_max_callers" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for calls between numbers belonging to the same customer</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__skip_same_customer" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Rewrite these (comma-separated) destination numbers to 411 for rating purposes (also ignore any carrierid check): </TD><TD><INPUT TYPE="text" NAME="voip_cdr__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD><SELECT NAME="voip_cdr__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD><SELECT NAME="voip_cdr__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD><SELECT NAME="voip_cdr__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not): </TD><TD><INPUT TYPE="text" NAME="voip_cdr__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show details for included / no-charge calls.</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__usage_showzero" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call (as well any setup fee, upon first payment).  Useful for prepaid.</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill for all phone numbers that were active during the billing period</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__bill_inactive_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only bill CDRs with a date during the package billing period</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__bill_only_pkg_dates" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Consider for tax purposes the number of lines to be svc_phones that may be provisioned rather than those that actually are.</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="voip_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_cdr__OPTIONS" VALUE="ignore_cdrtypenum,unused_credit_suspend,add_full_period,a2billing_carrier_cost_min,noskip_src_length_accountcode_tollfree,usage_mandate,a2billing_carrer_initblock_offp,accountcode_tollfree_field,ignore_calltypenum,ignore_disposition,use_carrierid,a2billing_retail_cost_min_offp,skip_dst_prefix,sec_granularity,skip_same_customer,usage_showzero,use_duration,cdr_svc_method,domestic_prefix,selfservice_inbound_format,recur_temporality,noskip_dst_length_accountcode_tollfree,disable_tollfree,cutoff_day,prorate_verbose,accountcode_tollfree_ratenum,disable_src,ratenum,skip_lastapp,skip_max_callers,prorate_defer_bill,output_format,recur_fee,a2billing_retail_increment_offp,suspend_bill,unused_credit_change,skip_src_length_more,a2billing_simultaccess,a2billing_tariff,calls_included,setup_fee,bill_inactive_svcs,skip_dcontext,disposition_in,a2billing_retail_initblock_offp,use_amaflags,bill_only_pkg_dates,intrastate_ratenum,skip_dst_length_less,prorate_round_day,411_rewrite,rounding,rating_method,recur_method,bill_every_call,international_prefix,skip_dstchannel_prefix,use_cdrtypenum,summarize_usage,min_charge,ignore_unrateable,a2billing_carrier_increment_offp,count_available_phones,min_included,selfservice_format,a2billing_type,usage_section,default_prefix,use_calltypenum,delay_cancel,unused_credit_cancel">
4389
4390       </DIV>
4391
4392
4393       <DIV ID="plandvoip_inbound"
4394            STYLE="display: none; z-index: 0"
4395       >
4396
4397         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="voip_inbound__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="voip_inbound__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="voip_inbound__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Charge per minute</TD><TD><INPUT TYPE="text" NAME="voip_inbound__min_charge" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD><INPUT TYPE="text" NAME="voip_inbound__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD><SELECT NAME="voip_inbound__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD><INPUT TYPE="text" NAME="voip_inbound__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_inbound__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values:</TD><TD><INPUT TYPE="text" NAME="voip_inbound__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD><INPUT TYPE="text" NAME="voip_inbound__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD><INPUT TYPE="text" NAME="voip_inbound__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value</TD><TD><INPUT TYPE="text" NAME="voip_inbound__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="voip_inbound__output_format"><OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="default">Default<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="basic">Basic<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="source_default">Default with source<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not)</TD><TD><INPUT TYPE="text" NAME="voip_inbound__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call.  Useful for prepaid.</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="voip_inbound__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_inbound__OPTIONS" VALUE="cutoff_day,a2billing_carrier_increment_offp,prorate_verbose,min_included,skip_lastapp,prorate_defer_bill,a2billing_type,output_format,usage_section,default_prefix,recur_fee,a2billing_retail_increment_offp,use_calltypenum,delay_cancel,unused_credit_cancel,use_duration,recur_method,bill_every_call,skip_dstchannel_prefix,use_cdrtypenum,recur_temporality,summarize_usage,min_charge,ignore_calltypenum,skip_dcontext,a2billing_retail_initblock_offp,disposition_in,ignore_disposition,use_amaflags,use_carrierid,a2billing_retail_cost_min_offp,skip_dst_length_less,sec_granularity,prorate_round_day,ignore_cdrtypenum,unused_credit_change,unused_credit_suspend,a2billing_simultaccess,add_full_period,a2billing_tariff,a2billing_carrier_cost_min,setup_fee,usage_mandate,a2billing_carrer_initblock_offp">
4398
4399       </DIV>
4400
4401
4402       <DIV ID="plandvoip_tiered"
4403            STYLE="display: none; z-index: 0"
4404       >
4405
4406         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="voip_tiered__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="voip_tiered__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="voip_tiered__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR service matching method</TD><TD><SELECT NAME="voip_tiered__cdr_svc_method"><OPTION VALUE="svc_phone.phonenum">Phone numbers (svc_phone.phonenum)<OPTION VALUE="svc_pbx.title">PBX name (svc_pbx.title)<OPTION VALUE="svc_pbx.svcnum">Freeside service # (svc_pbx.svcnum)<OPTION VALUE="svc_pbx.ip.src">PBX name to source IP address<OPTION VALUE="svc_pbx.ip.dst">PBX name to destination IP address<OPTION VALUE="svc_acct.username">Username (svc_acct.username)</SELECT></TD></TR><TR><TD ALIGN="right">Call direction when using phone number matching</TD><TD><SELECT NAME="voip_tiered__cdr_inout"><OPTION VALUE="outbound">Outbound<OPTION VALUE="inbound">Inbound<OPTION VALUE="outbound_inbound">Outbound and Inbound</SELECT></TD></TR><TR><TD ALIGN="right">Tier plan</TD><TD><SELECT NAME="voip_tiered__tiernum"></SELECT></TD></TR><TR><TD ALIGN="right">Rounding for destination prefix rating</TD><TD><SELECT NAME="voip_tiered__rounding"><OPTION VALUE="2">Two decimal places (cent)<OPTION VALUE="4">Four decimal places (100th of a cent)</SELECT></TD></TR><TR><TD ALIGN="right">Number of calls included at no usage charge</TD><TD><INPUT TYPE="text" NAME="voip_tiered__calls_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Minutes included</TD><TD><INPUT TYPE="text" NAME="voip_tiered__min_included" VALUE=""></TD></TR><TR><TD ALIGN="right">Granularity</TD><TD><SELECT NAME="voip_tiered__sec_granularity"><OPTION VALUE="1">1 second<OPTION VALUE="6">6 second<OPTION VALUE="30">30 second<OPTION VALUE="60">minute<OPTION VALUE="0">call</SELECT></TD></TR><TR><TD ALIGN="right">Default prefix optionally prepended to customer DID numbers when searching for CDR records</TD><TD><INPUT TYPE="text" NAME="voip_tiered__default_prefix" VALUE="+1"></TD></TR><TR><TD ALIGN="right">Disable rating of CDR records based on the "src" field in addition to "charged_party"</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__disable_src" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the amaflags field is set to "2" ("BILL"/"BILLING").</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__use_amaflags" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Carrier ID is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__use_carrierid" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__use_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Type is set to this cdrtypenum: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__ignore_cdrtypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__use_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the CDR Call Type is set to this calltypenum: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__ignore_calltypenum" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__ignore_disposition" VALUE=""></TD></TR><TR><TD ALIGN="right">Only charge for CDRs where the Disposition is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__disposition_in" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dcontext is set to any of these (comma-separated) values: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_dcontext" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination number starts with any of these values: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_dst_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the dstchannel starts with:</TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_dstchannel_prefix" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the source is more than this many digits:</TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_src_length_more" VALUE=""></TD></TR><TR><TD ALIGN="right">When using an alternate rate plan for toll-free accountcodes, the CDR field to use in rating calculations</TD><TD><SELECT NAME="voip_tiered__accountcode_tollfree_field"><OPTION VALUE="dst">Destination (dst)<OPTION VALUE="src">Source (src)</SELECT></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the destination is less than this many digits:</TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_dst_length_less" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where the lastapp matches this value: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_lastapp" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for CDRs where max_callers is less than or equal to this value: </TD><TD><INPUT TYPE="text" NAME="voip_tiered__skip_max_callers" VALUE=""></TD></TR><TR><TD ALIGN="right">Do not charge for calls between numbers belonging to the same customer</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__skip_same_customer" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Calculate usage based on the duration field instead of the billsec field</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__use_duration" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Rewrite these (comma-separated) destination numbers to 411 for rating purposes (also ignore any carrierid check): </TD><TD><INPUT TYPE="text" NAME="voip_tiered__411_rewrite" VALUE=""></TD></TR><TR><TD ALIGN="right">CDR display format for invoices</TD><TD><SELECT NAME="voip_tiered__output_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">CDR display format for selfservice</TD><TD><SELECT NAME="voip_tiered__selfservice_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Inbound CDR display format for selfservice</TD><TD><SELECT NAME="voip_tiered__selfservice_inbound_format"><OPTION VALUE="" SELECTED><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="default">Default<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="source_default">Default with source<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section.  The section is defined in the next option.</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Section in which to place usage charges (whether separated or not): </TD><TD><INPUT TYPE="text" NAME="voip_tiered__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show details for included / no-charge calls.</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__usage_showzero" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Generate an invoice immediately for every call (as well any setup fee, upon first payment).  Useful for prepaid.</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__bill_every_call" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill for all phone numbers that were active during the billing period</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__bill_inactive_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Only bill CDRs with a date during the package billing period</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__bill_only_pkg_dates" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Consider for tax purposes the number of lines to be svc_phones that may be provisioned rather than those that actually are.</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__count_available_phones" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="voip_tiered__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="voip_tiered__OPTIONS" VALUE="a2billing_retail_cost_min_offp,skip_same_customer,skip_dst_prefix,sec_granularity,ignore_calltypenum,use_carrierid,ignore_disposition,noskip_src_length_accountcode_tollfree,accountcode_tollfree_field,a2billing_carrer_initblock_offp,usage_mandate,ignore_cdrtypenum,add_full_period,a2billing_carrier_cost_min,unused_credit_suspend,recur_fee,output_format,a2billing_retail_increment_offp,suspend_bill,prorate_verbose,accountcode_tollfree_ratenum,cutoff_day,skip_max_callers,prorate_defer_bill,disable_src,ratenum,skip_lastapp,recur_temporality,domestic_prefix,selfservice_inbound_format,disable_tollfree,noskip_dst_length_accountcode_tollfree,cdr_inout,usage_showzero,use_duration,cdr_svc_method,intrastate_ratenum,skip_dst_length_less,bill_only_pkg_dates,prorate_round_day,411_rewrite,disposition_in,a2billing_retail_initblock_offp,skip_dcontext,use_amaflags,setup_fee,bill_inactive_svcs,unused_credit_change,a2billing_tariff,calls_included,skip_src_length_more,a2billing_simultaccess,usage_section,default_prefix,delay_cancel,unused_credit_cancel,use_calltypenum,a2billing_carrier_increment_offp,ignore_unrateable,count_available_phones,a2billing_type,tiernum,min_included,selfservice_format,use_cdrtypenum,skip_dstchannel_prefix,summarize_usage,min_charge,rounding,recur_method,bill_every_call,international_prefix,rating_method">
4407
4408       </DIV>
4409
4410
4411       <DIV ID="plandcdr_termination"
4412            STYLE="display: none; z-index: 0"
4413       >
4414
4415         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="cdr_termination__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="cdr_termination__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="cdr_termination__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="cdr_termination__output_format"><OPTION VALUE="simple2">Simple with source<OPTION VALUE="basic_upstream_dst_regionname">Basic with upstream destination name<OPTION VALUE="sum_count">Number of calls, one line per service<OPTION VALUE="accountcode_default">Default plus accountcode<OPTION VALUE="description_default">Default with description field as destination<OPTION VALUE="source_default">Default with source<OPTION VALUE="basic">Basic<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="default">Default<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD><INPUT TYPE="text" NAME="cdr_termination__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="cdr_termination__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="cdr_termination__OPTIONS" VALUE="usage_mandate,a2billing_carrer_initblock_offp,summarize_usage,setup_fee,recur_temporality,a2billing_simultaccess,unused_credit_suspend,a2billing_carrier_cost_min,add_full_period,recur_method,a2billing_tariff,unused_credit_change,prorate_round_day,a2billing_retail_increment_offp,unused_credit_cancel,delay_cancel,usage_section,output_format,a2billing_retail_cost_min_offp,recur_fee,a2billing_type,prorate_defer_bill,cutoff_day,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp,prorate_verbose">
4416
4417       </DIV>
4418
4419
4420       <DIV ID="plandprepaid_nibblebill"
4421            STYLE="display: none; z-index: 0"
4422       >
4423
4424         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Nibble rate</TD><TD><INPUT TYPE="text" NAME="prepaid_nibblebill__nibble_rate" VALUE=""></TD></TR></TABLE><INPUT TYPE="hidden" NAME="prepaid_nibblebill__OPTIONS" VALUE="setup_fee,recur_fee,nibble_rate">
4425
4426       </DIV>
4427
4428
4429       <DIV ID="plandbulk_simple"
4430            STYLE="display: none; z-index: 0"
4431       >
4432
4433         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Setup fee for each new service</TD><TD><INPUT TYPE="text" NAME="bulk_simple__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD><INPUT TYPE="text" NAME="bulk_simple__svc_recur_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Only charge fees for these services</TD><TD><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><INPUT TYPE="checkbox" NAME="bulk_simple__summarize_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="bulk_simple__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="bulk_simple__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="bulk_simple__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="bulk_simple__OPTIONS" VALUE="a2billing_type,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp,summarize_svcs,a2billing_retail_increment_offp,delay_cancel,unused_credit_cancel,a2billing_retail_cost_min_offp,recur_fee,a2billing_simultaccess,svc_recur_fee,unused_credit_suspend,a2billing_carrier_cost_min,a2billing_tariff,unused_credit_change,only_svcs,a2billing_carrer_initblock_offp,svc_setup_fee,setup_fee">
4434
4435       </DIV>
4436
4437
4438       <DIV ID="plandbulk"
4439            STYLE="display: none; z-index: 0"
4440       >
4441
4442         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Don't prorate recurring fees on services active for a partial month</TD><TD><INPUT TYPE="checkbox" NAME="bulk__no_prorate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Setup fee for each new service</TD><TD><INPUT TYPE="text" NAME="bulk__svc_setup_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Recurring fee for each service</TD><TD><INPUT TYPE="text" NAME="bulk__svc_recur_fee" VALUE="0"></TD></TR><TR><TD ALIGN="right">Only charge fees for these services</TD><TD><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><INPUT TYPE="checkbox" NAME="bulk__summarize_svcs" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="bulk__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="bulk__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="bulk__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="bulk__OPTIONS" VALUE="delay_cancel,unused_credit_cancel,a2billing_retail_increment_offp,recur_fee,a2billing_retail_cost_min_offp,a2billing_type,a2billing_retail_initblock_offp,summarize_svcs,a2billing_carrier_increment_offp,a2billing_carrer_initblock_offp,only_svcs,svc_setup_fee,no_prorate,setup_fee,a2billing_carrier_cost_min,a2billing_tariff,a2billing_simultaccess,svc_recur_fee,unused_credit_suspend,unused_credit_change">
4443
4444       </DIV>
4445
4446
4447       <DIV ID="plandagent"
4448            STYLE="display: none; z-index: 0"
4449       >
4450
4451         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Billing Day (1 - 28)</TD><TD><INPUT TYPE="text" NAME="agent__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="agent__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Disable prorating bulk packages (charge full price for packages active only a portion of the month)</TD><TD><INPUT TYPE="checkbox" NAME="agent__no_pkg_prorate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Separate customer from package display on invoices</TD><TD><INPUT TYPE="checkbox" NAME="agent__display_separate_cust" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill wholesale on cost only, disabling the price fallback</TD><TD><INPUT TYPE="checkbox" NAME="agent__cost_only" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="agent__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="agent__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="agent__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="agent__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="agent__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="agent__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="agent__OPTIONS" VALUE="cutoff_day,a2billing_carrier_increment_offp,prorate_verbose,display_separate_cust,a2billing_retail_initblock_offp,sync_bill_date,a2billing_type,prorate_defer_bill,cost_only,a2billing_retail_cost_min_offp,recur_fee,a2billing_retail_increment_offp,prorate_round_day,delay_cancel,unused_credit_cancel,unused_credit_change,unused_credit_suspend,no_pkg_prorate,a2billing_simultaccess,a2billing_tariff,add_full_period,a2billing_carrier_cost_min,setup_fee,recur_temporality,a2billing_carrer_initblock_offp">
4452
4453       </DIV>
4454
4455
4456       <DIV ID="plandagent_cdr"
4457            STYLE="display: none; z-index: 0"
4458       >
4459
4460         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Charge recurring fee for period</TD><TD><SELECT NAME="agent_cdr__recur_temporality"><OPTION VALUE="upcoming">Upcoming (future)<OPTION VALUE="preceding">Preceding (past)</SELECT></TD></TR><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="agent_cdr__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="agent_cdr__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">CDR invoice display format</TD><TD><SELECT NAME="agent_cdr__output_format"><OPTION VALUE="simple">Simple<OPTION VALUE="sum_duration_prefix">Summary, one line per destination prefix<OPTION VALUE="sum_count_class">Summary, one line per usage class<OPTION VALUE="basic">Basic<OPTION VALUE="sum_duration">Summary, one line per service<OPTION VALUE="default">Default<OPTION VALUE="accountcode_simple">Simple with accountcode<OPTION VALUE="accountcode_default">Default plus 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="description_default">Default with description field as destination<OPTION VALUE="source_default">Default with source<OPTION VALUE="simple2">Simple with source</SELECT></TD></TR><TR><TD ALIGN="right">Section in which to place separate usage charges</TD><TD><INPUT TYPE="text" NAME="agent_cdr__usage_section" VALUE=""></TD></TR><TR><TD ALIGN="right">Include usage summary with recurring charges when usage is in separate section</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__summarize_usage" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Always put usage details in separate section</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__usage_mandate" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="agent_cdr__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="agent_cdr__OPTIONS" VALUE="recur_fee,usage_section,output_format,a2billing_retail_cost_min_offp,delay_cancel,unused_credit_cancel,a2billing_retail_increment_offp,prorate_round_day,prorate_verbose,a2billing_retail_initblock_offp,cutoff_day,a2billing_carrier_increment_offp,a2billing_type,prorate_defer_bill,recur_temporality,setup_fee,summarize_usage,a2billing_carrer_initblock_offp,usage_mandate,unused_credit_change,recur_method,a2billing_tariff,add_full_period,a2billing_carrier_cost_min,unused_credit_suspend,a2billing_simultaccess">
4461
4462       </DIV>
4463
4464
4465       <DIV ID="plandtorrus_bw_percentile"
4466            STYLE="display: none; z-index: 0"
4467       >
4468
4469         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included megabytes/sec (95th percentile)</TD><TD><INPUT TYPE="text" NAME="torrus_bw_percentile__base_mbps" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge per megabyte/sec (95th percentile)</TD><TD><INPUT TYPE="text" NAME="torrus_bw_percentile__mbps_rate" VALUE="0"></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="torrus_bw_percentile__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_percentile__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="torrus_bw_percentile__OPTIONS" VALUE="recur_temporality,setup_fee,a2billing_carrer_initblock_offp,unused_credit_change,base_mbps,add_full_period,a2billing_tariff,bill_suspend_as_cancel,a2billing_carrier_cost_min,unused_credit_suspend,a2billing_simultaccess,recur_fee,externalid,a2billing_retail_cost_min_offp,unused_credit_cancel,delay_cancel,a2billing_retail_increment_offp,prorate_round_day,suspend_bill,a2billing_retail_initblock_offp,a2billing_carrier_increment_offp,cutoff_day,prorate_defer_bill,a2billing_type,unsuspend_adjust_bill,bill_recur_on_cancel,start_1st,mbps_rate,sync_bill_date">
4470
4471       </DIV>
4472
4473
4474       <DIV ID="plandtorrus_bw_usage"
4475            STYLE="display: none; z-index: 0"
4476       >
4477
4478         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Included gigabytes</TD><TD><INPUT TYPE="text" NAME="torrus_bw_usage__base_gb" VALUE="0"></TD></TR><TR><TD ALIGN="right">Charge per gigabyte</TD><TD><INPUT TYPE="text" NAME="torrus_bw_usage__gb_rate" VALUE="0"></TD></TR><TR><TD ALIGN="right">Auto-add a start date to the 1st, ignoring the current month.</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__start_1st" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, defer the bill until the customer's next bill date</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When synchronizing, round the prorated period to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">Continue recurring billing while suspended</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__suspend_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Adjust next bill date forward when unsuspending</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__unsuspend_adjust_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill the last period on cancellation</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__bill_recur_on_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Bill immediately upon suspension</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__bill_suspend_as_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Optional External ID</TD><TD><INPUT TYPE="text" NAME="torrus_bw_usage__externalid" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="torrus_bw_usage__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="torrus_bw_usage__OPTIONS" VALUE="delay_cancel,unused_credit_cancel,prorate_round_day,suspend_bill,a2billing_retail_increment_offp,recur_fee,a2billing_retail_cost_min_offp,externalid,a2billing_type,prorate_defer_bill,start_1st,sync_bill_date,unsuspend_adjust_bill,bill_recur_on_cancel,a2billing_retail_initblock_offp,cutoff_day,a2billing_carrier_increment_offp,a2billing_carrer_initblock_offp,recur_temporality,gb_rate,setup_fee,a2billing_carrier_cost_min,add_full_period,bill_suspend_as_cancel,base_gb,a2billing_tariff,a2billing_simultaccess,unused_credit_suspend,unused_credit_change">
4479
4480       </DIV>
4481
4482
4483       <DIV ID="plandsql_generic"
4484            STYLE="display: none; z-index: 0"
4485       >
4486
4487         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Units included</TD><TD><INPUT TYPE="text" NAME="sql_generic__recur_included" VALUE="0"></TD></TR><TR><TD ALIGN="right">Additional charge per unit</TD><TD><INPUT TYPE="text" NAME="sql_generic__recur_unit_charge" VALUE="0"></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD><INPUT TYPE="text" NAME="sql_generic__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_generic__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_generic__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD><INPUT TYPE="text" NAME="sql_generic__query" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="sql_generic__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="sql_generic__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="sql_generic__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sql_generic__OPTIONS" VALUE="a2billing_carrer_initblock_offp,db_username,datasrc,setup_fee,db_password,a2billing_simultaccess,unused_credit_suspend,recur_included,a2billing_carrier_cost_min,a2billing_tariff,recur_unit_charge,unused_credit_change,a2billing_retail_increment_offp,unused_credit_cancel,delay_cancel,a2billing_retail_cost_min_offp,recur_fee,query,a2billing_type,a2billing_carrier_increment_offp,a2billing_retail_initblock_offp">
4488
4489       </DIV>
4490
4491
4492       <DIV ID="plandsql_external"
4493            STYLE="display: none; z-index: 0"
4494       >
4495
4496         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Recurring fee method</TD><TD><SELECT NAME="sql_external__recur_method"><OPTION VALUE="anniversary">Charge the recurring fee at the frequency specified above<OPTION VALUE="prorate">Charge a prorated fee the first time (selectable billing date)<OPTION VALUE="subscription">Charge the full fee for the first partial period (selectable billing date)</SELECT></TD></TR><TR><TD ALIGN="right">Billing Day (1 - 28) for prorating or subscription</TD><TD><INPUT TYPE="text" NAME="sql_external__cutoff_day" VALUE="1"></TD></TR><TR><TD ALIGN="right">When prorating, defer the first bill until the billing day</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__prorate_defer_bill" VALUE=1 ></TD></TR><TR><TD ALIGN="right">When prorating, round to the nearest full day</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__prorate_round_day" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">When prorating first month, also bill for one full period after that</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__add_full_period" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Show prorate details on the invoice</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__prorate_verbose" VALUE=1  CHECKED></TD></TR><TR><TD ALIGN="right">DBI data source</TD><TD><INPUT TYPE="text" NAME="sql_external__datasrc" VALUE=""></TD></TR><TR><TD ALIGN="right">Database username</TD><TD><INPUT TYPE="text" NAME="sql_external__db_username" VALUE=""></TD></TR><TR><TD ALIGN="right">Database password</TD><TD><INPUT TYPE="text" NAME="sql_external__db_password" VALUE=""></TD></TR><TR><TD ALIGN="right">SQL query</TD><TD><INPUT TYPE="text" NAME="sql_external__query" VALUE=""></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service at cancellation</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__unused_credit_cancel" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when suspending</TD><TD><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="sql_external__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="sql_external__OPTIONS" VALUE="a2billing_retail_initblock_offp,prorate_verbose,cutoff_day,a2billing_carrier_increment_offp,prorate_defer_bill,a2billing_type,query,recur_fee,a2billing_retail_cost_min_offp,unused_credit_cancel,delay_cancel,prorate_round_day,a2billing_retail_increment_offp,unused_credit_change,a2billing_carrier_cost_min,a2billing_tariff,recur_method,add_full_period,a2billing_simultaccess,unused_credit_suspend,db_password,datasrc,setup_fee,a2billing_carrer_initblock_offp,db_username">
4497
4498       </DIV>
4499
4500
4501       <DIV ID="plandcurrency_fixed"
4502            STYLE="display: none; z-index: 0"
4503       >
4504
4505         <TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right">Recurring fee method</TD><TD><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><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><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><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><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><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><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><span title="You must set the 'suspend_credit_type' option in Configuration->Settings to gain access to this option.">N/A</span></TD></TR><TR><TD ALIGN="right">Credit the customer for the unused portion of service when changing packages</TD><TD><INPUT TYPE="checkbox" NAME="currency_fixed__unused_credit_change" VALUE=1 ></TD></TR><TR><TD ALIGN="right">Automatically suspend for one day before cancelling</TD><TD><INPUT TYPE="checkbox" NAME="currency_fixed__delay_cancel" VALUE=1 ></TD></TR></TABLE><INPUT TYPE="hidden" NAME="currency_fixed__OPTIONS" VALUE="a2billing_carrer_initblock_offp,setup_fee,a2billing_tariff,recur_method,add_full_period,a2billing_carrier_cost_min,unused_credit_suspend,a2billing_simultaccess,unused_credit_change,unused_credit_cancel,delay_cancel,a2billing_retail_increment_offp,prorate_round_day,recur_fee,a2billing_retail_cost_min_offp,prorate_defer_bill,a2billing_type,prorate_verbose,a2billing_retail_initblock_offp,a2billing_carrier_increment_offp,cutoff_day">
4506
4507       </DIV>
4508
4509
4510 <SCRIPT TYPE="text/javascript">
4511
4512       function planchanged(what) {
4513
4514         aux_planchanged(what);
4515
4516         var planlayer = what.options[what.selectedIndex].value;
4517
4518           if (planlayer == "flat" ) {
4519
4520               document.getElementById('plandflat_delayed').style.display = "none";
4521               document.getElementById('plandflat_delayed').style.zIndex = 0;
4522               document.getElementById('plandflat_introrate').style.display = "none";
4523               document.getElementById('plandflat_introrate').style.zIndex = 0;
4524               document.getElementById('plandprorate_calendar').style.display = "none";
4525               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4526               document.getElementById('plandprorate').style.display = "none";
4527               document.getElementById('plandprorate').style.zIndex = 0;
4528               document.getElementById('plandprorate_delayed').style.display = "none";
4529               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4530               document.getElementById('plandprepaid').style.display = "none";
4531               document.getElementById('plandprepaid').style.zIndex = 0;
4532               document.getElementById('plandsubscription').style.display = "none";
4533               document.getElementById('plandsubscription').style.zIndex = 0;
4534               document.getElementById('plandsqlradacct_hour').style.display = "none";
4535               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4536               document.getElementById('plandsqlradacct_daily').style.display = "none";
4537               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4538               document.getElementById('plandvoip_cdr').style.display = "none";
4539               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4540               document.getElementById('plandvoip_inbound').style.display = "none";
4541               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4542               document.getElementById('plandvoip_tiered').style.display = "none";
4543               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4544               document.getElementById('plandcdr_termination').style.display = "none";
4545               document.getElementById('plandcdr_termination').style.zIndex = 0;
4546               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4547               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4548               document.getElementById('plandbulk_simple').style.display = "none";
4549               document.getElementById('plandbulk_simple').style.zIndex = 0;
4550               document.getElementById('plandbulk').style.display = "none";
4551               document.getElementById('plandbulk').style.zIndex = 0;
4552               document.getElementById('plandagent').style.display = "none";
4553               document.getElementById('plandagent').style.zIndex = 0;
4554               document.getElementById('plandagent_cdr').style.display = "none";
4555               document.getElementById('plandagent_cdr').style.zIndex = 0;
4556               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4557               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4558               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4559               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4560               document.getElementById('plandsql_generic').style.display = "none";
4561               document.getElementById('plandsql_generic').style.zIndex = 0;
4562               document.getElementById('plandsql_external').style.display = "none";
4563               document.getElementById('plandsql_external').style.zIndex = 0;
4564               document.getElementById('plandcurrency_fixed').style.display = "none";
4565               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4566
4567             document.getElementById('plandflat').style.display = "";
4568             document.getElementById('plandflat').style.zIndex = 1;
4569
4570           }
4571           if (planlayer == "flat_delayed" ) {
4572
4573               document.getElementById('plandflat').style.display = "none";
4574               document.getElementById('plandflat').style.zIndex = 0;
4575               document.getElementById('plandflat_introrate').style.display = "none";
4576               document.getElementById('plandflat_introrate').style.zIndex = 0;
4577               document.getElementById('plandprorate_calendar').style.display = "none";
4578               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4579               document.getElementById('plandprorate').style.display = "none";
4580               document.getElementById('plandprorate').style.zIndex = 0;
4581               document.getElementById('plandprorate_delayed').style.display = "none";
4582               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4583               document.getElementById('plandprepaid').style.display = "none";
4584               document.getElementById('plandprepaid').style.zIndex = 0;
4585               document.getElementById('plandsubscription').style.display = "none";
4586               document.getElementById('plandsubscription').style.zIndex = 0;
4587               document.getElementById('plandsqlradacct_hour').style.display = "none";
4588               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4589               document.getElementById('plandsqlradacct_daily').style.display = "none";
4590               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4591               document.getElementById('plandvoip_cdr').style.display = "none";
4592               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4593               document.getElementById('plandvoip_inbound').style.display = "none";
4594               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4595               document.getElementById('plandvoip_tiered').style.display = "none";
4596               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4597               document.getElementById('plandcdr_termination').style.display = "none";
4598               document.getElementById('plandcdr_termination').style.zIndex = 0;
4599               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4600               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4601               document.getElementById('plandbulk_simple').style.display = "none";
4602               document.getElementById('plandbulk_simple').style.zIndex = 0;
4603               document.getElementById('plandbulk').style.display = "none";
4604               document.getElementById('plandbulk').style.zIndex = 0;
4605               document.getElementById('plandagent').style.display = "none";
4606               document.getElementById('plandagent').style.zIndex = 0;
4607               document.getElementById('plandagent_cdr').style.display = "none";
4608               document.getElementById('plandagent_cdr').style.zIndex = 0;
4609               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4610               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4611               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4612               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4613               document.getElementById('plandsql_generic').style.display = "none";
4614               document.getElementById('plandsql_generic').style.zIndex = 0;
4615               document.getElementById('plandsql_external').style.display = "none";
4616               document.getElementById('plandsql_external').style.zIndex = 0;
4617               document.getElementById('plandcurrency_fixed').style.display = "none";
4618               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4619
4620             document.getElementById('plandflat_delayed').style.display = "";
4621             document.getElementById('plandflat_delayed').style.zIndex = 1;
4622
4623           }
4624           if (planlayer == "flat_introrate" ) {
4625
4626               document.getElementById('plandflat').style.display = "none";
4627               document.getElementById('plandflat').style.zIndex = 0;
4628               document.getElementById('plandflat_delayed').style.display = "none";
4629               document.getElementById('plandflat_delayed').style.zIndex = 0;
4630               document.getElementById('plandprorate_calendar').style.display = "none";
4631               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4632               document.getElementById('plandprorate').style.display = "none";
4633               document.getElementById('plandprorate').style.zIndex = 0;
4634               document.getElementById('plandprorate_delayed').style.display = "none";
4635               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4636               document.getElementById('plandprepaid').style.display = "none";
4637               document.getElementById('plandprepaid').style.zIndex = 0;
4638               document.getElementById('plandsubscription').style.display = "none";
4639               document.getElementById('plandsubscription').style.zIndex = 0;
4640               document.getElementById('plandsqlradacct_hour').style.display = "none";
4641               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4642               document.getElementById('plandsqlradacct_daily').style.display = "none";
4643               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4644               document.getElementById('plandvoip_cdr').style.display = "none";
4645               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4646               document.getElementById('plandvoip_inbound').style.display = "none";
4647               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4648               document.getElementById('plandvoip_tiered').style.display = "none";
4649               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4650               document.getElementById('plandcdr_termination').style.display = "none";
4651               document.getElementById('plandcdr_termination').style.zIndex = 0;
4652               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4653               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4654               document.getElementById('plandbulk_simple').style.display = "none";
4655               document.getElementById('plandbulk_simple').style.zIndex = 0;
4656               document.getElementById('plandbulk').style.display = "none";
4657               document.getElementById('plandbulk').style.zIndex = 0;
4658               document.getElementById('plandagent').style.display = "none";
4659               document.getElementById('plandagent').style.zIndex = 0;
4660               document.getElementById('plandagent_cdr').style.display = "none";
4661               document.getElementById('plandagent_cdr').style.zIndex = 0;
4662               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4663               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4664               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4665               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4666               document.getElementById('plandsql_generic').style.display = "none";
4667               document.getElementById('plandsql_generic').style.zIndex = 0;
4668               document.getElementById('plandsql_external').style.display = "none";
4669               document.getElementById('plandsql_external').style.zIndex = 0;
4670               document.getElementById('plandcurrency_fixed').style.display = "none";
4671               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4672
4673             document.getElementById('plandflat_introrate').style.display = "";
4674             document.getElementById('plandflat_introrate').style.zIndex = 1;
4675
4676           }
4677           if (planlayer == "prorate_calendar" ) {
4678
4679               document.getElementById('plandflat').style.display = "none";
4680               document.getElementById('plandflat').style.zIndex = 0;
4681               document.getElementById('plandflat_delayed').style.display = "none";
4682               document.getElementById('plandflat_delayed').style.zIndex = 0;
4683               document.getElementById('plandflat_introrate').style.display = "none";
4684               document.getElementById('plandflat_introrate').style.zIndex = 0;
4685               document.getElementById('plandprorate').style.display = "none";
4686               document.getElementById('plandprorate').style.zIndex = 0;
4687               document.getElementById('plandprorate_delayed').style.display = "none";
4688               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4689               document.getElementById('plandprepaid').style.display = "none";
4690               document.getElementById('plandprepaid').style.zIndex = 0;
4691               document.getElementById('plandsubscription').style.display = "none";
4692               document.getElementById('plandsubscription').style.zIndex = 0;
4693               document.getElementById('plandsqlradacct_hour').style.display = "none";
4694               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4695               document.getElementById('plandsqlradacct_daily').style.display = "none";
4696               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4697               document.getElementById('plandvoip_cdr').style.display = "none";
4698               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4699               document.getElementById('plandvoip_inbound').style.display = "none";
4700               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4701               document.getElementById('plandvoip_tiered').style.display = "none";
4702               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4703               document.getElementById('plandcdr_termination').style.display = "none";
4704               document.getElementById('plandcdr_termination').style.zIndex = 0;
4705               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4706               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4707               document.getElementById('plandbulk_simple').style.display = "none";
4708               document.getElementById('plandbulk_simple').style.zIndex = 0;
4709               document.getElementById('plandbulk').style.display = "none";
4710               document.getElementById('plandbulk').style.zIndex = 0;
4711               document.getElementById('plandagent').style.display = "none";
4712               document.getElementById('plandagent').style.zIndex = 0;
4713               document.getElementById('plandagent_cdr').style.display = "none";
4714               document.getElementById('plandagent_cdr').style.zIndex = 0;
4715               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4716               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4717               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4718               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4719               document.getElementById('plandsql_generic').style.display = "none";
4720               document.getElementById('plandsql_generic').style.zIndex = 0;
4721               document.getElementById('plandsql_external').style.display = "none";
4722               document.getElementById('plandsql_external').style.zIndex = 0;
4723               document.getElementById('plandcurrency_fixed').style.display = "none";
4724               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4725
4726             document.getElementById('plandprorate_calendar').style.display = "";
4727             document.getElementById('plandprorate_calendar').style.zIndex = 1;
4728
4729           }
4730           if (planlayer == "prorate" ) {
4731
4732               document.getElementById('plandflat').style.display = "none";
4733               document.getElementById('plandflat').style.zIndex = 0;
4734               document.getElementById('plandflat_delayed').style.display = "none";
4735               document.getElementById('plandflat_delayed').style.zIndex = 0;
4736               document.getElementById('plandflat_introrate').style.display = "none";
4737               document.getElementById('plandflat_introrate').style.zIndex = 0;
4738               document.getElementById('plandprorate_calendar').style.display = "none";
4739               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4740               document.getElementById('plandprorate_delayed').style.display = "none";
4741               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4742               document.getElementById('plandprepaid').style.display = "none";
4743               document.getElementById('plandprepaid').style.zIndex = 0;
4744               document.getElementById('plandsubscription').style.display = "none";
4745               document.getElementById('plandsubscription').style.zIndex = 0;
4746               document.getElementById('plandsqlradacct_hour').style.display = "none";
4747               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4748               document.getElementById('plandsqlradacct_daily').style.display = "none";
4749               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4750               document.getElementById('plandvoip_cdr').style.display = "none";
4751               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4752               document.getElementById('plandvoip_inbound').style.display = "none";
4753               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4754               document.getElementById('plandvoip_tiered').style.display = "none";
4755               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4756               document.getElementById('plandcdr_termination').style.display = "none";
4757               document.getElementById('plandcdr_termination').style.zIndex = 0;
4758               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4759               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4760               document.getElementById('plandbulk_simple').style.display = "none";
4761               document.getElementById('plandbulk_simple').style.zIndex = 0;
4762               document.getElementById('plandbulk').style.display = "none";
4763               document.getElementById('plandbulk').style.zIndex = 0;
4764               document.getElementById('plandagent').style.display = "none";
4765               document.getElementById('plandagent').style.zIndex = 0;
4766               document.getElementById('plandagent_cdr').style.display = "none";
4767               document.getElementById('plandagent_cdr').style.zIndex = 0;
4768               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4769               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4770               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4771               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4772               document.getElementById('plandsql_generic').style.display = "none";
4773               document.getElementById('plandsql_generic').style.zIndex = 0;
4774               document.getElementById('plandsql_external').style.display = "none";
4775               document.getElementById('plandsql_external').style.zIndex = 0;
4776               document.getElementById('plandcurrency_fixed').style.display = "none";
4777               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4778
4779             document.getElementById('plandprorate').style.display = "";
4780             document.getElementById('plandprorate').style.zIndex = 1;
4781
4782           }
4783           if (planlayer == "prorate_delayed" ) {
4784
4785               document.getElementById('plandflat').style.display = "none";
4786               document.getElementById('plandflat').style.zIndex = 0;
4787               document.getElementById('plandflat_delayed').style.display = "none";
4788               document.getElementById('plandflat_delayed').style.zIndex = 0;
4789               document.getElementById('plandflat_introrate').style.display = "none";
4790               document.getElementById('plandflat_introrate').style.zIndex = 0;
4791               document.getElementById('plandprorate_calendar').style.display = "none";
4792               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4793               document.getElementById('plandprorate').style.display = "none";
4794               document.getElementById('plandprorate').style.zIndex = 0;
4795               document.getElementById('plandprepaid').style.display = "none";
4796               document.getElementById('plandprepaid').style.zIndex = 0;
4797               document.getElementById('plandsubscription').style.display = "none";
4798               document.getElementById('plandsubscription').style.zIndex = 0;
4799               document.getElementById('plandsqlradacct_hour').style.display = "none";
4800               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4801               document.getElementById('plandsqlradacct_daily').style.display = "none";
4802               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4803               document.getElementById('plandvoip_cdr').style.display = "none";
4804               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4805               document.getElementById('plandvoip_inbound').style.display = "none";
4806               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4807               document.getElementById('plandvoip_tiered').style.display = "none";
4808               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4809               document.getElementById('plandcdr_termination').style.display = "none";
4810               document.getElementById('plandcdr_termination').style.zIndex = 0;
4811               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4812               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4813               document.getElementById('plandbulk_simple').style.display = "none";
4814               document.getElementById('plandbulk_simple').style.zIndex = 0;
4815               document.getElementById('plandbulk').style.display = "none";
4816               document.getElementById('plandbulk').style.zIndex = 0;
4817               document.getElementById('plandagent').style.display = "none";
4818               document.getElementById('plandagent').style.zIndex = 0;
4819               document.getElementById('plandagent_cdr').style.display = "none";
4820               document.getElementById('plandagent_cdr').style.zIndex = 0;
4821               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4822               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4823               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4824               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4825               document.getElementById('plandsql_generic').style.display = "none";
4826               document.getElementById('plandsql_generic').style.zIndex = 0;
4827               document.getElementById('plandsql_external').style.display = "none";
4828               document.getElementById('plandsql_external').style.zIndex = 0;
4829               document.getElementById('plandcurrency_fixed').style.display = "none";
4830               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4831
4832             document.getElementById('plandprorate_delayed').style.display = "";
4833             document.getElementById('plandprorate_delayed').style.zIndex = 1;
4834
4835           }
4836           if (planlayer == "prepaid" ) {
4837
4838               document.getElementById('plandflat').style.display = "none";
4839               document.getElementById('plandflat').style.zIndex = 0;
4840               document.getElementById('plandflat_delayed').style.display = "none";
4841               document.getElementById('plandflat_delayed').style.zIndex = 0;
4842               document.getElementById('plandflat_introrate').style.display = "none";
4843               document.getElementById('plandflat_introrate').style.zIndex = 0;
4844               document.getElementById('plandprorate_calendar').style.display = "none";
4845               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4846               document.getElementById('plandprorate').style.display = "none";
4847               document.getElementById('plandprorate').style.zIndex = 0;
4848               document.getElementById('plandprorate_delayed').style.display = "none";
4849               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4850               document.getElementById('plandsubscription').style.display = "none";
4851               document.getElementById('plandsubscription').style.zIndex = 0;
4852               document.getElementById('plandsqlradacct_hour').style.display = "none";
4853               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4854               document.getElementById('plandsqlradacct_daily').style.display = "none";
4855               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4856               document.getElementById('plandvoip_cdr').style.display = "none";
4857               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4858               document.getElementById('plandvoip_inbound').style.display = "none";
4859               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4860               document.getElementById('plandvoip_tiered').style.display = "none";
4861               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4862               document.getElementById('plandcdr_termination').style.display = "none";
4863               document.getElementById('plandcdr_termination').style.zIndex = 0;
4864               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4865               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4866               document.getElementById('plandbulk_simple').style.display = "none";
4867               document.getElementById('plandbulk_simple').style.zIndex = 0;
4868               document.getElementById('plandbulk').style.display = "none";
4869               document.getElementById('plandbulk').style.zIndex = 0;
4870               document.getElementById('plandagent').style.display = "none";
4871               document.getElementById('plandagent').style.zIndex = 0;
4872               document.getElementById('plandagent_cdr').style.display = "none";
4873               document.getElementById('plandagent_cdr').style.zIndex = 0;
4874               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4875               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4876               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4877               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4878               document.getElementById('plandsql_generic').style.display = "none";
4879               document.getElementById('plandsql_generic').style.zIndex = 0;
4880               document.getElementById('plandsql_external').style.display = "none";
4881               document.getElementById('plandsql_external').style.zIndex = 0;
4882               document.getElementById('plandcurrency_fixed').style.display = "none";
4883               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4884
4885             document.getElementById('plandprepaid').style.display = "";
4886             document.getElementById('plandprepaid').style.zIndex = 1;
4887
4888           }
4889           if (planlayer == "subscription" ) {
4890
4891               document.getElementById('plandflat').style.display = "none";
4892               document.getElementById('plandflat').style.zIndex = 0;
4893               document.getElementById('plandflat_delayed').style.display = "none";
4894               document.getElementById('plandflat_delayed').style.zIndex = 0;
4895               document.getElementById('plandflat_introrate').style.display = "none";
4896               document.getElementById('plandflat_introrate').style.zIndex = 0;
4897               document.getElementById('plandprorate_calendar').style.display = "none";
4898               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4899               document.getElementById('plandprorate').style.display = "none";
4900               document.getElementById('plandprorate').style.zIndex = 0;
4901               document.getElementById('plandprorate_delayed').style.display = "none";
4902               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4903               document.getElementById('plandprepaid').style.display = "none";
4904               document.getElementById('plandprepaid').style.zIndex = 0;
4905               document.getElementById('plandsqlradacct_hour').style.display = "none";
4906               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
4907               document.getElementById('plandsqlradacct_daily').style.display = "none";
4908               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4909               document.getElementById('plandvoip_cdr').style.display = "none";
4910               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4911               document.getElementById('plandvoip_inbound').style.display = "none";
4912               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4913               document.getElementById('plandvoip_tiered').style.display = "none";
4914               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4915               document.getElementById('plandcdr_termination').style.display = "none";
4916               document.getElementById('plandcdr_termination').style.zIndex = 0;
4917               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4918               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4919               document.getElementById('plandbulk_simple').style.display = "none";
4920               document.getElementById('plandbulk_simple').style.zIndex = 0;
4921               document.getElementById('plandbulk').style.display = "none";
4922               document.getElementById('plandbulk').style.zIndex = 0;
4923               document.getElementById('plandagent').style.display = "none";
4924               document.getElementById('plandagent').style.zIndex = 0;
4925               document.getElementById('plandagent_cdr').style.display = "none";
4926               document.getElementById('plandagent_cdr').style.zIndex = 0;
4927               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4928               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4929               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4930               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4931               document.getElementById('plandsql_generic').style.display = "none";
4932               document.getElementById('plandsql_generic').style.zIndex = 0;
4933               document.getElementById('plandsql_external').style.display = "none";
4934               document.getElementById('plandsql_external').style.zIndex = 0;
4935               document.getElementById('plandcurrency_fixed').style.display = "none";
4936               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4937
4938             document.getElementById('plandsubscription').style.display = "";
4939             document.getElementById('plandsubscription').style.zIndex = 1;
4940
4941           }
4942           if (planlayer == "sqlradacct_hour" ) {
4943
4944               document.getElementById('plandflat').style.display = "none";
4945               document.getElementById('plandflat').style.zIndex = 0;
4946               document.getElementById('plandflat_delayed').style.display = "none";
4947               document.getElementById('plandflat_delayed').style.zIndex = 0;
4948               document.getElementById('plandflat_introrate').style.display = "none";
4949               document.getElementById('plandflat_introrate').style.zIndex = 0;
4950               document.getElementById('plandprorate_calendar').style.display = "none";
4951               document.getElementById('plandprorate_calendar').style.zIndex = 0;
4952               document.getElementById('plandprorate').style.display = "none";
4953               document.getElementById('plandprorate').style.zIndex = 0;
4954               document.getElementById('plandprorate_delayed').style.display = "none";
4955               document.getElementById('plandprorate_delayed').style.zIndex = 0;
4956               document.getElementById('plandprepaid').style.display = "none";
4957               document.getElementById('plandprepaid').style.zIndex = 0;
4958               document.getElementById('plandsubscription').style.display = "none";
4959               document.getElementById('plandsubscription').style.zIndex = 0;
4960               document.getElementById('plandsqlradacct_daily').style.display = "none";
4961               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
4962               document.getElementById('plandvoip_cdr').style.display = "none";
4963               document.getElementById('plandvoip_cdr').style.zIndex = 0;
4964               document.getElementById('plandvoip_inbound').style.display = "none";
4965               document.getElementById('plandvoip_inbound').style.zIndex = 0;
4966               document.getElementById('plandvoip_tiered').style.display = "none";
4967               document.getElementById('plandvoip_tiered').style.zIndex = 0;
4968               document.getElementById('plandcdr_termination').style.display = "none";
4969               document.getElementById('plandcdr_termination').style.zIndex = 0;
4970               document.getElementById('plandprepaid_nibblebill').style.display = "none";
4971               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
4972               document.getElementById('plandbulk_simple').style.display = "none";
4973               document.getElementById('plandbulk_simple').style.zIndex = 0;
4974               document.getElementById('plandbulk').style.display = "none";
4975               document.getElementById('plandbulk').style.zIndex = 0;
4976               document.getElementById('plandagent').style.display = "none";
4977               document.getElementById('plandagent').style.zIndex = 0;
4978               document.getElementById('plandagent_cdr').style.display = "none";
4979               document.getElementById('plandagent_cdr').style.zIndex = 0;
4980               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
4981               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
4982               document.getElementById('plandtorrus_bw_usage').style.display = "none";
4983               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
4984               document.getElementById('plandsql_generic').style.display = "none";
4985               document.getElementById('plandsql_generic').style.zIndex = 0;
4986               document.getElementById('plandsql_external').style.display = "none";
4987               document.getElementById('plandsql_external').style.zIndex = 0;
4988               document.getElementById('plandcurrency_fixed').style.display = "none";
4989               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
4990
4991             document.getElementById('plandsqlradacct_hour').style.display = "";
4992             document.getElementById('plandsqlradacct_hour').style.zIndex = 1;
4993
4994           }
4995           if (planlayer == "sqlradacct_daily" ) {
4996
4997               document.getElementById('plandflat').style.display = "none";
4998               document.getElementById('plandflat').style.zIndex = 0;
4999               document.getElementById('plandflat_delayed').style.display = "none";
5000               document.getElementById('plandflat_delayed').style.zIndex = 0;
5001               document.getElementById('plandflat_introrate').style.display = "none";
5002               document.getElementById('plandflat_introrate').style.zIndex = 0;
5003               document.getElementById('plandprorate_calendar').style.display = "none";
5004               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5005               document.getElementById('plandprorate').style.display = "none";
5006               document.getElementById('plandprorate').style.zIndex = 0;
5007               document.getElementById('plandprorate_delayed').style.display = "none";
5008               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5009               document.getElementById('plandprepaid').style.display = "none";
5010               document.getElementById('plandprepaid').style.zIndex = 0;
5011               document.getElementById('plandsubscription').style.display = "none";
5012               document.getElementById('plandsubscription').style.zIndex = 0;
5013               document.getElementById('plandsqlradacct_hour').style.display = "none";
5014               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5015               document.getElementById('plandvoip_cdr').style.display = "none";
5016               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5017               document.getElementById('plandvoip_inbound').style.display = "none";
5018               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5019               document.getElementById('plandvoip_tiered').style.display = "none";
5020               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5021               document.getElementById('plandcdr_termination').style.display = "none";
5022               document.getElementById('plandcdr_termination').style.zIndex = 0;
5023               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5024               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5025               document.getElementById('plandbulk_simple').style.display = "none";
5026               document.getElementById('plandbulk_simple').style.zIndex = 0;
5027               document.getElementById('plandbulk').style.display = "none";
5028               document.getElementById('plandbulk').style.zIndex = 0;
5029               document.getElementById('plandagent').style.display = "none";
5030               document.getElementById('plandagent').style.zIndex = 0;
5031               document.getElementById('plandagent_cdr').style.display = "none";
5032               document.getElementById('plandagent_cdr').style.zIndex = 0;
5033               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5034               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5035               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5036               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5037               document.getElementById('plandsql_generic').style.display = "none";
5038               document.getElementById('plandsql_generic').style.zIndex = 0;
5039               document.getElementById('plandsql_external').style.display = "none";
5040               document.getElementById('plandsql_external').style.zIndex = 0;
5041               document.getElementById('plandcurrency_fixed').style.display = "none";
5042               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5043
5044             document.getElementById('plandsqlradacct_daily').style.display = "";
5045             document.getElementById('plandsqlradacct_daily').style.zIndex = 1;
5046
5047           }
5048           if (planlayer == "voip_cdr" ) {
5049
5050               document.getElementById('plandflat').style.display = "none";
5051               document.getElementById('plandflat').style.zIndex = 0;
5052               document.getElementById('plandflat_delayed').style.display = "none";
5053               document.getElementById('plandflat_delayed').style.zIndex = 0;
5054               document.getElementById('plandflat_introrate').style.display = "none";
5055               document.getElementById('plandflat_introrate').style.zIndex = 0;
5056               document.getElementById('plandprorate_calendar').style.display = "none";
5057               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5058               document.getElementById('plandprorate').style.display = "none";
5059               document.getElementById('plandprorate').style.zIndex = 0;
5060               document.getElementById('plandprorate_delayed').style.display = "none";
5061               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5062               document.getElementById('plandprepaid').style.display = "none";
5063               document.getElementById('plandprepaid').style.zIndex = 0;
5064               document.getElementById('plandsubscription').style.display = "none";
5065               document.getElementById('plandsubscription').style.zIndex = 0;
5066               document.getElementById('plandsqlradacct_hour').style.display = "none";
5067               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5068               document.getElementById('plandsqlradacct_daily').style.display = "none";
5069               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5070               document.getElementById('plandvoip_inbound').style.display = "none";
5071               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5072               document.getElementById('plandvoip_tiered').style.display = "none";
5073               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5074               document.getElementById('plandcdr_termination').style.display = "none";
5075               document.getElementById('plandcdr_termination').style.zIndex = 0;
5076               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5077               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5078               document.getElementById('plandbulk_simple').style.display = "none";
5079               document.getElementById('plandbulk_simple').style.zIndex = 0;
5080               document.getElementById('plandbulk').style.display = "none";
5081               document.getElementById('plandbulk').style.zIndex = 0;
5082               document.getElementById('plandagent').style.display = "none";
5083               document.getElementById('plandagent').style.zIndex = 0;
5084               document.getElementById('plandagent_cdr').style.display = "none";
5085               document.getElementById('plandagent_cdr').style.zIndex = 0;
5086               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5087               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5088               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5089               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5090               document.getElementById('plandsql_generic').style.display = "none";
5091               document.getElementById('plandsql_generic').style.zIndex = 0;
5092               document.getElementById('plandsql_external').style.display = "none";
5093               document.getElementById('plandsql_external').style.zIndex = 0;
5094               document.getElementById('plandcurrency_fixed').style.display = "none";
5095               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5096
5097             document.getElementById('plandvoip_cdr').style.display = "";
5098             document.getElementById('plandvoip_cdr').style.zIndex = 1;
5099
5100           }
5101           if (planlayer == "voip_inbound" ) {
5102
5103               document.getElementById('plandflat').style.display = "none";
5104               document.getElementById('plandflat').style.zIndex = 0;
5105               document.getElementById('plandflat_delayed').style.display = "none";
5106               document.getElementById('plandflat_delayed').style.zIndex = 0;
5107               document.getElementById('plandflat_introrate').style.display = "none";
5108               document.getElementById('plandflat_introrate').style.zIndex = 0;
5109               document.getElementById('plandprorate_calendar').style.display = "none";
5110               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5111               document.getElementById('plandprorate').style.display = "none";
5112               document.getElementById('plandprorate').style.zIndex = 0;
5113               document.getElementById('plandprorate_delayed').style.display = "none";
5114               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5115               document.getElementById('plandprepaid').style.display = "none";
5116               document.getElementById('plandprepaid').style.zIndex = 0;
5117               document.getElementById('plandsubscription').style.display = "none";
5118               document.getElementById('plandsubscription').style.zIndex = 0;
5119               document.getElementById('plandsqlradacct_hour').style.display = "none";
5120               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5121               document.getElementById('plandsqlradacct_daily').style.display = "none";
5122               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5123               document.getElementById('plandvoip_cdr').style.display = "none";
5124               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5125               document.getElementById('plandvoip_tiered').style.display = "none";
5126               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5127               document.getElementById('plandcdr_termination').style.display = "none";
5128               document.getElementById('plandcdr_termination').style.zIndex = 0;
5129               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5130               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5131               document.getElementById('plandbulk_simple').style.display = "none";
5132               document.getElementById('plandbulk_simple').style.zIndex = 0;
5133               document.getElementById('plandbulk').style.display = "none";
5134               document.getElementById('plandbulk').style.zIndex = 0;
5135               document.getElementById('plandagent').style.display = "none";
5136               document.getElementById('plandagent').style.zIndex = 0;
5137               document.getElementById('plandagent_cdr').style.display = "none";
5138               document.getElementById('plandagent_cdr').style.zIndex = 0;
5139               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5140               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5141               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5142               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5143               document.getElementById('plandsql_generic').style.display = "none";
5144               document.getElementById('plandsql_generic').style.zIndex = 0;
5145               document.getElementById('plandsql_external').style.display = "none";
5146               document.getElementById('plandsql_external').style.zIndex = 0;
5147               document.getElementById('plandcurrency_fixed').style.display = "none";
5148               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5149
5150             document.getElementById('plandvoip_inbound').style.display = "";
5151             document.getElementById('plandvoip_inbound').style.zIndex = 1;
5152
5153           }
5154           if (planlayer == "voip_tiered" ) {
5155
5156               document.getElementById('plandflat').style.display = "none";
5157               document.getElementById('plandflat').style.zIndex = 0;
5158               document.getElementById('plandflat_delayed').style.display = "none";
5159               document.getElementById('plandflat_delayed').style.zIndex = 0;
5160               document.getElementById('plandflat_introrate').style.display = "none";
5161               document.getElementById('plandflat_introrate').style.zIndex = 0;
5162               document.getElementById('plandprorate_calendar').style.display = "none";
5163               document.getElementById('plandprorate_calendar').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('plandprepaid').style.display = "none";
5169               document.getElementById('plandprepaid').style.zIndex = 0;
5170               document.getElementById('plandsubscription').style.display = "none";
5171               document.getElementById('plandsubscription').style.zIndex = 0;
5172               document.getElementById('plandsqlradacct_hour').style.display = "none";
5173               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5174               document.getElementById('plandsqlradacct_daily').style.display = "none";
5175               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5176               document.getElementById('plandvoip_cdr').style.display = "none";
5177               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5178               document.getElementById('plandvoip_inbound').style.display = "none";
5179               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5180               document.getElementById('plandcdr_termination').style.display = "none";
5181               document.getElementById('plandcdr_termination').style.zIndex = 0;
5182               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5183               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5184               document.getElementById('plandbulk_simple').style.display = "none";
5185               document.getElementById('plandbulk_simple').style.zIndex = 0;
5186               document.getElementById('plandbulk').style.display = "none";
5187               document.getElementById('plandbulk').style.zIndex = 0;
5188               document.getElementById('plandagent').style.display = "none";
5189               document.getElementById('plandagent').style.zIndex = 0;
5190               document.getElementById('plandagent_cdr').style.display = "none";
5191               document.getElementById('plandagent_cdr').style.zIndex = 0;
5192               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5193               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5194               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5195               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5196               document.getElementById('plandsql_generic').style.display = "none";
5197               document.getElementById('plandsql_generic').style.zIndex = 0;
5198               document.getElementById('plandsql_external').style.display = "none";
5199               document.getElementById('plandsql_external').style.zIndex = 0;
5200               document.getElementById('plandcurrency_fixed').style.display = "none";
5201               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5202
5203             document.getElementById('plandvoip_tiered').style.display = "";
5204             document.getElementById('plandvoip_tiered').style.zIndex = 1;
5205
5206           }
5207           if (planlayer == "cdr_termination" ) {
5208
5209               document.getElementById('plandflat').style.display = "none";
5210               document.getElementById('plandflat').style.zIndex = 0;
5211               document.getElementById('plandflat_delayed').style.display = "none";
5212               document.getElementById('plandflat_delayed').style.zIndex = 0;
5213               document.getElementById('plandflat_introrate').style.display = "none";
5214               document.getElementById('plandflat_introrate').style.zIndex = 0;
5215               document.getElementById('plandprorate_calendar').style.display = "none";
5216               document.getElementById('plandprorate_calendar').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('plandprepaid').style.display = "none";
5222               document.getElementById('plandprepaid').style.zIndex = 0;
5223               document.getElementById('plandsubscription').style.display = "none";
5224               document.getElementById('plandsubscription').style.zIndex = 0;
5225               document.getElementById('plandsqlradacct_hour').style.display = "none";
5226               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5227               document.getElementById('plandsqlradacct_daily').style.display = "none";
5228               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5229               document.getElementById('plandvoip_cdr').style.display = "none";
5230               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5231               document.getElementById('plandvoip_inbound').style.display = "none";
5232               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5233               document.getElementById('plandvoip_tiered').style.display = "none";
5234               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5235               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5236               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5237               document.getElementById('plandbulk_simple').style.display = "none";
5238               document.getElementById('plandbulk_simple').style.zIndex = 0;
5239               document.getElementById('plandbulk').style.display = "none";
5240               document.getElementById('plandbulk').style.zIndex = 0;
5241               document.getElementById('plandagent').style.display = "none";
5242               document.getElementById('plandagent').style.zIndex = 0;
5243               document.getElementById('plandagent_cdr').style.display = "none";
5244               document.getElementById('plandagent_cdr').style.zIndex = 0;
5245               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5246               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5247               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5248               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5249               document.getElementById('plandsql_generic').style.display = "none";
5250               document.getElementById('plandsql_generic').style.zIndex = 0;
5251               document.getElementById('plandsql_external').style.display = "none";
5252               document.getElementById('plandsql_external').style.zIndex = 0;
5253               document.getElementById('plandcurrency_fixed').style.display = "none";
5254               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5255
5256             document.getElementById('plandcdr_termination').style.display = "";
5257             document.getElementById('plandcdr_termination').style.zIndex = 1;
5258
5259           }
5260           if (planlayer == "prepaid_nibblebill" ) {
5261
5262               document.getElementById('plandflat').style.display = "none";
5263               document.getElementById('plandflat').style.zIndex = 0;
5264               document.getElementById('plandflat_delayed').style.display = "none";
5265               document.getElementById('plandflat_delayed').style.zIndex = 0;
5266               document.getElementById('plandflat_introrate').style.display = "none";
5267               document.getElementById('plandflat_introrate').style.zIndex = 0;
5268               document.getElementById('plandprorate_calendar').style.display = "none";
5269               document.getElementById('plandprorate_calendar').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('plandprepaid').style.display = "none";
5275               document.getElementById('plandprepaid').style.zIndex = 0;
5276               document.getElementById('plandsubscription').style.display = "none";
5277               document.getElementById('plandsubscription').style.zIndex = 0;
5278               document.getElementById('plandsqlradacct_hour').style.display = "none";
5279               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5280               document.getElementById('plandsqlradacct_daily').style.display = "none";
5281               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5282               document.getElementById('plandvoip_cdr').style.display = "none";
5283               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5284               document.getElementById('plandvoip_inbound').style.display = "none";
5285               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5286               document.getElementById('plandvoip_tiered').style.display = "none";
5287               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5288               document.getElementById('plandcdr_termination').style.display = "none";
5289               document.getElementById('plandcdr_termination').style.zIndex = 0;
5290               document.getElementById('plandbulk_simple').style.display = "none";
5291               document.getElementById('plandbulk_simple').style.zIndex = 0;
5292               document.getElementById('plandbulk').style.display = "none";
5293               document.getElementById('plandbulk').style.zIndex = 0;
5294               document.getElementById('plandagent').style.display = "none";
5295               document.getElementById('plandagent').style.zIndex = 0;
5296               document.getElementById('plandagent_cdr').style.display = "none";
5297               document.getElementById('plandagent_cdr').style.zIndex = 0;
5298               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5299               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5300               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5301               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5302               document.getElementById('plandsql_generic').style.display = "none";
5303               document.getElementById('plandsql_generic').style.zIndex = 0;
5304               document.getElementById('plandsql_external').style.display = "none";
5305               document.getElementById('plandsql_external').style.zIndex = 0;
5306               document.getElementById('plandcurrency_fixed').style.display = "none";
5307               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5308
5309             document.getElementById('plandprepaid_nibblebill').style.display = "";
5310             document.getElementById('plandprepaid_nibblebill').style.zIndex = 1;
5311
5312           }
5313           if (planlayer == "bulk_simple" ) {
5314
5315               document.getElementById('plandflat').style.display = "none";
5316               document.getElementById('plandflat').style.zIndex = 0;
5317               document.getElementById('plandflat_delayed').style.display = "none";
5318               document.getElementById('plandflat_delayed').style.zIndex = 0;
5319               document.getElementById('plandflat_introrate').style.display = "none";
5320               document.getElementById('plandflat_introrate').style.zIndex = 0;
5321               document.getElementById('plandprorate_calendar').style.display = "none";
5322               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5323               document.getElementById('plandprorate').style.display = "none";
5324               document.getElementById('plandprorate').style.zIndex = 0;
5325               document.getElementById('plandprorate_delayed').style.display = "none";
5326               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5327               document.getElementById('plandprepaid').style.display = "none";
5328               document.getElementById('plandprepaid').style.zIndex = 0;
5329               document.getElementById('plandsubscription').style.display = "none";
5330               document.getElementById('plandsubscription').style.zIndex = 0;
5331               document.getElementById('plandsqlradacct_hour').style.display = "none";
5332               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5333               document.getElementById('plandsqlradacct_daily').style.display = "none";
5334               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5335               document.getElementById('plandvoip_cdr').style.display = "none";
5336               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5337               document.getElementById('plandvoip_inbound').style.display = "none";
5338               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5339               document.getElementById('plandvoip_tiered').style.display = "none";
5340               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5341               document.getElementById('plandcdr_termination').style.display = "none";
5342               document.getElementById('plandcdr_termination').style.zIndex = 0;
5343               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5344               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5345               document.getElementById('plandbulk').style.display = "none";
5346               document.getElementById('plandbulk').style.zIndex = 0;
5347               document.getElementById('plandagent').style.display = "none";
5348               document.getElementById('plandagent').style.zIndex = 0;
5349               document.getElementById('plandagent_cdr').style.display = "none";
5350               document.getElementById('plandagent_cdr').style.zIndex = 0;
5351               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5352               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5353               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5354               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5355               document.getElementById('plandsql_generic').style.display = "none";
5356               document.getElementById('plandsql_generic').style.zIndex = 0;
5357               document.getElementById('plandsql_external').style.display = "none";
5358               document.getElementById('plandsql_external').style.zIndex = 0;
5359               document.getElementById('plandcurrency_fixed').style.display = "none";
5360               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5361
5362             document.getElementById('plandbulk_simple').style.display = "";
5363             document.getElementById('plandbulk_simple').style.zIndex = 1;
5364
5365           }
5366           if (planlayer == "bulk" ) {
5367
5368               document.getElementById('plandflat').style.display = "none";
5369               document.getElementById('plandflat').style.zIndex = 0;
5370               document.getElementById('plandflat_delayed').style.display = "none";
5371               document.getElementById('plandflat_delayed').style.zIndex = 0;
5372               document.getElementById('plandflat_introrate').style.display = "none";
5373               document.getElementById('plandflat_introrate').style.zIndex = 0;
5374               document.getElementById('plandprorate_calendar').style.display = "none";
5375               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5376               document.getElementById('plandprorate').style.display = "none";
5377               document.getElementById('plandprorate').style.zIndex = 0;
5378               document.getElementById('plandprorate_delayed').style.display = "none";
5379               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5380               document.getElementById('plandprepaid').style.display = "none";
5381               document.getElementById('plandprepaid').style.zIndex = 0;
5382               document.getElementById('plandsubscription').style.display = "none";
5383               document.getElementById('plandsubscription').style.zIndex = 0;
5384               document.getElementById('plandsqlradacct_hour').style.display = "none";
5385               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5386               document.getElementById('plandsqlradacct_daily').style.display = "none";
5387               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5388               document.getElementById('plandvoip_cdr').style.display = "none";
5389               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5390               document.getElementById('plandvoip_inbound').style.display = "none";
5391               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5392               document.getElementById('plandvoip_tiered').style.display = "none";
5393               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5394               document.getElementById('plandcdr_termination').style.display = "none";
5395               document.getElementById('plandcdr_termination').style.zIndex = 0;
5396               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5397               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5398               document.getElementById('plandbulk_simple').style.display = "none";
5399               document.getElementById('plandbulk_simple').style.zIndex = 0;
5400               document.getElementById('plandagent').style.display = "none";
5401               document.getElementById('plandagent').style.zIndex = 0;
5402               document.getElementById('plandagent_cdr').style.display = "none";
5403               document.getElementById('plandagent_cdr').style.zIndex = 0;
5404               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5405               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5406               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5407               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5408               document.getElementById('plandsql_generic').style.display = "none";
5409               document.getElementById('plandsql_generic').style.zIndex = 0;
5410               document.getElementById('plandsql_external').style.display = "none";
5411               document.getElementById('plandsql_external').style.zIndex = 0;
5412               document.getElementById('plandcurrency_fixed').style.display = "none";
5413               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5414
5415             document.getElementById('plandbulk').style.display = "";
5416             document.getElementById('plandbulk').style.zIndex = 1;
5417
5418           }
5419           if (planlayer == "agent" ) {
5420
5421               document.getElementById('plandflat').style.display = "none";
5422               document.getElementById('plandflat').style.zIndex = 0;
5423               document.getElementById('plandflat_delayed').style.display = "none";
5424               document.getElementById('plandflat_delayed').style.zIndex = 0;
5425               document.getElementById('plandflat_introrate').style.display = "none";
5426               document.getElementById('plandflat_introrate').style.zIndex = 0;
5427               document.getElementById('plandprorate_calendar').style.display = "none";
5428               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5429               document.getElementById('plandprorate').style.display = "none";
5430               document.getElementById('plandprorate').style.zIndex = 0;
5431               document.getElementById('plandprorate_delayed').style.display = "none";
5432               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5433               document.getElementById('plandprepaid').style.display = "none";
5434               document.getElementById('plandprepaid').style.zIndex = 0;
5435               document.getElementById('plandsubscription').style.display = "none";
5436               document.getElementById('plandsubscription').style.zIndex = 0;
5437               document.getElementById('plandsqlradacct_hour').style.display = "none";
5438               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5439               document.getElementById('plandsqlradacct_daily').style.display = "none";
5440               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5441               document.getElementById('plandvoip_cdr').style.display = "none";
5442               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5443               document.getElementById('plandvoip_inbound').style.display = "none";
5444               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5445               document.getElementById('plandvoip_tiered').style.display = "none";
5446               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5447               document.getElementById('plandcdr_termination').style.display = "none";
5448               document.getElementById('plandcdr_termination').style.zIndex = 0;
5449               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5450               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5451               document.getElementById('plandbulk_simple').style.display = "none";
5452               document.getElementById('plandbulk_simple').style.zIndex = 0;
5453               document.getElementById('plandbulk').style.display = "none";
5454               document.getElementById('plandbulk').style.zIndex = 0;
5455               document.getElementById('plandagent_cdr').style.display = "none";
5456               document.getElementById('plandagent_cdr').style.zIndex = 0;
5457               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5458               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5459               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5460               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5461               document.getElementById('plandsql_generic').style.display = "none";
5462               document.getElementById('plandsql_generic').style.zIndex = 0;
5463               document.getElementById('plandsql_external').style.display = "none";
5464               document.getElementById('plandsql_external').style.zIndex = 0;
5465               document.getElementById('plandcurrency_fixed').style.display = "none";
5466               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5467
5468             document.getElementById('plandagent').style.display = "";
5469             document.getElementById('plandagent').style.zIndex = 1;
5470
5471           }
5472           if (planlayer == "agent_cdr" ) {
5473
5474               document.getElementById('plandflat').style.display = "none";
5475               document.getElementById('plandflat').style.zIndex = 0;
5476               document.getElementById('plandflat_delayed').style.display = "none";
5477               document.getElementById('plandflat_delayed').style.zIndex = 0;
5478               document.getElementById('plandflat_introrate').style.display = "none";
5479               document.getElementById('plandflat_introrate').style.zIndex = 0;
5480               document.getElementById('plandprorate_calendar').style.display = "none";
5481               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5482               document.getElementById('plandprorate').style.display = "none";
5483               document.getElementById('plandprorate').style.zIndex = 0;
5484               document.getElementById('plandprorate_delayed').style.display = "none";
5485               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5486               document.getElementById('plandprepaid').style.display = "none";
5487               document.getElementById('plandprepaid').style.zIndex = 0;
5488               document.getElementById('plandsubscription').style.display = "none";
5489               document.getElementById('plandsubscription').style.zIndex = 0;
5490               document.getElementById('plandsqlradacct_hour').style.display = "none";
5491               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5492               document.getElementById('plandsqlradacct_daily').style.display = "none";
5493               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5494               document.getElementById('plandvoip_cdr').style.display = "none";
5495               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5496               document.getElementById('plandvoip_inbound').style.display = "none";
5497               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5498               document.getElementById('plandvoip_tiered').style.display = "none";
5499               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5500               document.getElementById('plandcdr_termination').style.display = "none";
5501               document.getElementById('plandcdr_termination').style.zIndex = 0;
5502               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5503               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5504               document.getElementById('plandbulk_simple').style.display = "none";
5505               document.getElementById('plandbulk_simple').style.zIndex = 0;
5506               document.getElementById('plandbulk').style.display = "none";
5507               document.getElementById('plandbulk').style.zIndex = 0;
5508               document.getElementById('plandagent').style.display = "none";
5509               document.getElementById('plandagent').style.zIndex = 0;
5510               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5511               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5512               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5513               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5514               document.getElementById('plandsql_generic').style.display = "none";
5515               document.getElementById('plandsql_generic').style.zIndex = 0;
5516               document.getElementById('plandsql_external').style.display = "none";
5517               document.getElementById('plandsql_external').style.zIndex = 0;
5518               document.getElementById('plandcurrency_fixed').style.display = "none";
5519               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5520
5521             document.getElementById('plandagent_cdr').style.display = "";
5522             document.getElementById('plandagent_cdr').style.zIndex = 1;
5523
5524           }
5525           if (planlayer == "torrus_bw_percentile" ) {
5526
5527               document.getElementById('plandflat').style.display = "none";
5528               document.getElementById('plandflat').style.zIndex = 0;
5529               document.getElementById('plandflat_delayed').style.display = "none";
5530               document.getElementById('plandflat_delayed').style.zIndex = 0;
5531               document.getElementById('plandflat_introrate').style.display = "none";
5532               document.getElementById('plandflat_introrate').style.zIndex = 0;
5533               document.getElementById('plandprorate_calendar').style.display = "none";
5534               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5535               document.getElementById('plandprorate').style.display = "none";
5536               document.getElementById('plandprorate').style.zIndex = 0;
5537               document.getElementById('plandprorate_delayed').style.display = "none";
5538               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5539               document.getElementById('plandprepaid').style.display = "none";
5540               document.getElementById('plandprepaid').style.zIndex = 0;
5541               document.getElementById('plandsubscription').style.display = "none";
5542               document.getElementById('plandsubscription').style.zIndex = 0;
5543               document.getElementById('plandsqlradacct_hour').style.display = "none";
5544               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5545               document.getElementById('plandsqlradacct_daily').style.display = "none";
5546               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5547               document.getElementById('plandvoip_cdr').style.display = "none";
5548               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5549               document.getElementById('plandvoip_inbound').style.display = "none";
5550               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5551               document.getElementById('plandvoip_tiered').style.display = "none";
5552               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5553               document.getElementById('plandcdr_termination').style.display = "none";
5554               document.getElementById('plandcdr_termination').style.zIndex = 0;
5555               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5556               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5557               document.getElementById('plandbulk_simple').style.display = "none";
5558               document.getElementById('plandbulk_simple').style.zIndex = 0;
5559               document.getElementById('plandbulk').style.display = "none";
5560               document.getElementById('plandbulk').style.zIndex = 0;
5561               document.getElementById('plandagent').style.display = "none";
5562               document.getElementById('plandagent').style.zIndex = 0;
5563               document.getElementById('plandagent_cdr').style.display = "none";
5564               document.getElementById('plandagent_cdr').style.zIndex = 0;
5565               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5566               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5567               document.getElementById('plandsql_generic').style.display = "none";
5568               document.getElementById('plandsql_generic').style.zIndex = 0;
5569               document.getElementById('plandsql_external').style.display = "none";
5570               document.getElementById('plandsql_external').style.zIndex = 0;
5571               document.getElementById('plandcurrency_fixed').style.display = "none";
5572               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5573
5574             document.getElementById('plandtorrus_bw_percentile').style.display = "";
5575             document.getElementById('plandtorrus_bw_percentile').style.zIndex = 1;
5576
5577           }
5578           if (planlayer == "torrus_bw_usage" ) {
5579
5580               document.getElementById('plandflat').style.display = "none";
5581               document.getElementById('plandflat').style.zIndex = 0;
5582               document.getElementById('plandflat_delayed').style.display = "none";
5583               document.getElementById('plandflat_delayed').style.zIndex = 0;
5584               document.getElementById('plandflat_introrate').style.display = "none";
5585               document.getElementById('plandflat_introrate').style.zIndex = 0;
5586               document.getElementById('plandprorate_calendar').style.display = "none";
5587               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5588               document.getElementById('plandprorate').style.display = "none";
5589               document.getElementById('plandprorate').style.zIndex = 0;
5590               document.getElementById('plandprorate_delayed').style.display = "none";
5591               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5592               document.getElementById('plandprepaid').style.display = "none";
5593               document.getElementById('plandprepaid').style.zIndex = 0;
5594               document.getElementById('plandsubscription').style.display = "none";
5595               document.getElementById('plandsubscription').style.zIndex = 0;
5596               document.getElementById('plandsqlradacct_hour').style.display = "none";
5597               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5598               document.getElementById('plandsqlradacct_daily').style.display = "none";
5599               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5600               document.getElementById('plandvoip_cdr').style.display = "none";
5601               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5602               document.getElementById('plandvoip_inbound').style.display = "none";
5603               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5604               document.getElementById('plandvoip_tiered').style.display = "none";
5605               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5606               document.getElementById('plandcdr_termination').style.display = "none";
5607               document.getElementById('plandcdr_termination').style.zIndex = 0;
5608               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5609               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5610               document.getElementById('plandbulk_simple').style.display = "none";
5611               document.getElementById('plandbulk_simple').style.zIndex = 0;
5612               document.getElementById('plandbulk').style.display = "none";
5613               document.getElementById('plandbulk').style.zIndex = 0;
5614               document.getElementById('plandagent').style.display = "none";
5615               document.getElementById('plandagent').style.zIndex = 0;
5616               document.getElementById('plandagent_cdr').style.display = "none";
5617               document.getElementById('plandagent_cdr').style.zIndex = 0;
5618               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5619               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5620               document.getElementById('plandsql_generic').style.display = "none";
5621               document.getElementById('plandsql_generic').style.zIndex = 0;
5622               document.getElementById('plandsql_external').style.display = "none";
5623               document.getElementById('plandsql_external').style.zIndex = 0;
5624               document.getElementById('plandcurrency_fixed').style.display = "none";
5625               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5626
5627             document.getElementById('plandtorrus_bw_usage').style.display = "";
5628             document.getElementById('plandtorrus_bw_usage').style.zIndex = 1;
5629
5630           }
5631           if (planlayer == "sql_generic" ) {
5632
5633               document.getElementById('plandflat').style.display = "none";
5634               document.getElementById('plandflat').style.zIndex = 0;
5635               document.getElementById('plandflat_delayed').style.display = "none";
5636               document.getElementById('plandflat_delayed').style.zIndex = 0;
5637               document.getElementById('plandflat_introrate').style.display = "none";
5638               document.getElementById('plandflat_introrate').style.zIndex = 0;
5639               document.getElementById('plandprorate_calendar').style.display = "none";
5640               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5641               document.getElementById('plandprorate').style.display = "none";
5642               document.getElementById('plandprorate').style.zIndex = 0;
5643               document.getElementById('plandprorate_delayed').style.display = "none";
5644               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5645               document.getElementById('plandprepaid').style.display = "none";
5646               document.getElementById('plandprepaid').style.zIndex = 0;
5647               document.getElementById('plandsubscription').style.display = "none";
5648               document.getElementById('plandsubscription').style.zIndex = 0;
5649               document.getElementById('plandsqlradacct_hour').style.display = "none";
5650               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5651               document.getElementById('plandsqlradacct_daily').style.display = "none";
5652               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5653               document.getElementById('plandvoip_cdr').style.display = "none";
5654               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5655               document.getElementById('plandvoip_inbound').style.display = "none";
5656               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5657               document.getElementById('plandvoip_tiered').style.display = "none";
5658               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5659               document.getElementById('plandcdr_termination').style.display = "none";
5660               document.getElementById('plandcdr_termination').style.zIndex = 0;
5661               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5662               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5663               document.getElementById('plandbulk_simple').style.display = "none";
5664               document.getElementById('plandbulk_simple').style.zIndex = 0;
5665               document.getElementById('plandbulk').style.display = "none";
5666               document.getElementById('plandbulk').style.zIndex = 0;
5667               document.getElementById('plandagent').style.display = "none";
5668               document.getElementById('plandagent').style.zIndex = 0;
5669               document.getElementById('plandagent_cdr').style.display = "none";
5670               document.getElementById('plandagent_cdr').style.zIndex = 0;
5671               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5672               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5673               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5674               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5675               document.getElementById('plandsql_external').style.display = "none";
5676               document.getElementById('plandsql_external').style.zIndex = 0;
5677               document.getElementById('plandcurrency_fixed').style.display = "none";
5678               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5679
5680             document.getElementById('plandsql_generic').style.display = "";
5681             document.getElementById('plandsql_generic').style.zIndex = 1;
5682
5683           }
5684           if (planlayer == "sql_external" ) {
5685
5686               document.getElementById('plandflat').style.display = "none";
5687               document.getElementById('plandflat').style.zIndex = 0;
5688               document.getElementById('plandflat_delayed').style.display = "none";
5689               document.getElementById('plandflat_delayed').style.zIndex = 0;
5690               document.getElementById('plandflat_introrate').style.display = "none";
5691               document.getElementById('plandflat_introrate').style.zIndex = 0;
5692               document.getElementById('plandprorate_calendar').style.display = "none";
5693               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5694               document.getElementById('plandprorate').style.display = "none";
5695               document.getElementById('plandprorate').style.zIndex = 0;
5696               document.getElementById('plandprorate_delayed').style.display = "none";
5697               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5698               document.getElementById('plandprepaid').style.display = "none";
5699               document.getElementById('plandprepaid').style.zIndex = 0;
5700               document.getElementById('plandsubscription').style.display = "none";
5701               document.getElementById('plandsubscription').style.zIndex = 0;
5702               document.getElementById('plandsqlradacct_hour').style.display = "none";
5703               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5704               document.getElementById('plandsqlradacct_daily').style.display = "none";
5705               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5706               document.getElementById('plandvoip_cdr').style.display = "none";
5707               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5708               document.getElementById('plandvoip_inbound').style.display = "none";
5709               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5710               document.getElementById('plandvoip_tiered').style.display = "none";
5711               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5712               document.getElementById('plandcdr_termination').style.display = "none";
5713               document.getElementById('plandcdr_termination').style.zIndex = 0;
5714               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5715               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5716               document.getElementById('plandbulk_simple').style.display = "none";
5717               document.getElementById('plandbulk_simple').style.zIndex = 0;
5718               document.getElementById('plandbulk').style.display = "none";
5719               document.getElementById('plandbulk').style.zIndex = 0;
5720               document.getElementById('plandagent').style.display = "none";
5721               document.getElementById('plandagent').style.zIndex = 0;
5722               document.getElementById('plandagent_cdr').style.display = "none";
5723               document.getElementById('plandagent_cdr').style.zIndex = 0;
5724               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5725               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5726               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5727               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5728               document.getElementById('plandsql_generic').style.display = "none";
5729               document.getElementById('plandsql_generic').style.zIndex = 0;
5730               document.getElementById('plandcurrency_fixed').style.display = "none";
5731               document.getElementById('plandcurrency_fixed').style.zIndex = 0;
5732
5733             document.getElementById('plandsql_external').style.display = "";
5734             document.getElementById('plandsql_external').style.zIndex = 1;
5735
5736           }
5737           if (planlayer == "currency_fixed" ) {
5738
5739               document.getElementById('plandflat').style.display = "none";
5740               document.getElementById('plandflat').style.zIndex = 0;
5741               document.getElementById('plandflat_delayed').style.display = "none";
5742               document.getElementById('plandflat_delayed').style.zIndex = 0;
5743               document.getElementById('plandflat_introrate').style.display = "none";
5744               document.getElementById('plandflat_introrate').style.zIndex = 0;
5745               document.getElementById('plandprorate_calendar').style.display = "none";
5746               document.getElementById('plandprorate_calendar').style.zIndex = 0;
5747               document.getElementById('plandprorate').style.display = "none";
5748               document.getElementById('plandprorate').style.zIndex = 0;
5749               document.getElementById('plandprorate_delayed').style.display = "none";
5750               document.getElementById('plandprorate_delayed').style.zIndex = 0;
5751               document.getElementById('plandprepaid').style.display = "none";
5752               document.getElementById('plandprepaid').style.zIndex = 0;
5753               document.getElementById('plandsubscription').style.display = "none";
5754               document.getElementById('plandsubscription').style.zIndex = 0;
5755               document.getElementById('plandsqlradacct_hour').style.display = "none";
5756               document.getElementById('plandsqlradacct_hour').style.zIndex = 0;
5757               document.getElementById('plandsqlradacct_daily').style.display = "none";
5758               document.getElementById('plandsqlradacct_daily').style.zIndex = 0;
5759               document.getElementById('plandvoip_cdr').style.display = "none";
5760               document.getElementById('plandvoip_cdr').style.zIndex = 0;
5761               document.getElementById('plandvoip_inbound').style.display = "none";
5762               document.getElementById('plandvoip_inbound').style.zIndex = 0;
5763               document.getElementById('plandvoip_tiered').style.display = "none";
5764               document.getElementById('plandvoip_tiered').style.zIndex = 0;
5765               document.getElementById('plandcdr_termination').style.display = "none";
5766               document.getElementById('plandcdr_termination').style.zIndex = 0;
5767               document.getElementById('plandprepaid_nibblebill').style.display = "none";
5768               document.getElementById('plandprepaid_nibblebill').style.zIndex = 0;
5769               document.getElementById('plandbulk_simple').style.display = "none";
5770               document.getElementById('plandbulk_simple').style.zIndex = 0;
5771               document.getElementById('plandbulk').style.display = "none";
5772               document.getElementById('plandbulk').style.zIndex = 0;
5773               document.getElementById('plandagent').style.display = "none";
5774               document.getElementById('plandagent').style.zIndex = 0;
5775               document.getElementById('plandagent_cdr').style.display = "none";
5776               document.getElementById('plandagent_cdr').style.zIndex = 0;
5777               document.getElementById('plandtorrus_bw_percentile').style.display = "none";
5778               document.getElementById('plandtorrus_bw_percentile').style.zIndex = 0;
5779               document.getElementById('plandtorrus_bw_usage').style.display = "none";
5780               document.getElementById('plandtorrus_bw_usage').style.zIndex = 0;
5781               document.getElementById('plandsql_generic').style.display = "none";
5782               document.getElementById('plandsql_generic').style.zIndex = 0;
5783               document.getElementById('plandsql_external').style.display = "none";
5784               document.getElementById('plandsql_external').style.zIndex = 0;
5785
5786             document.getElementById('plandcurrency_fixed').style.display = "";
5787             document.getElementById('plandcurrency_fixed').style.zIndex = 1;
5788
5789           }
5790
5791         //aux_planchanged(what);
5792
5793       }
5794 </SCRIPT>
5795
5796
5797   <BR>
5798
5799       <INPUT TYPE     = "submit"
5800              ID       = "submit"
5801              VALUE    = "Apply changes"
5802       >
5803
5804   </FORM>
5805
5806   
5807
5808           </TD>
5809       </TR>
5810     </TABLE>
5811   </BODY>
5812 </HTML>
5813
5814
5815