accept unmunged state/county/country
[freeside.git] / fs_signup / FS-SignupClient / cgi / signup.cgi
1 #!/usr/bin/perl -Tw
2 #
3 # $Id: signup.cgi,v 1.34 2002-11-29 05:14:21 ivan Exp $
4
5 use strict;
6 use vars qw( @payby $cgi $locales $packages $pops $init_data $error
7              $last $first $ss $company $address1 $address2 $city $state $county
8              $country $zip $daytime $night $fax $invoicing_list $payby $payinfo
9              $paydate $payname $referral_custnum
10              $pkgpart $username $password $password2 $sec_phrase $popnum
11              $agentnum
12              $ieak_file $ieak_template $cck_file $cck_template
13              $signup_html $signup_template
14              $success_html $success_template
15              $decline_html $decline_template
16              $ac $exch $loc
17              $email_name $pkg
18              $self_url
19            );
20 use subs qw( print_form print_okay print_decline
21              success_default decline_default
22              expselect );
23 use CGI;
24 #use CGI::Carp qw(fatalsToBrowser);
25 use Text::Template;
26 use Business::CreditCard;
27 use HTTP::Headers::UserAgent 2.00;
28 use FS::SignupClient 0.03 qw( signup_info new_customer );
29
30 #acceptable payment methods
31 #
32 #@payby = qw( CARD BILL COMP );
33 #@payby = qw( CARD BILL );
34 #@payby = qw( CARD );
35 @payby = qw( CARD PREPAY );
36
37 $ieak_file = '/usr/local/freeside/ieak.template';
38 $cck_file = '/usr/local/freeside/cck.template';
39 $signup_html = -e 'signup.html'
40                  ? 'signup.html'
41                  : '/usr/local/freeside/signup.html';
42 $success_html = -e 'success.html'
43                   ? 'success.html'
44                   : '/usr/local/freeside/success.html';
45 $decline_html = -e 'decline.html'
46                   ? 'decline.html'
47                   : '/usr/local/freeside/decline.html';
48
49
50 if ( -e $ieak_file ) {
51   my $ieak_txt = Text::Template::_load_text($ieak_file)
52     or die $Text::Template::ERROR;
53   $ieak_txt =~ /^(.*)$/s; #untaint the template source - it's trusted
54   $ieak_txt = $1;
55   $ieak_txt =~ s/\r//g; # don't double \r on old templates
56   $ieak_txt =~ s/\n/\r\n/g;
57   $ieak_template = new Text::Template ( TYPE => 'STRING', SOURCE => $ieak_txt )
58     or die $Text::Template::ERROR;
59 } else {
60   $ieak_template = '';
61 }
62
63 if ( -e $cck_file ) {
64   my $cck_txt = Text::Template::_load_text($cck_file)
65     or die $Text::Template::ERROR;
66   $cck_txt =~ /^(.*)$/s; #untaint the template source - it's trusted
67   $cck_txt = $1;
68   $cck_template = new Text::Template ( TYPE => 'STRING', SOURCE => $cck_txt )
69     or die $Text::Template::ERROR;
70 } else {
71   $cck_template = '';
72 }
73
74 $agentnum = '';
75 if ( -e $signup_html ) {
76   my $signup_txt = Text::Template::_load_text($signup_html)
77     or die $Text::Template::ERROR;
78   $signup_txt =~ /^(.*)$/s; #untaint the template source - it's trusted
79   $signup_txt = $1;
80   $signup_template = new Text::Template ( TYPE => 'STRING',
81                                           SOURCE => $signup_txt,
82                                           DELIMITERS => [ '<%=', '%>' ]
83                                         )
84     or die $Text::Template::ERROR;
85   if ( $signup_txt =~
86          /<\s*INPUT TYPE="?hidden"?\s+NAME="?agentnum"?\s+VALUE="?(\d+)"?\s*>/si
87   ) {
88     $agentnum = $1;
89   }
90 } else {
91   #too much maintenance hassle to keep in this file
92   die "can't find ./signup.html or /usr/local/freeside/signup.html";
93   #$signup_template = new Text::Template ( TYPE => 'STRING',
94   #                                        SOURCE => &signup_default,
95   #                                        DELIMITERS => [ '<%=', '%>' ]
96   #                                      )
97   #  or die $Text::Template::ERROR;
98 }
99
100 if ( -e $success_html ) {
101   my $success_txt = Text::Template::_load_text($success_html)
102     or die $Text::Template::ERROR;
103   $success_txt =~ /^(.*)$/s; #untaint the template source - it's trusted
104   $success_txt = $1;
105   $success_template = new Text::Template ( TYPE => 'STRING',
106                                            SOURCE => $success_txt,
107                                            DELIMITERS => [ '<%=', '%>' ],
108                                          )
109     or die $Text::Template::ERROR;
110 } else {
111   $success_template = new Text::Template ( TYPE => 'STRING',
112                                            SOURCE => &success_default,
113                                            DELIMITERS => [ '<%=', '%>' ],
114                                          )
115     or die $Text::Template::ERROR;
116 }
117
118 if ( -e $decline_html ) {
119   my $decline_txt = Text::Template::_load_text($decline_html)
120     or die $Text::Template::ERROR;
121   $decline_txt =~ /^(.*)$/s; #untaint the template source - it's trusted
122   $decline_txt = $1;
123   $decline_template = new Text::Template ( TYPE => 'STRING',
124                                            SOURCE => $decline_txt,
125                                            DELIMITERS => [ '<%=', '%>' ],
126                                          )
127     or die $Text::Template::ERROR;
128 } else {
129   $decline_template = new Text::Template ( TYPE => 'STRING',
130                                            SOURCE => &decline_default,
131                                            DELIMITERS => [ '<%=', '%>' ],
132                                          )
133     or die $Text::Template::ERROR;
134 }
135
136
137 ( $locales, $packages, $pops, $init_data ) = signup_info();
138 @payby = @{$init_data->{'payby'}} if @{$init_data->{'payby'}};
139 $packages = $init_data->{agentnum2part_pkg}{$agentnum} if $agentnum;
140
141 $cgi = new CGI;
142
143 if ( defined $cgi->param('magic') ) {
144   if ( $cgi->param('magic') eq 'process' ) {
145
146     if ( $cgi->param('state') =~ /^(\w*)( \(([\w ]+)\))? ?\/ ?(\w+)$/ ) {
147       $state = $1;
148       $county = $3 || '';
149       $country = $4;
150     } elsif ( $cgi->param('state') =~ /^(\w*)$/ ) {
151       $state = $1;
152       $cgi->param('county') =~ /^([\w ]*)$/
153         or die "illegal county: ". $cgi->param('county');
154       $county = $1;
155       $cgi->param('country') =~ /^(\w+)$/
156         or die "illegal country: ". $cgi->param('country');
157       $country = $1;
158     } else {
159       die "illegal state: ". $cgi->param('state');
160     }
161
162     $payby = $cgi->param('payby');
163     $payinfo = $cgi->param( $payby. '_payinfo' );
164     $paydate =
165       $cgi->param( $payby. '_month' ). '-'. $cgi->param( $payby. '_year' );
166     $payname = $cgi->param( $payby. '_payname' );
167
168     if ( $invoicing_list = $cgi->param('invoicing_list') ) {
169       $invoicing_list .= ', POST' if $cgi->param('invoicing_list_POST');
170     } else {
171       $invoicing_list = 'POST';
172     }
173
174     $error = '';
175
176     $last             = $cgi->param('last');
177     $first            = $cgi->param('first');
178     $ss               = $cgi->param('ss');
179     $company          = $cgi->param('company');
180     $address1         = $cgi->param('address1');
181     $address2         = $cgi->param('address2');
182     $city             = $cgi->param('city');
183     #$county,
184     #$state,
185     $zip              = $cgi->param('zip');
186     #$country,
187     $daytime          = $cgi->param('daytime');
188     $night            = $cgi->param('night');
189     $fax              = $cgi->param('fax');
190     #$payby,
191     #$payinfo,
192     #$paydate,
193     #$payname,
194     #$invoicing_list,
195     $referral_custnum = $cgi->param('ref');
196     $pkgpart          = $cgi->param('pkgpart');
197     $username         = $cgi->param('username');
198     $sec_phrase       = $cgi->param('sec_phrase');
199     $password         = $cgi->param('_password');
200     $popnum           = $cgi->param('popnum');
201     #$agentnum, #         = $cgi->param('agentnum'),
202
203     if ( $cgi->param('_password') ne $cgi->param('_password2') ) {
204       $error = $init_data->{msgcat}{passwords_dont_match}; #msgcat
205       $password  = '';
206       $password2 = '';
207     } else {
208       $password2 = $cgi->param('_password2');
209
210       if ( $payby eq 'CARD' && $cgi->param('CARD_type') ) {
211         $payinfo =~ s/\D//g;
212
213         $payinfo =~ /^(\d{13,16})$/
214           or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
215         $payinfo = $1;
216         validate($payinfo)
217           or $error ||= $init_data->{msgcat}{invalid_card}; #. $self->payinfo;
218         cardtype($payinfo) eq $cgi->param('CARD_type')
219           or $error ||= $init_data->{msgcat}{not_a}. $cgi->param('CARD_type');
220       }
221
222       $error ||= new_customer ( {
223         'last'             => $last,
224         'first'            => $first,
225         'ss'               => $ss,
226         'company'          => $company,
227         'address1'         => $address1,
228         'address2'         => $address2,
229         'city'             => $city,
230         'county'           => $county,
231         'state'            => $state,
232         'zip'              => $zip,
233         'country'          => $country,
234         'daytime'          => $daytime,
235         'night'            => $night,
236         'fax'              => $fax,
237         'payby'            => $payby,
238         'payinfo'          => $payinfo,
239         'paydate'          => $paydate,
240         'payname'          => $payname,
241         'invoicing_list'   => $invoicing_list,
242         'referral_custnum' => $referral_custnum,
243         'pkgpart'          => $pkgpart,
244         'username'         => $username,
245         'sec_phrase'       => $sec_phrase,
246         '_password'        => $password,
247         'popnum'           => $popnum,
248         'agentnum'         => $agentnum,
249       } );
250
251     }
252     
253     if ( $error eq '_decline' ) {
254       print_decline();
255     } elsif ( $error ) {
256       print_form();
257     } else {
258       print_okay();
259     }
260
261   } else {
262     die "unrecognized magic: ". $cgi->param('magic');
263   }
264 } else {
265   $error = '';
266   $last = '';
267   $first = '';
268   $ss = '';
269   $company = '';
270   $address1 = '';
271   $address2 = '';
272   $city = '';
273   $state = $init_data->{statedefault};
274   $county = '';
275   $country = $init_data->{countrydefault};
276   $zip = '';
277   $daytime = '';
278   $night = '';
279   $fax = '';
280   $invoicing_list = '';
281   $payby = '';
282   $payinfo = '';
283   $paydate = '';
284   $payname = '';
285   $pkgpart = '';
286   $username = '';
287   $password = '';
288   $password2 = '';
289   $sec_phrase = '';
290   $popnum = '';
291   $referral_custnum = $cgi->param('ref') || '';
292   print_form;
293 }
294
295 sub print_form {
296
297   $cgi->delete('ref');
298   $self_url = $cgi->self_url;
299
300   $error = "Error: $error" if $error;
301
302   print $cgi->header( '-expires' => 'now' ),
303         $signup_template->fill_in();
304
305 }
306
307 sub print_decline {
308   print $cgi->header( '-expires' => 'now' ),
309         $decline_template->fill_in();
310 }
311
312 sub print_okay {
313   my $user_agent = new HTTP::Headers::UserAgent $ENV{HTTP_USER_AGENT};
314
315   $cgi->param('username') =~ /^(.+)$/
316     or die "fatal: invalid username got past FS::SignupClient::new_customer";
317   my $username = $1;
318   $cgi->param('_password') =~ /^(.+)$/
319     or die "fatal: invalid password got past FS::SignupClient::new_customer";
320   my $password = $1;
321   ( $cgi->param('first'). ' '. $cgi->param('last') ) =~ /^(.*)$/
322     or die "fatal: invalid email_name got past FS::SignupClient::new_customer";
323   $email_name = $1; #global for template
324
325   my $pop = pop_info($cgi->param('popnum'));
326     #or die "fatal: invalid popnum got past FS::SignupClient::new_customer";
327   if ( $pop ) {
328     ( $ac, $exch, $loc ) = ( $pop->{'ac'}, $pop->{'exch'}, $pop->{'loc'} );
329   } else {
330     ( $ac, $exch, $loc ) = ( '', '', ''); #presumably you're not using them.
331   }
332
333   #global for template
334   $pkg = ( grep { $_->{'pkgpart'} eq $pkgpart } @$packages )[0]->{'pkg'};
335
336   if ( $ieak_template
337        && $user_agent->platform eq 'ia32'
338        && $user_agent->os =~ /^win/
339        && ($user_agent->browser)[0] eq 'IE'
340      )
341   { #send an IEAK config
342     print $cgi->header('application/x-Internet-signup'),
343           $ieak_template->fill_in();
344   } elsif ( $cck_template
345             && $user_agent->platform eq 'ia32'
346             && $user_agent->os =~ /^win/
347             && ($user_agent->browser)[0] eq 'Netscape'
348           )
349   { #send a Netscape config
350     my $cck_data = $cck_template->fill_in();
351     print $cgi->header('application/x-netscape-autoconfigure-dialer-v2'),
352           map {
353             m/(.*)\s+(.*)$/;
354             pack("N", length($1)). $1. pack("N", length($2)). $2;
355           } split(/\n/, $cck_data);
356
357   } else { #send a simple confirmation
358     print $cgi->header( '-expires' => 'now' ),
359           $success_template->fill_in();
360   }
361 }
362
363 sub pop_info {
364   my $popnum = shift;
365   my $pop;
366   foreach $pop ( @{$pops} ) {
367     if ( $pop->{'popnum'} == $popnum ) { return $pop; }
368   }
369   '';
370 }
371
372 #horrible false laziness with FS/FS/svc_acct_pop.pm::popselector
373 sub popselector {
374
375   my( $popnum ) = @_;
376
377   return '<INPUT TYPE="hidden" NAME="popnum" VALUE="">' unless @$pops;
378   return $pops->[0]{city}. ', '. $pops->[0]{state}.
379          ' ('. $pops->[0]{ac}. ')/'. $pops->[0]{exch}.
380          '<INPUT TYPE="hidden" NAME="popnum" VALUE="'. $pops->[0]{popnum}. '">'
381     if scalar(@$pops) == 1;
382
383   my %pop = ();
384   foreach (@$pops) {
385     push @{ $pop{ $_->{state} }->{ $_->{ac} } }, $_;
386   }
387
388   my $text = <<END;
389     <SCRIPT>
390     function opt(what,href,text) {
391       var optionName = new Option(text, href, false, false)
392       var length = what.length;
393       what.options[length] = optionName;
394     }
395
396     function acstate_changed(what) {
397       state = what.options[what.selectedIndex].text;
398       for (var i = what.form.popac.length;i > 0;i--)
399                 what.form.popac.options[i] = null;
400       what.form.popac.options[0] = new Option("Area code", "-1", false, true);
401 END
402
403   foreach my $state ( sort { $a cmp $b } keys %pop ) {
404     $text .= "\nif ( state == \"$state\" ) {\n";
405
406     foreach my $ac ( sort { $a cmp $b } keys %{ $pop{$state} }) {
407       $text .= "opt(what.form.popac, \"$ac\", \"$ac\");\n";
408       if ($ac eq $cgi->param('popac')) {
409         $text .= "what.form.popac.options[what.form.popac.length-1].selected = true;\n";
410       }
411     }
412     $text .= "}\n";
413   }
414   $text .= "popac_changed(what.form.popac)}\n";
415
416   $text .= <<END;
417   function popac_changed(what) {
418     ac = what.options[what.selectedIndex].text;
419     for (var i = what.form.popnum.length;i > 0;i--)
420         what.form.popnum.options[i] = null;
421     what.form.popnum.options[0] = new Option("City", "-1", false, true);
422
423 END
424
425   foreach my $state ( keys %pop ) {
426     foreach my $popac ( keys %{ $pop{$state} } ) {
427       $text .= "\nif ( ac == \"$popac\" ) {\n";
428
429       foreach my $pop ( @{$pop{$state}->{$popac}}) {
430         my $o_popnum = $pop->{popnum};
431         my $poptext =  $pop->{city}. ', '. $pop->{state}.
432                        ' ('. $pop->{ac}. ')/'. $pop->{exch};
433
434         $text .= "opt(what.form.popnum, \"$o_popnum\", \"$poptext\");\n";
435         if ($popnum == $o_popnum) {
436           $text .= "what.form.popnum.options[what.form.popnum.length-1].selected = true;\n";
437         }
438       }
439       $text .= "}\n";
440     }
441   }
442
443
444   $text .= "}\n</SCRIPT>\n";
445
446   $text .=
447     qq!<TABLE CELLPADDING="0"><TR><TD><SELECT NAME="acstate"! .
448     qq!SIZE=1 onChange="acstate_changed(this)"><OPTION VALUE=-1>State!;
449   $text .= "<OPTION" . ($_ eq $cgi->param('acstate') ? " SELECTED" : "") .
450            ">$_" foreach sort { $a cmp $b } keys %pop;
451   $text .= '</SELECT>'; #callback? return 3 html pieces?  #'</TD>';
452
453   $text .=
454     qq!<SELECT NAME="popac" SIZE=1 onChange="popac_changed(this)">!.
455     qq!<OPTION>Area code</SELECT></TR><TR VALIGN="top">!;
456
457   $text .= qq!<TR><TD><SELECT NAME="popnum" SIZE=1 STYLE="width: 20em"><OPTION>City!;
458
459   #comment this block to disable initial list polulation
460   foreach my $pop ( sort { $a->{state} cmp $b->{state} } @$pops ) {
461     $text .= qq!<OPTION VALUE="!. $pop->{popnum}. '"'.
462              ( ( $popnum && $pop->{popnum} == $popnum ) ? ' SELECTED' : '' ). ">".
463              $pop->{city}. ', '. $pop->{state}.
464                ' ('. $pop->{ac}. ')/'. $pop->{exch};
465   }
466
467   $text .= qq!</SELECT></TD></TR></TABLE>!;
468
469   $text;
470
471 }
472
473 sub expselect {
474   my $prefix = shift;
475   my $date = shift || '';
476   my( $m, $y ) = ( 0, 0 );
477   if ( $date  =~ /^(\d{4})-(\d{2})-\d{2}$/ ) { #PostgreSQL date format
478     ( $m, $y ) = ( $2, $1 );
479   } elsif ( $date =~ /^(\d{1,2})-(\d{1,2}-)?(\d{4}$)/ ) {
480     ( $m, $y ) = ( $1, $3 );
481   }
482   my $return = qq!<SELECT NAME="$prefix!. qq!_month" SIZE="1">!;
483   for ( 1 .. 12 ) {
484     $return .= "<OPTION";
485     $return .= " SELECTED" if $_ == $m;
486     $return .= ">$_";
487   }
488   $return .= qq!</SELECT>/<SELECT NAME="$prefix!. qq!_year" SIZE="1">!;
489   for ( 2001 .. 2037 ) {
490     $return .= "<OPTION";
491     $return .= " SELECTED" if $_ == $y;
492     $return .= ">$_";
493   }
494   $return .= "</SELECT>";
495
496   $return;
497 }
498
499 #false laziness w/FS::cust_main_county
500 sub regionselector {
501   my ( $selected_county, $selected_state, $selected_country,
502        $prefix, $onchange ) = @_;
503
504   my $prefix = '' unless defined $prefix;
505
506   my $countyflag = 0;
507
508   my %cust_main_county;
509
510 #  unless ( @cust_main_county ) { #cache 
511     #@cust_main_county = qsearch('cust_main_county', {} );
512     #foreach my $c ( @cust_main_county ) {
513     foreach my $c ( @$locales ) {
514       #$countyflag=1 if $c->county;
515       $countyflag=1 if $c->{county};
516       #push @{$cust_main_county{$c->country}{$c->state}}, $c->county;
517       #$cust_main_county{$c->country}{$c->state}{$c->county} = 1;
518       $cust_main_county{$c->{country}}{$c->{state}}{$c->{county}} = 1;
519     }
520 #  }
521   $countyflag=1 if $selected_county;
522
523   my $script_html = <<END;
524     <SCRIPT>
525     function opt(what,value,text) {
526       var optionName = new Option(text, value, false, false);
527       var length = what.length;
528       what.options[length] = optionName;
529     }
530     function ${prefix}country_changed(what) {
531       country = what.options[what.selectedIndex].text;
532       for ( var i = what.form.${prefix}state.length; i >= 0; i-- )
533           what.form.${prefix}state.options[i] = null;
534 END
535       #what.form.${prefix}state.options[0] = new Option('', '', false, true);
536
537   foreach my $country ( sort keys %cust_main_county ) {
538     $script_html .= "\nif ( country == \"$country\" ) {\n";
539     foreach my $state ( sort keys %{$cust_main_county{$country}} ) {
540       my $text = $state || '(n/a)';
541       $script_html .= qq!opt(what.form.${prefix}state, "$state", "$text");\n!;
542     }
543     $script_html .= "}\n";
544   }
545
546   $script_html .= <<END;
547     }
548     function ${prefix}state_changed(what) {
549 END
550
551   if ( $countyflag ) {
552     $script_html .= <<END;
553       state = what.options[what.selectedIndex].text;
554       country = what.form.${prefix}country.options[what.form.${prefix}country.selectedIndex].text;
555       for ( var i = what.form.${prefix}county.length; i >= 0; i-- )
556           what.form.${prefix}county.options[i] = null;
557 END
558
559     foreach my $country ( sort keys %cust_main_county ) {
560       $script_html .= "\nif ( country == \"$country\" ) {\n";
561       foreach my $state ( sort keys %{$cust_main_county{$country}} ) {
562         $script_html .= "\nif ( state == \"$state\" ) {\n";
563           #foreach my $county ( sort @{$cust_main_county{$country}{$state}} ) {
564           foreach my $county ( sort keys %{$cust_main_county{$country}{$state}} ) {
565             my $text = $county || '(n/a)';
566             $script_html .=
567               qq!opt(what.form.${prefix}county, "$county", "$text");\n!;
568           }
569         $script_html .= "}\n";
570       }
571       $script_html .= "}\n";
572     }
573   }
574
575   $script_html .= <<END;
576     }
577     </SCRIPT>
578 END
579
580   my $county_html = $script_html;
581   if ( $countyflag ) {
582     $county_html .= qq!<SELECT NAME="${prefix}county" onChange="$onchange">!;
583     $county_html .= '</SELECT>';
584   } else {
585     $county_html .=
586       qq!<INPUT TYPE="hidden" NAME="${prefix}county" VALUE="$selected_county">!;
587   }
588
589   my $state_html = qq!<SELECT NAME="${prefix}state" !.
590                    qq!onChange="${prefix}state_changed(this); $onchange">!;
591   foreach my $state ( sort keys %{ $cust_main_county{$selected_country} } ) {
592     my $text = $state || '(n/a)';
593     my $selected = $state eq $selected_state ? 'SELECTED' : '';
594     $state_html .= "\n<OPTION $selected VALUE=$state>$text</OPTION>"
595   }
596   $state_html .= '</SELECT>';
597
598   $state_html .= '</SELECT>';
599
600   my $country_html = qq!<SELECT NAME="${prefix}country" !.
601                      qq!onChange="${prefix}country_changed(this); $onchange">!;
602   my $countrydefault = $init_data->{countrydefault} || 'US';
603   foreach my $country (
604     sort { ($b eq $countrydefault) <=> ($a eq $countrydefault) or $a cmp $b }
605       keys %cust_main_county
606   ) {
607     my $selected = $country eq $selected_country ? ' SELECTED' : '';
608     $country_html .= "\n<OPTION$selected>$country</OPTION>"
609   }
610   $country_html .= '</SELECT>';
611
612   ($county_html, $state_html, $country_html);
613
614 }
615
616 sub success_default { #html to use if you don't specify a success file
617   <<'END';
618 <HTML><HEAD><TITLE>Signup successful</TITLE></HEAD>
619 <BODY BGCOLOR="#e8e8e8"><FONT SIZE=7>Signup successful</FONT><BR><BR>
620 Thanks for signing up!
621 <BR><BR>
622 Signup information for <%= $email_name %>:
623 <BR><BR>
624 Username: <%= $username %><BR>
625 Password: <%= $password %><BR>
626 Access number: (<%= $ac %>) / $exch - $local<BR>
627 Package: <%= $pkg %><BR>
628 </BODY></HTML>
629 END
630 }
631
632 sub decline_default { #html to use if there is a decline
633   <<'END';
634 <HTML><HEAD><TITLE>Processing error</TITLE></HEAD>
635 <BODY BGCOLOR="#e8e8e8"><FONT SIZE=7>Processing error</FONT><BR><BR>
636 There has been an error processing your account.  Please contact customer
637 support.
638 </BODY></HTML>
639 END
640 }
641