1 % if ( $conf->exists('address2-search') ) {
3 <FORM ACTION="<%$fsurl%>search/cust_main.cgi" METHOD="GET" STYLE="margin:0;display:inline">
4 <INPUT TYPE="hidden" NAME="address2_on" VALUE="1">
5 <INPUT NAME="address2_text" TYPE="text" VALUE="<% $address2_label |n %>" STYLE="width:67px" onFocus="clearhint_search_address2(this);" onClick="clearhint_search_address2(this);" CLASS="fstext">
7 <INPUT TYPE="submit" VALUE="Search units" 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">
9 <% $menu_position eq 'left' ? '<BR>' : '' %>
13 <SCRIPT TYPE="text/javascript">
15 function clearhint_search_address2 (what) {
16 if ( what.value == '<% $address2_label |n %>' )
23 my $address2_label = '(Unit #)';
28 my $conf = new FS::Conf;
30 my $curuser = $FS::CurrentUser::CurrentUser;
32 my $menu_position = $curuser->option('menu_position') || 'top';