-<% include('/elements/location.html',
- 'object' => $cust_location,
- #'onchange' ? probably not
- 'disabled' => $disabled,
- 'no_asterisks' => 1,
- 'no_bold' => $opt{'no_bold'},
- 'alt_format' => $opt{'alt_format'},
- )
-%>
+<& /elements/location.html,
+ 'object' => $cust_location,
+ #'onchange' ? probably not
+ 'disabled' => $disabled,
+ 'no_asterisks' => 1,
+ 'no_bold' => $opt{'no_bold'},
+ 'alt_format' => $opt{'alt_format'},
+ 'enable_coords' => 1,
+ 'enable_censustract' => 1,
+&>
+
+<SCRIPT TYPE="text/javascript">
+% if ( $prospect_main ) { # && ! $opt{is_optional} ) {
+
+ changeSelect(document.getElementById('country'), <% $cust_location->country || $countrydefault |js_string %>);
+
+ country_changed( document.getElementById('country'),
+ fix_state_factory( <% $cust_location->state || $statedefault |js_string %>,
+ ''
+ )
+ );
+% } elsif ( $locationnum != -1 ) {
+ locationnum_changed(document.getElementById('locationnum'));
+% }
+</SCRIPT>