24cc47fd52995fea7d4ddc56486cbfd927d7613e
[freeside.git] / FS-Test / share / output / edit / cust_main-contacts.html / 135
1
2
3
4   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <HTML>
6   <HEAD>
7     <TITLE>
8       Edit customer contacts
9     </TITLE>
10     <!-- per RT, to prevent IE compatibility mode -->
11     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
12     <!-- The X-UA-Compatible <meta> tag above must be very early in <head> -->
13     <META HTTP-Equiv="Cache-Control" Content="no-cache">
14     <META HTTP-Equiv="Pragma" Content="no-cache">
15     <META HTTP-Equiv="Expires" Content="0"> 
16
17     <script type="text/javascript" src="http://localhost/freeside/elements/cssexpr.js"></script>
18
19
20   <script type="text/javascript" src="http://localhost/freeside/elements/xmenu.top.js"></script>
21   <link href="http://localhost/freeside/elements/xmenu.top.css" type="text/css" rel="stylesheet">
22
23
24   <link href="http://localhost/freeside/elements/freeside.css" type="text/css" rel="stylesheet">
25   <link href="http://localhost/freeside/elements/freeside-print.css" type="text/css" rel="stylesheet" media="print">
26 <link href="http://localhost/freeside/elements/freeside-menu.css" type="text/css" rel="stylesheet">
27
28 <SCRIPT TYPE="text/javascript">
29
30   function about_freeside() {
31     overlib( OLiframeContent('http://localhost/freeside/docs/about.html', 300, 375, 'popup-0000000000-0000-000000000.000000', 0, 'auto' ), CAPTION, 'About', STICKY, AUTOSTATUSCAP, MIDX, 0, MIDY, 0, DRAGGABLE, CLOSECLICK, BGCOLOR, '#7e0079', CGCOLOR, '#7e0079', CLOSETEXT, 'Close'); 
32   }
33
34   webfxMenuImagePath      = "http://localhost/freeside/images/";
35   webfxMenuUseHover       = 1;
36   webfxMenuShowTime       = 300;
37   webfxMenuHideTime       = 500;
38
39   var myBar = new WebFXMenuBar;
40
41     
42           myBar.add(new WebFXMenuButton('Billing Main', "http://localhost/freeside/", 'Billing start page' ));
43
44     
45           myBar.add(new WebFXMenuButton('Ticketing Main', "http://localhost/freeside/rt/", 'Ticketing start page' ));
46
47     
48           myBar.add(new WebFXMenuButton('New prospect', "http://localhost/freeside/edit/prospect_main.html", 'Add a new prospect' ));
49
50     
51           myBar.add(new WebFXMenuButton('New customer', "http://localhost/freeside/edit/cust_main.cgi", 'Add a new customer' ));
52
53
54           var myMenu0 = new WebFXMenu;
55 myMenu0.emptyText = '';
56 var myMenu1 = new WebFXMenu;
57 myMenu1.emptyText = '';
58 myMenu1.add(new WebFXMenuItem("List prospects", "http://localhost/freeside/search/prospect_main.html", "" ));
59 myMenu1.add(new WebFXMenuItem("Advanced prospect reports", "http://localhost/freeside/search/report_prospect_main.html", "" ));
60 myMenu1.add(new WebFXMenuSeparator());
61 myMenu1.add(new WebFXMenuItem("Prospect contacts", "http://localhost/freeside/search/report_contact.html?link=prospect_main", "" ));
62 myMenu1.width = 256;
63
64 myMenu0.add(new WebFXMenuItem("Prospects", null, "Prospect reports", myMenu1 ));
65 var myMenu2 = new WebFXMenu;
66 myMenu2.emptyText = '';
67 myMenu2.add(new WebFXMenuItem("List quotations", "http://localhost/freeside/search/quotation.html", "" ));
68 myMenu2.add(new WebFXMenuItem("Advanced quotation reports", "http://localhost/freeside/search/report_quotation.html", "" ));
69 myMenu2.width = 256;
70
71 myMenu0.add(new WebFXMenuItem("Quotations", null, "Quotation reports", myMenu2 ));
72 var myMenu3 = new WebFXMenu;
73 myMenu3.emptyText = '';
74 var myMenu4 = new WebFXMenu;
75 myMenu4.emptyText = '';
76 myMenu4.add(new WebFXMenuItem("by customer number", "http://localhost/freeside/search/cust_main.cgi?browse=custnum", "" ));
77 myMenu4.add(new WebFXMenuItem("by last name", "http://localhost/freeside/search/cust_main.cgi?browse=last", "" ));
78 myMenu4.add(new WebFXMenuItem("by company name", "http://localhost/freeside/search/cust_main.cgi?browse=company", "" ));
79 myMenu4.add(new WebFXMenuItem("by active trouble tickets", "http://localhost/freeside/search/cust_main.cgi?browse=tickets", "" ));
80 myMenu4.width = 256;
81
82 myMenu3.add(new WebFXMenuItem("List customers", null, "List customers", myMenu4 ));
83 myMenu3.add(new WebFXMenuItem("Zip code distribution", "http://localhost/freeside/search/report_cust_main-zip.html", "Zip codes by number of customers" ));
84 myMenu3.add(new WebFXMenuItem("Customer signup report", "http://localhost/freeside/graph/report_cust_signup.html", "New customer signups by date" ));
85 myMenu3.add(new WebFXMenuItem("Customer churn report", "http://localhost/freeside/graph/report_cust_churn.html", "New customers, suspensions, and cancellations summary" ));
86 myMenu3.add(new WebFXMenuItem("Signup date report", "http://localhost/freeside/graph/report_signupdate.html", "Signup date report (by date of signup)" ));
87 myMenu3.add(new WebFXMenuItem("Advanced customer reports", "http://localhost/freeside/search/report_cust_main.html", "by status, signup date, agent, etc." ));
88 myMenu3.add(new WebFXMenuSeparator());
89 myMenu3.add(new WebFXMenuItem("Customer contacts", "http://localhost/freeside/search/report_contact.html?link=cust_main", "" ));
90 myMenu3.width = 256;
91
92 myMenu0.add(new WebFXMenuItem("Customers", null, "Customer reports", myMenu3 ));
93 var myMenu5 = new WebFXMenu;
94 myMenu5.emptyText = '';
95 var myMenu6 = new WebFXMenu;
96 myMenu6.emptyText = '';
97 myMenu6.add(new WebFXMenuItem("All open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN_date", "All invoices with an unpaid balance" ));
98 myMenu6.add(new WebFXMenuItem("15 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN15_date", "Invoices 15 days or older with an unpaid balance" ));
99 myMenu6.add(new WebFXMenuItem("30 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN30_date", "Invoices 30 days or older with an unpaid balance" ));
100 myMenu6.add(new WebFXMenuItem("60 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN60_date", "Invoices 60 days or older with an unpaid balance" ));
101 myMenu6.add(new WebFXMenuItem("90 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN90_date", "Invoices 90 days or older with an unpaid balance" ));
102 myMenu6.add(new WebFXMenuItem("120 day open invoices", "http://localhost/freeside/search/cust_bill.html?OPEN120_date", "Invoices 120 days or older with an unpaid balance" ));
103 myMenu6.width = 256;
104
105 myMenu5.add(new WebFXMenuItem("Open invoices", null, "Open invoices", myMenu6 ));
106 myMenu5.add(new WebFXMenuItem("All invoices", "http://localhost/freeside/search/cust_bill.html?date", "List all invoices" ));
107 myMenu5.add(new WebFXMenuItem("Advanced invoice reports", "http://localhost/freeside/search/report_cust_bill.html", "by agent, date range, etc." ));
108 myMenu5.add(new WebFXMenuSeparator());
109 myMenu5.add(new WebFXMenuItem("Line items", "http://localhost/freeside/search/report_cust_bill_pkg.html", "Individual line item detail" ));
110 myMenu5.add(new WebFXMenuItem("Voided invoices", "http://localhost/freeside/search/report_cust_bill_void.html", "Search for voided invoices" ));
111 myMenu5.width = 256;
112
113 myMenu0.add(new WebFXMenuItem("Invoices", null, "Invoice reports", myMenu5 ));
114 var myMenu7 = new WebFXMenu;
115 myMenu7.emptyText = '';
116 myMenu7.add(new WebFXMenuItem("Discount graph", "http://localhost/freeside/graph/report_cust_bill_pkg_discount.html", "Discount overview per month" ));
117 myMenu7.add(new WebFXMenuItem("Discount detail", "http://localhost/freeside/search/report_cust_bill_pkg_discount.html", "Discount report (by employee and/or date range)" ));
118 myMenu7.add(new WebFXMenuItem("Package discounts", "http://localhost/freeside/search/report_cust_pkg_discount.html", "Active/inactive discounts by package" ));
119 myMenu7.width = 256;
120
121 myMenu0.add(new WebFXMenuItem("Discounts", null, "Discount reports", myMenu7 ));
122 var myMenu8 = new WebFXMenu;
123 myMenu8.emptyText = '';
124 myMenu8.add(new WebFXMenuItem("Payments", "http://localhost/freeside/search/report_cust_pay.html", "Payment report (by type and/or date range)" ));
125 myMenu8.add(new WebFXMenuItem("Payment application detail", "http://localhost/freeside/search/report_cust_bill_pay_pkg.html", "Line item application detail" ));
126 myMenu8.add(new WebFXMenuItem("Pending Payments", "http://localhost/freeside/search/cust_pay_pending.html?magic=_date;statusNOT=done", "Pending real-time payments" ));
127 myMenu8.add(new WebFXMenuItem("Unapplied Payments", "http://localhost/freeside/search/report_cust_pay.html?unapplied=1", "Unapplied payment report (by type and/or date range)" ));
128 myMenu8.add(new WebFXMenuItem("Voided Payments", "http://localhost/freeside/search/report_cust_pay.html?void=1", "Voided payment report (by type and/or date range)" ));
129 myMenu8.add(new WebFXMenuItem("Unapplied Payment Aging", "http://localhost/freeside/search/report_unapplied_cust_pay.html", "Unapplied payment aging report" ));
130 myMenu8.width = 256;
131
132 myMenu0.add(new WebFXMenuItem("Payments", null, "Payment reports", myMenu8 ));
133 var myMenu9 = new WebFXMenu;
134 myMenu9.emptyText = '';
135 myMenu9.add(new WebFXMenuItem("Package definitions (by # active)", "http://localhost/freeside/browse/part_pkg.cgi?active=1", "Package definitions by number of active packages" ));
136 myMenu9.add(new WebFXMenuItem("Package costs", "http://localhost/freeside/graph/report_cust_pkg_cost.html", "Package setup and recurring costs graph" ));
137 myMenu9.add(new WebFXMenuSeparator());
138 myMenu9.add(new WebFXMenuItem("Package churn", "http://localhost/freeside/graph/report_cust_pkg.html", "Orders, suspensions and cancellations summary graph" ));
139 myMenu9.add(new WebFXMenuSeparator());
140 myMenu9.add(new WebFXMenuItem("All customer packages", "http://localhost/freeside/search/cust_pkg.cgi?pkgnum", "List all customer packages" ));
141 myMenu9.add(new WebFXMenuItem("Package summary", "http://localhost/freeside/search/cust_pkg_summary.html", "Show package sales summary" ));
142 myMenu9.add(new WebFXMenuItem("Suspended customer packages", "http://localhost/freeside/search/cust_pkg.cgi?magic=suspended", "List suspended packages" ));
143 myMenu9.add(new WebFXMenuItem("Suspension summary", "http://localhost/freeside/search/cust_pkg_susp.html", "Show suspension activity" ));
144 myMenu9.add(new WebFXMenuItem("Customer packages with unconfigured services", "http://localhost/freeside/search/cust_pkg.cgi?APKG_pkgnum", "List packages which have provisionable services" ));
145 myMenu9.add(new WebFXMenuItem("Advanced package reports", "http://localhost/freeside/search/report_cust_pkg.html", "by agent, date range, status, package definition" ));
146 myMenu9.width = 256;
147
148 myMenu0.add(new WebFXMenuItem("Packages", null, "Package reports", myMenu9 ));
149 var myMenu10 = new WebFXMenu;
150 myMenu10.emptyText = '';
151 myMenu10.add(new WebFXMenuItem("Service definitions", "http://localhost/freeside/browse/part_svc.cgi?orderby=active", "Service definitions by number of active packages" ));
152 myMenu10.add(new WebFXMenuSeparator());
153 myMenu10.add(new WebFXMenuItem("Unprovisioned services", "http://localhost/freeside/search/report_unprovisioned_services.html", "Unprovisioned services" ));
154 myMenu10.add(new WebFXMenuSeparator());
155 var myMenu11 = new WebFXMenu;
156 myMenu11.emptyText = '';
157 myMenu11.add(new WebFXMenuItem("All accounts by Username", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=username", "" ));
158 myMenu11.add(new WebFXMenuItem("All accounts by UID", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=uid", "" ));
159 myMenu11.add(new WebFXMenuItem("All accounts with Time Remaining", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=seconds", "" ));
160 myMenu11.add(new WebFXMenuItem("All accounts by Last login", "http://localhost/freeside/search/svc_acct.cgi?magic=all;sortby=last_login", "" ));
161 myMenu11.add(new WebFXMenuItem("All accounts never logged in", "http://localhost/freeside/search/svc_acct.cgi?magic=nologin;sortby=svcnum", "" ));
162 myMenu11.add(new WebFXMenuItem("Advanced account reports", "http://localhost/freeside/search/report_svc_acct.html", "" ));
163 myMenu11.width = 256;
164
165 myMenu10.add(new WebFXMenuItem("Accounts", null, "Access accounts and mailboxes", myMenu11 ));
166 var myMenu12 = new WebFXMenu;
167 myMenu12.emptyText = '';
168 myMenu12.add(new WebFXMenuItem("All domains", "http://localhost/freeside/search/svc_domain.cgi?magic=all;sortby=domain", "" ));
169 myMenu12.width = 256;
170
171 myMenu10.add(new WebFXMenuItem("Domains", null, "Domains", myMenu12 ));
172 var myMenu13 = new WebFXMenu;
173 myMenu13.emptyText = '';
174 myMenu13.add(new WebFXMenuItem("All certificates", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cert;magic=all;sortby=svcnum", "" ));
175 myMenu13.width = 256;
176
177 myMenu10.add(new WebFXMenuItem("Certificates", null, "Example services", myMenu13 ));
178 var myMenu14 = new WebFXMenu;
179 myMenu14.emptyText = '';
180 myMenu14.add(new WebFXMenuItem("All mail forwards", "http://localhost/freeside/search/svc_forward.cgi?magic=all;sortby=svcnum", "" ));
181 myMenu14.width = 256;
182
183 myMenu10.add(new WebFXMenuItem("Mail forwards", null, "Mail forwards", myMenu14 ));
184 var myMenu15 = new WebFXMenu;
185 myMenu15.emptyText = '';
186 myMenu15.add(new WebFXMenuItem("All mailing lists", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_mailinglist;magic=all;sortby=svcnum", "" ));
187 myMenu15.width = 256;
188
189 myMenu10.add(new WebFXMenuItem("Mailing lists", null, "Mailing lists", myMenu15 ));
190 var myMenu16 = new WebFXMenu;
191 myMenu16.emptyText = '';
192 myMenu16.add(new WebFXMenuItem("All virtual hosting services", "http://localhost/freeside/search/svc_www.cgi?magic=all;sortby=svcnum", "" ));
193 myMenu16.width = 256;
194
195 myMenu10.add(new WebFXMenuItem("Virtual hosting services", null, "Virtual hosting services", myMenu16 ));
196 var myMenu17 = new WebFXMenu;
197 myMenu17.emptyText = '';
198 myMenu17.add(new WebFXMenuItem("All wireless broadband services", "http://localhost/freeside/search/svc_broadband.cgi?magic=all;sortby=svcnum", "" ));
199 myMenu17.add(new WebFXMenuItem("Advanced wireless broadband reports", "http://localhost/freeside/search/report_svc_broadband.html", "" ));
200 myMenu17.width = 256;
201
202 myMenu10.add(new WebFXMenuItem("Wireless broadband services", null, "Fixed wireless broadband services", myMenu17 ));
203 var myMenu18 = new WebFXMenu;
204 myMenu18.emptyText = '';
205 myMenu18.add(new WebFXMenuItem("All cable subscribers by Service", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=svcnum", "" ));
206 myMenu18.add(new WebFXMenuItem("All cable subscribers by Serial number", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=serialnum", "" ));
207 myMenu18.add(new WebFXMenuItem("All cable subscribers by MAC address", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_cable;magic=all;sortby=mac_addr", "" ));
208 myMenu18.width = 256;
209
210 myMenu10.add(new WebFXMenuItem("Cable Subscribers", null, "Cable Subscribers", myMenu18 ));
211 var myMenu19 = new WebFXMenu;
212 myMenu19.emptyText = '';
213 myMenu19.add(new WebFXMenuItem("All DSLs", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_dsl;magic=all;sortby=phonenum", "" ));
214 myMenu19.add(new WebFXMenuItem("Qualifications", "http://localhost/freeside/search/qual.cgi", "" ));
215 myMenu19.width = 256;
216
217 myMenu10.add(new WebFXMenuItem("DSLs", null, "DSLs", myMenu19 ));
218 var myMenu20 = new WebFXMenu;
219 myMenu20.emptyText = '';
220 myMenu20.add(new WebFXMenuItem("All dish services", "http://localhost/freeside/search/svc_dish.cgi?magic=all;sortby=svcnum", "" ));
221 myMenu20.width = 256;
222
223 myMenu10.add(new WebFXMenuItem("Dish services", null, "Dish services", myMenu20 ));
224 var myMenu21 = new WebFXMenu;
225 myMenu21.emptyText = '';
226 myMenu21.add(new WebFXMenuItem("All hardware", "http://localhost/freeside/search/svc_hardware.cgi?magic=all;sortby=svcnum", "" ));
227 myMenu21.add(new WebFXMenuItem("Advanced hardware reports", "http://localhost/freeside/search/report_svc_hardware.html", "" ));
228 myMenu21.width = 256;
229
230 myMenu10.add(new WebFXMenuItem("Hardware", null, "Hardware", myMenu21 ));
231 var myMenu22 = new WebFXMenu;
232 myMenu22.emptyText = '';
233 myMenu22.add(new WebFXMenuItem("All phone numbers", "http://localhost/freeside/search/svc_phone.cgi?magic=all;sortby=phonenum", "" ));
234 myMenu22.add(new WebFXMenuItem("Phone numbers' total usage by time period", "http://localhost/freeside/search/report_svc_phone_usage.html", "Total usage (minutes, and amount billed) for the specified time period, per phone number." ));
235 myMenu22.add(new WebFXMenuItem("Phone numbers by state", "http://localhost/freeside/search/phone_state.html", "Current or historical phone services broken down by state." ));
236 myMenu22.add(new WebFXMenuItem("Advanced phone number reports", "http://localhost/freeside/search/report_svc_phone.html", "" ));
237 myMenu22.add(new WebFXMenuItem("Phone number (DID) availability", "http://localhost/freeside/search/report_phone_avail.html", "" ));
238 myMenu22.add(new WebFXMenuItem("Inventory/Provisioning Status", "http://localhost/freeside/search/phone_inventory_provisioned.html", "" ));
239 myMenu22.width = 256;
240
241 myMenu10.add(new WebFXMenuItem("Phone numbers", null, "Phone numbers", myMenu22 ));
242 var myMenu23 = new WebFXMenu;
243 myMenu23.emptyText = '';
244 myMenu23.add(new WebFXMenuItem("All PBXs", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_pbx;magic=all;sortby=svcnum", "" ));
245 myMenu23.width = 256;
246
247 myMenu10.add(new WebFXMenuItem("PBXs", null, "PBXs", myMenu23 ));
248 var myMenu24 = new WebFXMenu;
249 myMenu24.emptyText = '';
250 myMenu24.add(new WebFXMenuItem("All circuits", "http://localhost/freeside/search/svc_circuit.cgi?magic=all;sortby=svcnum", "" ));
251 myMenu24.width = 256;
252
253 myMenu10.add(new WebFXMenuItem("Circuits", null, "Voice and data circuit services", myMenu24 ));
254 var myMenu25 = new WebFXMenu;
255 myMenu25.emptyText = '';
256 myMenu25.add(new WebFXMenuItem("All ports", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_port;magic=all;sortby=serviceid", "" ));
257 myMenu25.width = 256;
258
259 myMenu10.add(new WebFXMenuItem("Ports", null, "Ports", myMenu25 ));
260 var myMenu26 = new WebFXMenu;
261 myMenu26.emptyText = '';
262 myMenu26.add(new WebFXMenuItem("All alarm services", "http://localhost/freeside/search/cust_svc.html?svcdb=svc_alarm;magic=all;sortby=acctnum", "" ));
263 myMenu26.width = 256;
264
265 myMenu10.add(new WebFXMenuItem("Alarm services", null, "Alarm services", myMenu26 ));
266 var myMenu27 = new WebFXMenu;
267 myMenu27.emptyText = '';
268 myMenu27.add(new WebFXMenuItem("All external services", "http://localhost/freeside/search/svc_external.cgi?magic=all;sortby=id", "" ));
269 myMenu27.width = 256;
270
271 myMenu10.add(new WebFXMenuItem("External services", null, "External services", myMenu27 ));
272 myMenu10.width = 256;
273
274 myMenu0.add(new WebFXMenuItem("Services", null, "Services reports", myMenu10 ));
275 var myMenu28 = new WebFXMenu;
276 myMenu28.emptyText = '';
277 myMenu28.add(new WebFXMenuItem("Inventory by agent", "http://localhost/freeside/search/report_agent_inventory.html", "" ));
278 myMenu28.add(new WebFXMenuItem("Inventory activity", "http://localhost/freeside/search/report_h_inventory_item.html", "" ));
279 myMenu28.width = 256;
280
281 myMenu0.add(new WebFXMenuItem("Inventory", null, "Inventory reports", myMenu28 ));
282 var myMenu29 = new WebFXMenu;
283 myMenu29.emptyText = '';
284 myMenu29.add(new WebFXMenuItem("RADIUS sessions", "http://localhost/freeside/search/sqlradius.html", "" ));
285 myMenu29.add(new WebFXMenuItem("RADIUS data usage", "http://localhost/freeside/search/report_sqlradius_usage.html", "" ));
286 myMenu29.add(new WebFXMenuItem("Call Detail Records (CDRs)", "http://localhost/freeside/search/report_cdr.html", "" ));
287 myMenu29.add(new WebFXMenuItem("Unrateable CDRs", "http://localhost/freeside/search/cdr.html?freesidestatus=failed;cdrbatchnum=_ALL_", "" ));
288 myMenu29.width = 256;
289
290 myMenu0.add(new WebFXMenuItem("Usage", null, "Usage reports", myMenu29 ));
291 var myMenu30 = new WebFXMenu;
292 myMenu30.emptyText = '';
293 var myMenu31 = new WebFXMenu;
294 myMenu31.emptyText = '';
295 myMenu31.add(new WebFXMenuItem("Tickets per day per Queue", "http://localhost/freeside/rt/RTx/Statistics/CallsQueueDay", "View the number of tickets created, resolved or deleted in a specific Queue, over the requested period of days" ));
296 myMenu31.add(new WebFXMenuItem("Ticket status by Queue", "http://localhost/freeside/rt/RTx/Statistics/OpenStalled", "View numbers of new, open and stalled tickets in a selected Queue" ));
297 myMenu31.add(new WebFXMenuItem("Tickets per day (multiple Queues)", "http://localhost/freeside/rt/RTx/Statistics/CallsMultiQueue", "View tickets created, resolved or deleted on in one or more Queues over a specified time period" ));
298 myMenu31.add(new WebFXMenuItem("Tickets per Day of Week", "http://localhost/freeside/rt/RTx/Statistics/DayOfWeek", "View trends showing when tickets are created, resolved or deleted" ));
299 myMenu31.add(new WebFXMenuItem("Time to resolve", "http://localhost/freeside/rt/RTx/Statistics/Resolution", "View how long tickets take to be resolved by Queue" ));
300 myMenu31.add(new WebFXMenuItem("Time to resolve (scatter graph)", "http://localhost/freeside/rt/RTx/Statistics/TimeToResolve", "View a detailed scatter graph of time to resolve tickets by Queue" ));
301 myMenu31.width = 256;
302
303 myMenu30.add(new WebFXMenuItem("Statistics", null, "", myMenu31 ));
304 myMenu30.add(new WebFXMenuSeparator());
305 myMenu30.add(new WebFXMenuItem("Advanced ticket reports", "http://localhost/freeside/rt/Search/Build.html?NewQuery=1", "List tickets by any criteria" ));
306 myMenu30.width = 256;
307
308 myMenu0.add(new WebFXMenuItem("Tickets", null, "Ticket reports", myMenu30 ));
309 var myMenu32 = new WebFXMenu;
310 myMenu32.emptyText = '';
311 myMenu32.add(new WebFXMenuItem("Employee Commission Report", "http://localhost/freeside/search/report_employee_commission.html", "" ));
312 myMenu32.add(new WebFXMenuItem("Employee Audit Report", "http://localhost/freeside/search/report_employee_audit.html", "Employee audit report" ));
313 myMenu32.width = 256;
314
315 myMenu0.add(new WebFXMenuItem("Employees", null, "Employee reports", myMenu32 ));
316 var myMenu33 = new WebFXMenu;
317 myMenu33.emptyText = '';
318 myMenu33.add(new WebFXMenuItem("All billing events", "http://localhost/freeside/search/report_cust_event.html", "All billing events for a date range" ));
319 myMenu33.add(new WebFXMenuItem("Billing event errors", "http://localhost/freeside/search/report_cust_event.html?failed=1", "Failed credit cards, processor or printer problems, etc." ));
320 myMenu33.width = 256;
321
322 myMenu0.add(new WebFXMenuItem("Billing events", null, "Billing events", myMenu33 ));
323 var myMenu34 = new WebFXMenu;
324 myMenu34.emptyText = '';
325 var myMenu35 = new WebFXMenu;
326 myMenu35.emptyText = '';
327 myMenu35.add(new WebFXMenuItem("Sales, Credits and Receipts", "http://localhost/freeside/graph/report_money_time.html", "Sales, credits and receipts summary graph" ));
328 myMenu35.add(new WebFXMenuItem("Daily Sales, Credits and Receipts", "http://localhost/freeside/graph/report_money_time_daily.html", "Sales, credits and receipts (broken down by day) summary graph" ));
329 myMenu35.add(new WebFXMenuItem("Sales Report", "http://localhost/freeside/graph/report_cust_bill_pkg.html", "Sales report and graph (by agent, package class and/or date range)" ));
330 myMenu35.add(new WebFXMenuItem("Rated Call Sales Report", "http://localhost/freeside/graph/report_cust_bill_pkg_detail.html", "Sales report and graph (by agent, package class, usage class and/or date range)" ));
331 myMenu35.add(new WebFXMenuItem("Sales with Advertising Source", "http://localhost/freeside/search/report_cust_bill_pkg_referral.html", "" ));
332 myMenu35.width = 256;
333
334 myMenu34.add(new WebFXMenuItem("Sales", null, "Sales reports", myMenu35 ));
335 var myMenu36 = new WebFXMenu;
336 myMenu36.emptyText = '';
337 myMenu36.add(new WebFXMenuItem("Credit Report", "http://localhost/freeside/search/report_cust_credit.html", "Credit report (by employee and/or date range)" ));
338 myMenu36.add(new WebFXMenuItem("Credit application detail", "http://localhost/freeside/search/report_cust_credit_bill_pkg.html", "Line item application detail" ));
339 myMenu36.add(new WebFXMenuItem("Unapplied Credits", "http://localhost/freeside/search/report_cust_credit.html?unapplied=1", "Unapplied credit report (by type and/or date range)" ));
340 myMenu36.add(new WebFXMenuItem("Voided Credits", "http://localhost/freeside/search/report_cust_credit_void.html", "Voided credit report (by employee and/or date range)" ));
341 myMenu36.width = 256;
342
343 myMenu34.add(new WebFXMenuItem("Credits", null, "Credit reports", myMenu36 ));
344 var myMenu37 = new WebFXMenu;
345 myMenu37.emptyText = '';
346 myMenu37.add(new WebFXMenuItem("Refund Report", "http://localhost/freeside/search/report_cust_refund.html", "Refund report (by type and/or date range)" ));
347 myMenu37.add(new WebFXMenuItem("Unapplied Refunds", "http://localhost/freeside/search/report_cust_refund.html?unapplied=1", "Unapplied refund report (by type and/or date range)" ));
348 myMenu37.width = 256;
349
350 myMenu34.add(new WebFXMenuItem("Refunds", null, "Refund reports", myMenu37 ));
351 var myMenu38 = new WebFXMenu;
352 myMenu38.emptyText = '';
353 myMenu38.add(new WebFXMenuItem("Agent Commissions", "http://localhost/freeside/search/report_agent_commission.html", "" ));
354 myMenu38.add(new WebFXMenuItem("Agent Commissions Per Package", "http://localhost/freeside/search/report_agent_commission_pkg.html", "" ));
355 myMenu38.add(new WebFXMenuItem("Sales Person Commissions", "http://localhost/freeside/search/report_sales_commission.html", "" ));
356 myMenu38.add(new WebFXMenuItem("Sales Person Commissions Per Package", "http://localhost/freeside/search/report_sales_commission_pkg.html", "" ));
357 myMenu38.add(new WebFXMenuItem("Employee Commissions", "http://localhost/freeside/search/report_employee_commission.html", "" ));
358 myMenu38.width = 256;
359
360 myMenu34.add(new WebFXMenuItem("Commissions", null, "Commission reports", myMenu38 ));
361 myMenu34.add(new WebFXMenuItem("A/R Aging", "http://localhost/freeside/search/report_receivables.html", "Accounts Receivable Aging report" ));
362 myMenu34.add(new WebFXMenuItem("Prepaid Income", "http://localhost/freeside/search/report_prepaid_income.html", "Prepaid income (unearned revenue)  report" ));
363 myMenu34.add(new WebFXMenuItem("Tax Liability", "http://localhost/freeside/search/report_tax.html", "Tax liability report (internal tax data)" ));
364 myMenu34.add(new WebFXMenuItem("E911 Fee Summary", "http://localhost/freeside/search/report_e911.html", "E911 fee summary" ));
365 myMenu34.add(new WebFXMenuItem("Customer Accounting Summary", "http://localhost/freeside/search/report_customer_accounting_summary.html", "Customer accounting summary report" ));
366 myMenu34.width = 256;
367
368 myMenu0.add(new WebFXMenuItem("Financial", null, "Financial reports", myMenu34 ));
369 var myMenu39 = new WebFXMenu;
370 myMenu39.emptyText = '';
371 myMenu39.add(new WebFXMenuItem("Credit limit incidents", "http://localhost/freeside/search/report_cust_main_credit_limit.html", "" ));
372 myMenu39.add(new WebFXMenuItem("System log", "http://localhost/freeside/search/log.html", "View system events and debugging information." ));
373 myMenu39.add(new WebFXMenuItem("Outgoing messages", "http://localhost/freeside/search/cust_msg.html", "View outgoing message log" ));
374 myMenu39.width = 256;
375
376 myMenu0.add(new WebFXMenuItem("Logs", null, "System and email logs", myMenu39 ));
377 myMenu0.width = 256;
378
379           myBar.add(new WebFXMenuButton('Reports', null, 'Lists, reporting and graphing', myMenu0 ));
380
381
382           var myMenu40 = new WebFXMenu;
383 myMenu40.emptyText = '';
384 myMenu40.add(new WebFXMenuItem("Quick payment entry", "http://localhost/freeside/misc/batch-cust_pay.html", "Enter multiple payments in a batch" ));
385 myMenu40.add(new WebFXMenuItem("Download invoice batches", "http://localhost/freeside/search/bill_batch.cgi", "" ));
386 myMenu40.add(new WebFXMenuItem("Bulk DID Orders", "http://localhost/freeside/browse/did_order.html", "View/manage bulk DID orders" ));
387 myMenu40.add(new WebFXMenuItem("Job Queue", "http://localhost/freeside/search/queue.html", "View pending job queue" ));
388 var myMenu41 = new WebFXMenu;
389 myMenu41.emptyText = '';
390 var myMenu42 = new WebFXMenu;
391 myMenu42.emptyText = '';
392 myMenu42.add(new WebFXMenuItem("Overview", "http://localhost/freeside/rt/Articles/index.html", "" ));
393 myMenu42.add(new WebFXMenuItem("Search", "http://localhost/freeside/rt/Articles/Article/Search.html", "" ));
394 myMenu42.add(new WebFXMenuItem("Topics", "http://localhost/freeside/rt/Articles/Topics.html", "" ));
395 myMenu42.width = 256;
396
397 myMenu41.add(new WebFXMenuItem("Articles", null, "", myMenu42 ));
398 myMenu41.add(new WebFXMenuItem("My Day", "http://localhost/freeside/rt/Tools/MyDay.html", "" ));
399 myMenu41.add(new WebFXMenuItem("My Reminders", "http://localhost/freeside/rt/Tools/MyReminders.html", "" ));
400 myMenu41.add(new WebFXMenuItem("Offline", "http://localhost/freeside/rt/Tools/Offline.html", "" ));
401 myMenu41.add(new WebFXMenuItem("Approval", "http://localhost/freeside/rt/Approvals/", "" ));
402 myMenu41.width = 256;
403
404 myMenu40.add(new WebFXMenuItem("Ticketing", null, "Ticketing tools", myMenu41 ));
405 myMenu40.add(new WebFXMenuItem("Customer email settings", "http://localhost/freeside/misc/manage_cust_email.html", "" ));
406 myMenu40.add(new WebFXMenuItem("Business card scan", "http://localhost/freeside/edit/prospect_main-upload.html", "" ));
407 myMenu40.add(new WebFXMenuItem("Attachments", "http://localhost/freeside/browse/cust_attachment.html", "View customer attachments" ));
408 var myMenu43 = new WebFXMenu;
409 myMenu43.emptyText = '';
410 myMenu43.add(new WebFXMenuItem("Customers", "http://localhost/freeside/misc/cust_main-import.cgi", "" ));
411 myMenu43.add(new WebFXMenuItem("Package definitions", "http://localhost/freeside/misc/part_pkg-import.html", "" ));
412 myMenu43.add(new WebFXMenuItem("Customer packages", "http://localhost/freeside/misc/cust_pkg-import.html", "" ));
413 myMenu43.add(new WebFXMenuItem("Customer comments", "http://localhost/freeside/misc/cust_main_note-import.html", "" ));
414 myMenu43.add(new WebFXMenuItem("One-time charges", "http://localhost/freeside/misc/cust_main-import_charges.cgi", "" ));
415 myMenu43.add(new WebFXMenuItem("Payments", "http://localhost/freeside/misc/cust_pay-import.cgi", "" ));
416 myMenu43.add(new WebFXMenuItem("Credits", "http://localhost/freeside/misc/cust_credit-import.html", "" ));
417 myMenu43.add(new WebFXMenuItem("Phone numbers (DIDs)", "http://localhost/freeside/misc/phone_avail-import.html", "" ));
418 myMenu43.add(new WebFXMenuItem("Call Detail Records (CDRs)", "http://localhost/freeside/misc/cdr-import.html", "" ));
419 myMenu43.width = 256;
420
421 myMenu40.add(new WebFXMenuItem("Importing", null, "Import tools", myMenu43 ));
422 var myMenu44 = new WebFXMenu;
423 myMenu44.emptyText = '';
424 myMenu44.add(new WebFXMenuItem("Download database dump", "http://localhost/freeside/misc/dump.cgi", "" ));
425 myMenu44.width = 256;
426
427 myMenu40.add(new WebFXMenuItem("Exporting", null, "Export tools", myMenu44 ));
428 myMenu40.add(new WebFXMenuItem("Status", "http://localhost/freeside/view/Status.html", "System status" ));
429 myMenu40.width = 256;
430
431           myBar.add(new WebFXMenuButton('Tools', null, 'Tools', myMenu40 ));
432
433
434           var myMenu45 = new WebFXMenu;
435 myMenu45.emptyText = '';
436 myMenu45.add(new WebFXMenuItem("Settings", "http://localhost/freeside/config/config-view.cgi", "" ));
437 myMenu45.add(new WebFXMenuSeparator());
438 var myMenu46 = new WebFXMenu;
439 myMenu46.emptyText = '';
440 myMenu46.add(new WebFXMenuItem("Agent types", "http://localhost/freeside/browse/agent_type.cgi", "Agent types define groups of package definitions that you can then assign to particular agents" ));
441 myMenu46.add(new WebFXMenuItem("Agents", "http://localhost/freeside/browse/agent.cgi", "Agents are resellers of your service. Agents may be limited to a subset of your full offerings (via their type)" ));
442 myMenu46.add(new WebFXMenuItem("Agent payment gateways", "http://localhost/freeside/browse/payment_gateway.html", "Credit card and electronic check processors for agent overrides" ));
443 myMenu46.width = 256;
444
445 myMenu45.add(new WebFXMenuItem("Companies", null, "", myMenu46 ));
446 var myMenu47 = new WebFXMenu;
447 myMenu47.emptyText = '';
448 myMenu47.add(new WebFXMenuItem("Sales People", "http://localhost/freeside/browse/sales.html", "Sales people bring in new business." ));
449 myMenu47.width = 256;
450
451 myMenu45.add(new WebFXMenuItem("Sales People", null, "", myMenu47 ));
452 var myMenu48 = new WebFXMenu;
453 myMenu48.emptyText = '';
454 myMenu48.add(new WebFXMenuItem("Employees", "http://localhost/freeside/browse/access_user.html", "Setup internal users" ));
455 myMenu48.add(new WebFXMenuItem("Employee groups", "http://localhost/freeside/browse/access_group.html", "Employee groups allow you to control access to the backend" ));
456 myMenu48.add(new WebFXMenuItem("Installer availability", "http://localhost/freeside/browse/sched_item.html", "Installer availability" ));
457 myMenu48.width = 256;
458
459 myMenu45.add(new WebFXMenuItem("Employees", null, "", myMenu48 ));
460 myMenu45.add(new WebFXMenuSeparator());
461 var myMenu49 = new WebFXMenu;
462 myMenu49.emptyText = '';
463 myMenu49.add(new WebFXMenuItem("Customer tags", "http://localhost/freeside/browse/part_tag.html", "" ));
464 myMenu49.add(new WebFXMenuItem("Customer classes", "http://localhost/freeside/browse/cust_class.html", "Customer classes define groups of customers for reporting." ));
465 myMenu49.add(new WebFXMenuItem("Customer categories", "http://localhost/freeside/browse/cust_category.html", "Customer categories define groups of customer classes." ));
466 myMenu49.add(new WebFXMenuSeparator());
467 myMenu49.add(new WebFXMenuItem("Contact types", "http://localhost/freeside/browse/contact_class.html", "" ));
468 myMenu49.width = 256;
469
470 myMenu45.add(new WebFXMenuItem("Customers", null, "", myMenu49 ));
471 var myMenu50 = new WebFXMenu;
472 myMenu50.emptyText = '';
473 myMenu50.add(new WebFXMenuItem("Package definitions", "http://localhost/freeside/browse/part_pkg.cgi", "One or more services are grouped together into a package and given pricing information. Customers purchase packages, not services" ));
474 myMenu50.add(new WebFXMenuItem("Package classes", "http://localhost/freeside/browse/pkg_class.html", "Package classes define groups of packages, for taxation, ordering convenience and reporting." ));
475 myMenu50.add(new WebFXMenuItem("Package categories", "http://localhost/freeside/browse/pkg_category.html", "Package categories define groups of package classes, for invoice sections." ));
476 myMenu50.add(new WebFXMenuItem("Package report classes", "http://localhost/freeside/browse/part_pkg_report_option.html", "Package classes define optional groups of packages for reporting only." ));
477 myMenu50.add(new WebFXMenuItem("Fees", "http://localhost/freeside/browse/part_fee.html", "" ));
478 myMenu50.add(new WebFXMenuItem("Discounts", "http://localhost/freeside/browse/discount.html", "" ));
479 myMenu50.add(new WebFXMenuItem("Discount classes", "http://localhost/freeside/browse/discount_class.html", "" ));
480 var myMenu51 = new WebFXMenu;
481 myMenu51.emptyText = '';
482 myMenu51.add(new WebFXMenuItem("Cancel reasons", "http://localhost/freeside/browse/reason.html?class=C", "Cancel reasons explain why a service was cancelled." ));
483 myMenu51.add(new WebFXMenuItem("Cancel reason types", "http://localhost/freeside/browse/reason_type.html?class=C", "Cancel reason types define groups of reasons." ));
484 myMenu51.add(new WebFXMenuItem("Suspend reasons", "http://localhost/freeside/browse/reason.html?class=S", "Suspend reasons explain why a service was suspended." ));
485 myMenu51.add(new WebFXMenuItem("Suspend reason types", "http://localhost/freeside/browse/reason_type.html?class=S", "Suspend reason types define groups of reasons." ));
486 myMenu51.width = 256;
487
488 myMenu50.add(new WebFXMenuItem("Cancel/Suspend Reasons", null, "", myMenu51 ));
489 myMenu50.width = 256;
490
491 myMenu45.add(new WebFXMenuItem("Packages", null, "", myMenu50 ));
492 var myMenu52 = new WebFXMenu;
493 myMenu52.emptyText = '';
494 myMenu52.add(new WebFXMenuItem("Service definitions", "http://localhost/freeside/browse/part_svc.cgi", "Services are items you offer to your customers" ));
495 myMenu52.add(new WebFXMenuItem("Service classes", "http://localhost/freeside/browse/part_svc_class.html", "Services classes are user-defined, informational types for services" ));
496 myMenu52.add(new WebFXMenuItem("Provisioning exports", "http://localhost/freeside/browse/part_export.cgi", "Provisioning services to external machines, databases and APIs" ));
497 var myMenu53 = new WebFXMenu;
498 myMenu53.emptyText = '';
499 myMenu53.add(new WebFXMenuItem("Access numbers", "http://localhost/freeside/browse/svc_acct_pop.cgi", "Points of Presence" ));
500 myMenu53.width = 256;
501
502 myMenu52.add(new WebFXMenuItem("Dialup", null, "", myMenu53 ));
503 var myMenu54 = new WebFXMenu;
504 myMenu54.emptyText = '';
505 myMenu54.add(new WebFXMenuItem("Towers", "http://localhost/freeside/browse/tower.html", "Towers and sectors" ));
506 myMenu54.add(new WebFXMenuItem("Routers", "http://localhost/freeside/browse/router.cgi", "Broadband access routers" ));
507 myMenu54.add(new WebFXMenuItem("Address blocks", "http://localhost/freeside/browse/addr_block.cgi", "Manage address blocks and block assignments to broadband routers" ));
508 myMenu54.add(new WebFXMenuItem("Address ranges", "http://localhost/freeside/browse/addr_range.html", "Designate special address ranges" ));
509 myMenu54.width = 256;
510
511 myMenu52.add(new WebFXMenuItem("Wireless broadband", null, "", myMenu54 ));
512 var myMenu55 = new WebFXMenu;
513 myMenu55.emptyText = '';
514 myMenu55.add(new WebFXMenuItem("View/Edit phone device types", "http://localhost/freeside/browse/part_device.html", "Phone device types" ));
515 myMenu55.add(new WebFXMenuItem("View/Edit bulk DID vendors", "http://localhost/freeside/browse/did_vendor.html", "Bulk DID vendors" ));
516 myMenu55.add(new WebFXMenuItem("View/Edit Carriers", "http://localhost/freeside/browse/cdr_carrier.html", "Carriers" ));
517 myMenu55.width = 256;
518
519 myMenu52.add(new WebFXMenuItem("Phone", null, "", myMenu55 ));
520 var myMenu56 = new WebFXMenu;
521 myMenu56.emptyText = '';
522 myMenu56.add(new WebFXMenuItem("RADIUS Groups", "http://localhost/freeside/browse/radius_group.html", "Manage RADIUS groups" ));
523 myMenu56.add(new WebFXMenuItem("RADIUS Clients", "http://localhost/freeside/browse/nas.html", "Manage RADIUS clients" ));
524 myMenu56.width = 256;
525
526 myMenu52.add(new WebFXMenuItem("RADIUS", null, "", myMenu56 ));
527 var myMenu57 = new WebFXMenu;
528 myMenu57.emptyText = '';
529 myMenu57.add(new WebFXMenuItem("Cable providers", "http://localhost/freeside/browse/cable_provider.html", "" ));
530 myMenu57.add(new WebFXMenuItem("Cable modem models", "http://localhost/freeside/browse/cable_model.html", "" ));
531 myMenu57.width = 256;
532
533 myMenu52.add(new WebFXMenuItem("Cable", null, "", myMenu57 ));
534 var myMenu58 = new WebFXMenu;
535 myMenu58.emptyText = '';
536 myMenu58.add(new WebFXMenuItem("Alarm system vendors", "http://localhost/freeside/browse/alarm_system.html", "" ));
537 myMenu58.add(new WebFXMenuItem("Alarm system types", "http://localhost/freeside/browse/alarm_type.html", "" ));
538 myMenu58.add(new WebFXMenuItem("Alarm central stations", "http://localhost/freeside/browse/alarm_station.html", "" ));
539 myMenu58.width = 256;
540
541 myMenu52.add(new WebFXMenuItem("Alarm", null, "", myMenu58 ));
542 var myMenu59 = new WebFXMenu;
543 myMenu59.emptyText = '';
544 myMenu59.add(new WebFXMenuItem("Circuit types", "http://localhost/freeside/browse/circuit_type.html", "" ));
545 myMenu59.add(new WebFXMenuItem("Circuit providers", "http://localhost/freeside/browse/circuit_provider.html", "" ));
546 myMenu59.add(new WebFXMenuItem("Termination types", "http://localhost/freeside/browse/circuit_termination.html", "" ));
547 myMenu59.width = 256;
548
549 myMenu52.add(new WebFXMenuItem("Circuits", null, "", myMenu59 ));
550 myMenu52.add(new WebFXMenuItem("Hardware types", "http://localhost/freeside/browse/hardware_class.html", "Set up hardware type catalog" ));
551 myMenu52.width = 256;
552
553 myMenu45.add(new WebFXMenuItem("Services", null, "", myMenu52 ));
554 myMenu45.add(new WebFXMenuSeparator());
555 var myMenu60 = new WebFXMenu;
556 myMenu60.emptyText = '';
557 myMenu60.add(new WebFXMenuItem("Billing events", "http://localhost/freeside/browse/part_event.html", "Billing actions for customers, invoices and packages" ));
558 myMenu60.add(new WebFXMenuItem("Invoice configurations", "http://localhost/freeside/browse/invoice_conf.html", "Adjust invoice settings for special-purpose notices" ));
559 myMenu60.add(new WebFXMenuItem("Invoice templates", "http://localhost/freeside/browse/invoice_template.html", "Edit templates for HTML, plaintext and typeset invoices" ));
560 myMenu60.add(new WebFXMenuItem("Prepaid cards", "http://localhost/freeside/search/prepay_credit.html", "View outstanding cards, generate new cards" ));
561 var myMenu61 = new WebFXMenu;
562 myMenu61.emptyText = '';
563 myMenu61.add(new WebFXMenuItem("Rate plans", "http://localhost/freeside/browse/rate.cgi", "Manage rate plans" ));
564 myMenu61.add(new WebFXMenuItem("Regions and prefixes", "http://localhost/freeside/browse/rate_region.html", "Manage regions and prefixes" ));
565 myMenu61.add(new WebFXMenuItem("Usage classes", "http://localhost/freeside/browse/usage_class.html", "Usage classes define groups of usage for taxation." ));
566 myMenu61.add(new WebFXMenuItem("Time periods", "http://localhost/freeside/browse/rate_time.html", "Time periods define days and hours for rate plans" ));
567 myMenu61.add(new WebFXMenuItem("Edit rates with Excel", "http://localhost/freeside/misc/rate_edit_excel.html", "Download and edit rates with Excel, then upload changes." ));
568 myMenu61.add(new WebFXMenuSeparator());
569 myMenu61.add(new WebFXMenuItem("Tiering plans", "http://localhost/freeside/browse/rate_tier.html", "Rating tiers" ));
570 myMenu61.width = 256;
571
572 myMenu60.add(new WebFXMenuItem("Call rates and regions", null, "Manage rate plans, regions and prefixes for VoIP and call billing", myMenu61 ));
573 myMenu60.add(new WebFXMenuItem("Locales and tax rates", "http://localhost/freeside/browse/cust_main_county.cgi", "Change tax rates, or break down a country into states, or a state into counties and assign different tax rates to each" ));
574 myMenu60.add(new WebFXMenuItem("Tax classes", "http://localhost/freeside/browse/part_pkg_taxclass.html", "Tax classes" ));
575 myMenu60.add(new WebFXMenuItem("Credit reasons", "http://localhost/freeside/browse/reason.html?class=R", "Credit reasons explain why a credit was issued." ));
576 myMenu60.add(new WebFXMenuItem("Credit reason types", "http://localhost/freeside/browse/reason_type.html?class=R", "Credit reason types define groups of reasons." ));
577 myMenu60.width = 256;
578
579 myMenu45.add(new WebFXMenuItem("Billing", null, "", myMenu60 ));
580 myMenu45.add(new WebFXMenuSeparator());
581 var myMenu62 = new WebFXMenu;
582 myMenu62.emptyText = '';
583 myMenu62.add(new WebFXMenuItem("Message templates", "http://localhost/freeside/browse/msg_template.html", "Templates for customer notices" ));
584 myMenu62.add(new WebFXMenuItem("Advertising sources", "http://localhost/freeside/browse/part_referral.html", "Where a customer heard about your service." ));
585 myMenu62.add(new WebFXMenuItem("Custom fields", "http://localhost/freeside/browse/part_virtual_field.html", "Locally defined fields" ));
586 myMenu62.add(new WebFXMenuItem("Translation strings", "http://localhost/freeside/browse/msgcat.html", "Translations and other customizable labels for each locale" ));
587 myMenu62.add(new WebFXMenuItem("Inventory classes and inventory", "http://localhost/freeside/browse/inventory_class.html", "Setup inventory classes and stock inventory" ));
588 myMenu62.add(new WebFXMenuItem("Upload targets", "http://localhost/freeside/browse/upload_target.html", "Billing and payment upload destinations" ));
589 myMenu62.width = 256;
590
591 myMenu45.add(new WebFXMenuItem("Miscellaneous", null, "", myMenu62 ));
592 myMenu45.width = 256;
593
594           myBar.add(new WebFXMenuButton('Configuration', null, 'Configuration and setup', myMenu45 ));
595
596
597           var myMenu63 = new WebFXMenu;
598 myMenu63.emptyText = '';
599 myMenu63.add(new WebFXMenuItem("Billing documentation", "http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation", "Freeside documentation" ));
600 myMenu63.add(new WebFXMenuItem("Ticketing documentation", "http://wiki.bestpractical.com/", "Request Tracker Wiki" ));
601 myMenu63.add(new WebFXMenuSeparator());
602 myMenu63.add(new WebFXMenuItem("About Freeside v3.8git", "javascript:about_freeside()", "" ));
603 myMenu63.add(new WebFXMenuItem("About RT v4.0.23", "http://www.bestpractical.com/rt", "Request Tracker Homepage" ));
604 myMenu63.width = 256;
605
606           myBar.add(new WebFXMenuButton('Help', null, '', myMenu63 ));
607
608
609   myBar.show( null, 'vertical' );
610   myBar.width = 154;
611
612 </SCRIPT>
613
614
615
616
617       <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws.js"></SCRIPT>
618   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_iframe.js"></SCRIPT>
619   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_draggable.js"></SCRIPT>
620   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/overlibmws_crossframe.js"></SCRIPT>
621   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/iframecontentmws.js"></SCRIPT>
622   <SCRIPT TYPE="text/javascript" SRC="http://localhost/freeside/elements/ajaxcontentmws.js"></SCRIPT>
623
624     <SCRIPT TYPE="text/javascript">
625
626   function rs_init_object() {
627     var A;
628     try {
629       A=new ActiveXObject("Msxml2.XMLHTTP");
630     } catch (e) {
631       try {
632         A=new ActiveXObject("Microsoft.XMLHTTP");
633       } catch (oc) {
634         A=null;
635       }
636     }
637     if(!A && typeof XMLHttpRequest != "undefined")
638       A = new XMLHttpRequest();
639     if (!A)
640       alert("Can't create XMLHttpRequest object");
641     return A;
642
643   }
644
645 </SCRIPT>
646
647     <SCRIPT TYPE="text/javascript">
648
649   function logout() {
650     // count args; build URL
651     var url = "http://localhost/freeside/loginout/logout.html";
652
653     var xmlhttp = rs_init_object();
654     xmlhttp.open("GET", url, false, "magic", "notyet");
655     xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
656     xmlhttp.send(null);
657
658     if (xmlhttp.readyState != 4) {
659       alert("Logout failed: readyState is " + xmlhttp.readyState);
660       return;
661     }
662
663     if (xmlhttp.status != 200) {
664       alert("Logout failed: status is " + xmlhttp.status);
665     } else {
666       var data = xmlhttp.responseText;
667       // alert('received response: ' + data);
668       if ( data.indexOf("<b>System error</b>") > -1 ) {
669         var w;
670         if ( w = window.open("about:blank") ) {
671           w.document.write(data);
672         } else {
673           // popup blocking?  should use an overlib popup instead 
674           alert("Error popup disabled; try disabling popup blocking to see");
675         }
676       } else {
677         window.location = "http://localhost/freeside/loginout/logout.html";
678       }
679     }
680   }
681
682 </SCRIPT>
683
684
685     
686
687   </HEAD>
688   <BODY BGCOLOR="#f8f8f8"  STYLE="margin-top:0; margin-bottom:0; margin-left:0px; margin-right:0px">
689     <table width="100%" CELLPADDING=0 CELLSPACING=0 STYLE="padding-left:0px; padding-right:4px" CLASS="fshead">
690       <tr>
691         <td BGCOLOR="#ffffff"><IMG BORDER=0 ALT="freeside" HEIGHT="36" SRC="http://localhost/freeside/view/REAL_logo.cgi"></td>
692         <td align=left BGCOLOR="#ffffff"> <!-- valign="top" -->
693           <font size=6>Freeside Test 3.8.1</font>
694         </td>
695         <td align=right valign=top BGCOLOR="#ffffff"><FONT SIZE="-1">Logged in as <b>test&nbsp;</b> <FONT SIZE="-2"><a href="javascript:void(0);" onClick="logout();">logout</a></FONT><br></FONT><FONT SIZE="-2"><a href="http://localhost/freeside/pref/pref.html" STYLE="color: #000000">Preferences</a>
696           <BR></FONT>
697         </td>
698       </tr>
699     </table>
700
701     <TABLE WIDTH="100%" CELLSPACING=0 CELLPADDING=0>
702
703 <link href="http://localhost/freeside/elements/freeside-menu.css" type="text/css" rel="stylesheet">
704
705
706       <TR CLASS="fsmenubar">
707
708
709         <TD COLSPAN="7" WIDTH="100%" STYLE="padding:1px 0px 0px 0px;border-top: 1px solid #7e0079" BGCOLOR="#cccccc">
710           <SCRIPT TYPE="text/javascript">
711             document.write(myBar);
712           </SCRIPT>
713         </TD>
714
715       </TR>
716
717       <TR CLASS="fssearchbar">
718
719         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
720           
721   <FORM ACTION="http://localhost/freeside/search/prospect_main.html" METHOD="GET" STYLE="margin:0">
722     <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>
723     <A HREF="http://localhost/freeside/search/report_prospect_main.html" CLASS="fslink" STYLE="font-size: 11px">Adv</A>
724     <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">
725   </FORM>
726   
727
728
729 <SCRIPT TYPE="text/javascript">
730
731   function clearhint_search_prospect (what) {
732     if ( what.value == '(name, company or phone)' )
733       what.value = '';
734   }
735
736 </SCRIPT>
737
738         </TD>
739
740         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
741           
742   <FORM ACTION="http://localhost/freeside/search/cust_main.cgi" METHOD="POST" STYLE="margin:0">
743     <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>
744     <A HREF="http://localhost/freeside/search/report_cust_main.html" CLASS="fslink" STYLE="font-size: 11px">Advanced</A>
745     <INPUT TYPE="submit" VALUE="Search customers" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
746   </FORM>
747   
748
749
750 <SCRIPT TYPE="text/javascript">
751
752   function clearhint_search_cust (what) {
753     if ( what.value == '(cust #, name, company or contact phone)' )
754       what.value = '';
755   }
756
757 </SCRIPT>
758
759         </TD>
760
761         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="center">
762           
763 <SCRIPT TYPE="text/javascript">
764
765   function clearhint_search_address2 (what) {
766     if ( what.value == '(Unit #)' )
767       what.value = '';
768   }
769
770 </SCRIPT>
771
772         </TD>
773
774         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right">
775           
776   <FORM ACTION="http://localhost/freeside/search/cust_bill.html" METHOD="GET" STYLE="margin:0;display:inline">
777     <INPUT NAME="invnum" TYPE="text" VALUE="(inv #)" STYLE="width:56px" onFocus="clearhint_search_invoice(this);" onClick="clearhint_search_invoice(this);" CLASS="fstext">
778     <A HREF="http://localhost/freeside/search/report_cust_bill.html" CLASS="fslink" STYLE="font-size: 11px">Adv</A>    <BR>
779     <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">
780   </FORM>
781   
782
783
784 <SCRIPT TYPE="text/javascript">
785
786   function clearhint_search_invoice (what) {
787     if ( what.value == '(inv #)' )
788       what.value = '';
789   }
790
791 </SCRIPT>
792
793         </TD>
794
795         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px">
796           
797   <FORM ACTION="http://localhost/freeside/search/cust_svc.html" METHOD="GET" STYLE="margin:0">
798     <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>
799     <A NOTYET="http://localhost/freeside/search/svc_Smarter.html" STYLE="color: #cccccc; font-size:11px">Advanced</A>
800     <INPUT TYPE="submit" VALUE="Search services" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
801   </FORM>
802   
803
804
805 <SCRIPT TYPE="text/javascript">
806
807   function clearhint_search_svc (what) {
808     if ( what.value == '(user, email, ip, mac, domain or service phone)' )
809       what.value = '';
810   }
811
812 </SCRIPT>
813
814         </TD>
815
816         <TD COLSPAN=1 BGCOLOR="#cccccc" ALIGN="right" STYLE="padding-left:2px;padding-right:2px">
817           
818   <FORM ACTION="http://localhost/freeside//rt/index.html" METHOD="GET" STYLE="margin:0">
819     <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>
820     <A HREF="http://localhost/freeside//rt/Search/Build.html?NewQuery=1" CLASS="fslink" STYLE="font-size:11px">Advanced</A>
821     <INPUT TYPE="submit" VALUE="Search tickets" CLASS="fsblackbutton" onMouseOver="this.className='fsblackbuttonselected'; return true;" onMouseOut="this.className='fsblackbutton'; return true;" STYLE="font-size:11px">
822   </FORM>
823   
824
825
826 <SCRIPT TYPE="text/javascript">
827
828   function clearhint_search_ticket (what) {
829     if ( what.value == '(ticket #, subject, email or fulltext:text)' )
830       what.value = '';
831   }
832
833 </SCRIPT>
834
835         </TD>
836
837       </TR>
838     </TABLE>
839
840
841
842     <TABLE WIDTH="100%" HEIGHT="100%" CELLSPACING=0 CELLPADDING=4>
843
844       <TR HEIGHT="100%">
845
846         <TD CLASS="background" HEIGHT="100%" VALIGN="top"> <!-- WIDTH="100%"> -->
847
848           <FONT SIZE=6>
849             Edit customer contacts
850           </FONT>
851
852           <BR><BR>
853
854           
855
856
857   
858 <DIV ID="fs_small_custview" CLASS="small_custview">Internal Customer #<B>135</B>: <B>Olson Inc (Towne, Samara)</B></A> - <B><FONT COLOR="#00CC00">Active</FONT></B><TABLE BGCOLOR="#e8e8e8" BORDER=0 CELLSPACING=0><TR><TD VALIGN="top"><TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right" VALIGN="top">Billing<BR>Address</TD><TD BGCOLOR="#ffffff">46706 Kadin Hill #780<BR>Trailer W 2-E<BR>Owensboro, KS  69113<BR></TD></TR><TR><TD></TD><TD BGCOLOR="#ffffff">Day Phone 297-868-7684 x427<BR>Night Phone 538-045-0820</TD></TR></TABLE></TD><TD VALIGN="top"><TABLE BGCOLOR="#cccccc" BORDER=0 CELLSPACING=2><TR><TD ALIGN="right" VALIGN="top">Service<BR>Address</TD><TD BGCOLOR="#ffffff">46706 Kadin Hill #780<BR>Trailer W 2-E<BR>Owensboro, KS  69113</TD></TR></TABLE></TD></TR><TR><TD COLSPAN="2"><B><FONT COLOR="#00CC00">Active</FONT></B> - Monthly anniversary phone x4</TD></TR><TR><TD COLSPAN="2"><B><FONT COLOR="#00CC00">Active</FONT></B> - Monthly prorated broadband</TD></TR><TR><TD COLSPAN="2"><B><FONT COLOR="#00CC00">Active</FONT></B> - Annual subscription domain</TD></TR></TABLE></DIV>
859
860
861   
862
863
864   <FORM NAME   = "edit_topform"
865         METHOD = POST
866         ACTION = "http://localhost/freeside/edit/process/cust_main-contacts.html"
867         
868   >
869
870   <INPUT TYPE="hidden" NAME="svcdb" VALUE="cust_main">
871   <INPUT TYPE="hidden" NAME="custnum" VALUE="135">
872
873   <FONT SIZE="+1"><B>
874    
875   </B></FONT>
876   #135
877
878
879 <TABLE ID="TableNumber0" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
880
881
882       <TR>
883
884   <TD ALIGN  = "right"
885       VALIGN = "top"
886       STYLE  = "padding-top: 3px"
887       ID     = "contactnum_label0"
888   > </TD>
889
890
891       <TD COLSPAN="6">
892       
893   <INPUT TYPE="hidden" NAME="contactnum0" ID="contactnum0" VALUE="">
894
895   <TABLE STYLE="display:inline">
896     <TR>
897         <TD>
898           <SELECT NAME="contactnum0_classnum" onChange="
899 spawn_contactnum(this);">
900             <OPTION VALUE="">
901               <OPTION VALUE="1"
902                  
903               >Service
904           </SELECT><BR>
905           <FONT SIZE="-1">Type</FONT>
906         </TD>
907
908         <TD>
909             <INPUT TYPE  = "text"
910                    NAME  = "contactnum0_first"
911                    ID    = "contactnum0_first"
912                    SIZE  = "14"
913                    VALUE = ""
914                    onChange="
915 spawn_contactnum(this);"
916             >
917           <BR>
918           <FONT SIZE="-1">First name</FONT>
919         </TD>
920
921         <TD>
922             <INPUT TYPE  = "text"
923                    NAME  = "contactnum0_last"
924                    ID    = "contactnum0_last"
925                    SIZE  = "14"
926                    VALUE = ""
927                    onChange="
928 spawn_contactnum(this);"
929             >
930           <BR>
931           <FONT SIZE="-1">Last name</FONT>
932         </TD>
933
934         <TD>
935             <INPUT TYPE  = "text"
936                    NAME  = "contactnum0_title"
937                    ID    = "contactnum0_title"
938                    SIZE  = "12"
939                    VALUE = ""
940                    onChange="
941 spawn_contactnum(this);"
942             >
943           <BR>
944           <FONT SIZE="-1">Title/Position</FONT>
945         </TD>
946
947         <TD>
948             <INPUT TYPE  = "text"
949                    NAME  = "contactnum0_emailaddress"
950                    ID    = "contactnum0_emailaddress"
951                    SIZE  = "14"
952                    VALUE = ""
953                    onChange="
954 spawn_contactnum(this);"
955             >
956           <BR>
957           <FONT SIZE="-1">Email</FONT>
958         </TD>
959
960         <TD>
961             <SELECT NAME = "contactnum0_selfservice_access"
962                     ID   = "contactnum0_selfservice_access"
963             >
964               <OPTION VALUE="">Disabled
965             </SELECT>
966
967           <BR>
968           <FONT SIZE="-1">Self-service</FONT>
969         </TD>
970
971         <TD>
972             <INPUT TYPE  = "text"
973                    NAME  = "contactnum0_phonetypenum1"
974                    ID    = "contactnum0_phonetypenum1"
975                    SIZE  = "15"
976                    VALUE = ""
977                    onChange="
978 spawn_contactnum(this);"
979             >
980           <BR>
981           <FONT SIZE="-1">Work phone</FONT>
982         </TD>
983
984         <TD>
985             <INPUT TYPE  = "text"
986                    NAME  = "contactnum0_phonetypenum3"
987                    ID    = "contactnum0_phonetypenum3"
988                    SIZE  = "10"
989                    VALUE = ""
990                    onChange="
991 spawn_contactnum(this);"
992             >
993           <BR>
994           <FONT SIZE="-1">Mobile phone</FONT>
995         </TD>
996
997         <TD>
998             <INPUT TYPE  = "text"
999                    NAME  = "contactnum0_phonetypenum4"
1000                    ID    = "contactnum0_phonetypenum4"
1001                    SIZE  = "10"
1002                    VALUE = ""
1003                    onChange="
1004 spawn_contactnum(this);"
1005             >
1006           <BR>
1007           <FONT SIZE="-1">Fax phone</FONT>
1008         </TD>
1009
1010         <TD>
1011             <INPUT TYPE  = "text"
1012                    NAME  = "contactnum0_comment"
1013                    ID    = "contactnum0_comment"
1014                    SIZE  = "14"
1015                    VALUE = ""
1016                    onChange="
1017 spawn_contactnum(this);"
1018             >
1019           <BR>
1020           <FONT SIZE="-1">Comment</FONT>
1021         </TD>
1022     </TR>
1023   </TABLE>
1024
1025
1026       </TD>
1027
1028
1029       </TR>
1030
1031
1032       <SCRIPT TYPE="text/javascript">
1033
1034         var contactnum_rownum = 1;
1035         var contactnum_fieldnum = 0;
1036
1037         function spawn_contactnum(what) {
1038
1039           // only spawn if we're the last element... return if not
1040
1041           var field_regex = /(\d+)(_[a-z_]+)?$/;
1042           var match = field_regex.exec(what.name);
1043           if ( !match ) {
1044             alert(what.name + " didn't match for " + what);
1045             return;
1046           }
1047           if ( match[1] != contactnum_fieldnum ) {
1048             return;
1049           }
1050
1051           // change the label on the last entry & add a remove button
1052           var prev_label = document.getElementById('contactnum_label' + contactnum_fieldnum );
1053           prev_label.innerHTML = '<INPUT TYPE="button" VALUE="X" TITLE="Remove this  " onClick="remove_contactnum(' + contactnum_fieldnum + ');" STYLE="color:#ff0000;font-weight:bold;padding-left:2px;padding-right:2px" >&nbsp; ';
1054
1055           contactnum_fieldnum++;
1056
1057           //get the new widget
1058
1059
1060           var newrow =  '\n  <INPUT TYPE="hidden" NAME="contactnumMAGIC_NUMBER" ID="contactnumMAGIC_NUMBER" VALUE="">\n\n  <TABLE STYLE="display:inline">\n    <TR>\n        <TD>\n          <SELECT NAME="contactnumMAGIC_NUMBER_classnum" onChange="\nspawn_contactnum(this);">\n            <OPTION VALUE="">\n              <OPTION VALUE="1"\n                 \n              >Service\n          </SELECT><BR>\n          <FONT SIZE="-1">Type</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_first"\n                   ID    = "contactnumMAGIC_NUMBER_first"\n                   SIZE  = "14"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">First name</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_last"\n                   ID    = "contactnumMAGIC_NUMBER_last"\n                   SIZE  = "14"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Last name</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_title"\n                   ID    = "contactnumMAGIC_NUMBER_title"\n                   SIZE  = "12"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Title/Position</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_emailaddress"\n                   ID    = "contactnumMAGIC_NUMBER_emailaddress"\n                   SIZE  = "14"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Email</FONT>\n        </TD>\n\n        <TD>\n            <SELECT NAME = "contactnumMAGIC_NUMBER_selfservice_access"\n                    ID   = "contactnumMAGIC_NUMBER_selfservice_access"\n            >\n              <OPTION VALUE="">Disabled\n            </SELECT>\n\n          <BR>\n          <FONT SIZE="-1">Self-service</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_phonetypenum1"\n                   ID    = "contactnumMAGIC_NUMBER_phonetypenum1"\n                   SIZE  = "15"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Work phone</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_phonetypenum3"\n                   ID    = "contactnumMAGIC_NUMBER_phonetypenum3"\n                   SIZE  = "10"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Mobile phone</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_phonetypenum4"\n                   ID    = "contactnumMAGIC_NUMBER_phonetypenum4"\n                   SIZE  = "10"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Fax phone</FONT>\n        </TD>\n\n        <TD>\n            <INPUT TYPE  = "text"\n                   NAME  = "contactnumMAGIC_NUMBER_comment"\n                   ID    = "contactnumMAGIC_NUMBER_comment"\n                   SIZE  = "14"\n                   VALUE = ""\n                   onChange="\nspawn_contactnum(this);"\n            >\n          <BR>\n          <FONT SIZE="-1">Comment</FONT>\n        </TD>\n    </TR>\n  </TABLE>\n\n';
1061
1062             var newfunc = '';
1063
1064           // substitute in the new field name
1065           var magic_regex = /MAGIC_NUMBER/g;
1066           newrow  = newrow.replace(  magic_regex, contactnum_fieldnum );
1067           newfunc = newfunc.replace( magic_regex, contactnum_fieldnum );
1068
1069           // evaluate new_func
1070           if (window.ActiveXObject) {
1071             window.execScript(newfunc);
1072           } else { /* (window.XMLHttpRequest) */
1073             //window.eval(newfunc);
1074             setTimeout(newfunc, 0);
1075           }
1076
1077           // add new row
1078
1079           //hmm, can't use selectlayers after a tablebreak-title for now
1080           var table = document.getElementById('TableNumber0');
1081
1082           var row = table.insertRow(contactnum_rownum++);
1083
1084           var label_cell = document.createElement('TD');
1085
1086           label_cell.id = 'contactnum_label' + contactnum_fieldnum;
1087
1088           label_cell.style.textAlign = "right";
1089           label_cell.style.verticalAlign = "top";
1090           label_cell.style.borderTop = "1px solid black";
1091           label_cell.style.paddingTop = "5px";
1092
1093           label_cell.innerHTML = ' ';
1094
1095           row.appendChild(label_cell);
1096           
1097           var widget_cell = document.createElement('TD');
1098
1099           widget_cell.style.borderTop = "1px solid black";
1100           widget_cell.style.paddingTop = "3px";
1101           widget_cell.colSpan = "6";
1102
1103           widget_cell.innerHTML = newrow;
1104
1105           row.appendChild(widget_cell);
1106
1107
1108
1109         }
1110
1111         function remove_contactnum(remove_fieldnum) {
1112           //alert("remove contactnum " + remove_fieldnum);
1113           var select = document.getElementById('contactnum' + remove_fieldnum);
1114
1115           if ( ! select ) {
1116             alert("can't find element contactnum" + remove_fieldnum);
1117             return;
1118           }
1119
1120
1121           select.disabled = 'disabled'; // this seems to prevent it from being submitted on tested browsers so far (IE, moz, konq at least)
1122           var label_td = document.getElementById('contactnum_label' + remove_fieldnum );
1123           label_td.parentNode.style.display = 'none';
1124
1125
1126         }
1127
1128       </SCRIPT>
1129
1130
1131
1132
1133
1134 </TABLE>
1135
1136
1137
1138
1139   <BR>
1140
1141       <INPUT TYPE     = "submit"
1142              ID       = "submit"
1143              VALUE    = "Apply changes"
1144       >
1145
1146   </FORM>
1147
1148   
1149
1150           </TD>
1151       </TR>
1152     </TABLE>
1153   </BODY>
1154 </HTML>
1155
1156
1157