%	if ($access){
% 		$m->call_next(user=>$user);
% 	}else{
<& /login/messages/clients_only.html, link=>'/info/contact/default.html?area=novas_empresas', bgcolor=>'#ecf1f3' &>
% 	}	
<%shared>
#--------------------------------------------------------------------------------------
# access
#--------------------------------------------------------------------------------------
my ($user, $userid) = $m->comp("/_shared/procs/users/login/user_check.m",  realm=>'clientes,interno');
my ($access) = $m->comp("/_shared/procs/has_ne_access.m",  user=>$user);

#--------------------------------------------------------------------------------------
# search args
#--------------------------------------------------------------------------------------
my $global_search;
my $query; 
my $newquery; 
my $qrcd; 
#--------------------------------------------------------------------------------------
# search args
#--------------------------------------------------------------------------------------
$global_search = $m->top_args;

$query = $$global_search{query};
$newquery = $$global_search{newquery}; 
$qrcd = $$global_search{qrcd}; 

</%shared>
%#######################################################################################
%#  NEW METHODS                                                                     
%#======================================================================================
<%method form_start>
%#--------------------------------------------------------------------------------------
<%ARGS>
$action => "/ne/search"
</%ARGS>
% if ($access){
<& PARENT:form_start, action => $action &>
% }else{
<form action="/login/login.m" method="get" name='login'>
% }
</%method>
%#--------------------------------------------------------------------------------------
<%method main_ctrl>
%#--------------------------------------------------------------------------------------
<%args>
$node => undef
</%args>
% if ($access){
% $node = $m->top_args->{ne_sector} unless defined($node);

<div align=left class=cnts style='padding: 0px 12px 7px 12px; width: 444px; background-color: #0092c2; border-top: solid 1px #4ab2d4; color: white;'>
<table width=100% cellpadding=0 cellspacing=0 border=0>
							<tr height=36>
								<td valign=middle>
								<div style='padding-right:6px;'>
						<input name='query' style='width:275px; font-size: 10px;' value="<%$query|s%>">
								</div>
								</td>
								<td>
					<a href="javascript:options()" 
						onmouseover="changeImages('bdiropt', '<%$media_server%>/bdiropt-over.gif'); return true;"
						onmouseout="changeImages('bdiropt', '<%$media_server%>/bdiropt.gif'); return true;"
						><img hspace=3 name="bdiropt" src="<%$media_server%>/bdiropt.gif" width="72" height="23" border="0" alt=""></a>
								</td>
								<td>
					<a href="javascript:search()"
						onmouseover="changeImages('bdirsrch', '<%$media_server%>/bdirsrch-over.gif'); return true;"
						onmouseout="changeImages('bdirsrch', '<%$media_server%>/bdirsrch.gif'); return true;"
						><img hspace=3 name="bdirsrch" src="<%$media_server%>/bdirsrch.gif" width="72" height="23" border="0" alt=""></a>
								</td>
							</tr>
<tr><td style='color: white'>
<& /ne/templates/selected_sectors.html, ne_sector=>$node, refresh=>1 &>
</td>
<td align=right>
%#<a href="javascript:options('ne')" 
%#	onmouseover="changeImages('bdiropt', '<%$media_server%>/bdiropt-over.gif'); return true;"
%#	onmouseout="changeImages('bdiropt', '<%$media_server%>/bdiropt.gif'); return true;"
%#	><img hspace=3 name="bdiropt" src="<%$media_server%>/bdiropt.gif" width="72" height="23" border="0" alt=""></a>
</td>
</tr>
</table>
</div>		
			<& SELF:opt &>
			<& SELF:nav_path &>
% }else{			
<div align=left class=cnts style='width: 468px; height: 19px; background-color: #0092c2; border-top: solid 1px #4ab2d4;'>
</div>
% }
</%method>
%#--------------------------------------------------------------------------------------
<%method alt_contents>
%#--------------------------------------------------------------------------------------
<& /ne/options.html &>
</%method>
%#======================================================================================
<%method section_tabs>
%#--------------------------------------------------------------------------------------
<& PARENT:section_tabs, stab=>2 &>
</%method>
