<?
    session_start();
    if (!(isset($_SESSION['cod_rentacar'])))
       header("location: login.php");
    else
       include('main.php');
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Balcões</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="NetObjects Fusion 8 for Windows">
<link rel="stylesheet" href="../assets/clases.css" type="text/css" />
<script language="javascript" src="../assets/car_func.js"></script>
<script language="javascript" src="../assets/functions.js"></script>
<script language="javascript" src="../assets/help_functions.js"></script>


<SCRIPT>
<!--
var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F_SE,F_SU,F_U,F_HR,F_MU,F_MD;
function F_e(){} function F_n(){} function F_onLoaded(){}
function F_loadRollover(){} function F_roll(){}
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
document.write("<SCRIPT SRC=\"../assets/script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"../assets/effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="../assets/rollover.js"></SCRIPT>
<SCRIPT>
<!--
function F_doLoaded() {
	document.main = new F_cMain();
	document.objectModel = new Object();
	F_OM('Layout','LayoutLYR', 'doc', '', new Array());
	F_OM('FormsComboBox2' , '', 'sel', 'Layout',new Array(
	'Change',F_functFormsComboBox2Action0,'','',0),'LayoutBalcoes',0,'new_region');
	F_pageLoaded('Layout');
}
function F_functFormsComboBox2Action0(params) {
javascript:change_pick_up(document.LayoutBalcoes.new_region.value,document.LayoutBalcoes.registos.value);
}

//-->
</SCRIPT>
<LINK REL=STYLESHEET TYPE="text/css" HREF="../html/style.css">
<LINK REL=STYLESHEET TYPE="text/css" HREF="../html/site.css">
<STYLE>
</STYLE><NOLAYER>
<STYLE ID="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR { position:relative; top:0; left:0; z-index: 1; visibility:inherit; }

DIV#NavigationBar1_1LYR { 
position:absolute; visibility:hidden; top:0; left:0; z-index:1;
}
-->
</STYLE>

</NOLAYER>
</HEAD>
<BODY NOF="(MB=(DefaultMasterBorder, 213, 77, 0, 0), L=(balcoesLayout, 761, 378))" STYLE="text-align: center;" onLoad="F_onLoaded();">
    <DIV ID="LayoutLYR"><LAYER ID="LayoutLYR" TOP=0 LEFT=0 VISIBILITY=INHERIT WIDTH=761 HEIGHT=668 Z-INDEX=1>
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD WIDTH=761>
                <TABLE ID="Table1" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=213>
                    <TR HEIGHT=41>
                        <TD WIDTH=761 STYLE="background-color: rgb(255,255,255);">
                            <P>
                                <TABLE WIDTH=760 BORDER=0 CELLSPACING=0 CELLPADDING=0 ALIGN=LEFT NOF=TE>
                                    <TR>
                                        <TD>
                                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=41 NOF="LayoutRegion1">
                                                <TR ALIGN=LEFT VALIGN=TOP>
                                                    <TD>
                                                        <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=736 NOF="LayoutRegion1">
                                                            <TR VALIGN=TOP ALIGN=LEFT>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=425 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=409 HEIGHT=16><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=409 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=15></TD>
                                                                            <TD WIDTH=16><IMG ID="Picture2" HEIGHT=15 WIDTH=16 SRC="../assets/images/ihhomicon1.jpg" BORDER=0 ALT="ihhomicon" TITLE="ihhomicon"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=56 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=2 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=54><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=54 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=54 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="font-size: 10px;">Home</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=21 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=5 HEIGHT=16><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=5 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=15></TD>
                                                                            <TD WIDTH=16><IMG ID="Picture3" HEIGHT=15 WIDTH=16 SRC="../assets/images/ihemail1.jpg" BORDER=0 ALT="ihemail" TITLE="ihemail"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=78 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=2 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=76><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=76 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=76 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="font-size: 10px;">Contacte-nos</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=30 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=13 HEIGHT=15><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=13 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=17></TD>
                                                                            <TD WIDTH=17><IMG ID="Picture7" HEIGHT=17 WIDTH=17 SRC="../assets/images/ihgobutton031.jpg" BORDER=0 ALT="ihgobutton03" TITLE="ihgobutton03"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=44 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=6 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=6 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=38><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=38 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=38 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="color: rgb(51,102,204);">Ajuda</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=29 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=22 HEIGHT=21><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=22 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=5></TD>
                                                                            <TD WIDTH=7><IMG ID="Picture8" HEIGHT=5 WIDTH=7 SRC="../assets/images/ihbullet.jpg" BORDER=0 ALT="ihbullet" TITLE="ihbullet"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=53 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=4 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=4 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=49><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=49 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=49 CLASS="TextObject">
                                                                                <P><B><SPAN STYLE="font-size: 10px;" class="link_azul"><A HREF="./logout.php">Sair</A></SPAN></B>&nbsp;</P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                            </TR>
                                                        </TABLE>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                            </P>
                        </TD>
                    </TR>
                    <TR HEIGHT=137>
                        <TD>
                            <P><IMG ID="Banner2" HEIGHT=137 WIDTH=760 SRC="../assets/images/autogen/Balcoes_NDefault.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0 ALT="Balcões" TITLE="Balcões" NOF=B_H></P>
                        </TD>
                    </TR>
                    <TR HEIGHT=35>
                        <TD VALIGN=MIDDLE STYLE="background-color: rgb(255,255,255); background-image: url('../assets/images/ihnavbg1.jpg');">
                            <H1>
                                <TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=TE>
                                    <TR>
                                        <TD ALIGN="CENTER">
                                            <TABLE ID="NavigationBar1" BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=NB_UYHPNY020 WIDTH=576>
                                                <TR VALIGN=TOP ALIGN=LEFT>
                                                    <TD WIDTH=96><A HREF="../html/dados_gerais.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton1','',0);F_roll('NavigationButton1',1)" onMouseOut="F_roll('NavigationButton1',0)"><IMG ID="NavigationButton1" NAME="NavigationButton1" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Dados_Gerais_Nregular_1.jpg" onLoad="F_loadRollover(this,'Dados_Gerais_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Dados Gerais" TITLE="Dados Gerais"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/balcoes.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton2','',0);F_roll('NavigationButton2',1)" onMouseOut="F_roll('NavigationButton2',0)"><IMG ID="NavigationButton2" NAME="NavigationButton2" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Balcoes_Hhighlighted_1.jpg" onLoad="F_loadRollover(this,'Balcoes_HRhighlightedrollover_1.jpg',0)" BORDER=0 ALT="Balcões" TITLE="Balcões"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/grupos.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton3','',0);F_roll('NavigationButton3',1)" onMouseOut="F_roll('NavigationButton3',0)"><IMG ID="NavigationButton3" NAME="NavigationButton3" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Grupos_Nregular_1.jpg" onLoad="F_loadRollover(this,'Grupos_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Grupos" TITLE="Grupos"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/extras.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton4','',0);F_roll('NavigationButton4',1)" onMouseOut="F_roll('NavigationButton4',0)"><IMG ID="NavigationButton4" NAME="NavigationButton4" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Extras_Nregular_1.jpg" onLoad="F_loadRollover(this,'Extras_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Extras" TITLE="Extras"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/tarifas.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton5','',0);F_roll('NavigationButton5',1)" onMouseOut="F_roll('NavigationButton5',0)"><ILAYER ID="NavigationButton5"></ILAYER><IMG ID="NavigationButton5" NAME="NavigationButton5" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Tarifas_Nregular_1.jpg" onLoad="F_loadRollover(this,'Tarifas_NRregularrollover_1.jpg',new Array('NavigationBar1_1', 'vertical', 'slideBottom', 0, 35))" BORDER=0 ALT="Tarifas" TITLE="Tarifas"></A></TD>
                                                    <TD WIDTH=96 HEIGHT=35><A HREF="../html/stop_sales.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton6','',0);F_roll('NavigationButton6',1)" onMouseOut="F_roll('NavigationButton6',0)"><IMG ID="NavigationButton6" NAME="NavigationButton6" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Stop_Sales_Nregular_1.jpg" onLoad="F_loadRollover(this,'Stop_Sales_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Stop Sales" TITLE="Stop Sales"></A></TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                        </TD>
                    </TR>
                    <TR HEIGHT=0>
                        <TD STYLE="background-color: rgb(255,255,255); background-image: url('../assets/images/ihtop31.gif');">
                            <P></P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 NOF=LY>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD HEIGHT=378 WIDTH=760>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=378 STYLE="background-color: rgb(237,237,237);" NOF="LayoutRegion8">
                    <TR ALIGN=LEFT VALIGN=TOP>
                        <TD>
                            <FORM NAME="LayoutBalcoes" ACTION="balcoes2.php" METHOD=POST>
                                <INPUT TYPE=HIDDEN NAME="registos" VALUE="">
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=519 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=28><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=493><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=493 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=493 CLASS="TextObject">
                                            <P><?
db_connect();

$sql = "select nome, pasta from tr_rentacar where cod_rentacar = ".$_SESSION['cod_rentacar'];
$result = mysql_query($sql);
$num_row = mysql_num_rows($result);

if($num_row!=0) 
{   
   $row   = mysql_fetch_row($result);
   $nome  = strtoupper($row[0]); 
   $pasta = $row[1];

   echo '<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: medium;">'.$nome.'</SPAN></B>';
}

?>
&nbsp;</P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=750 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=10 HEIGHT=7><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=10 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=740><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=740 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=740 CLASS="TextObject">
                                            <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 18px;">Balcões</SPAN></B></P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=726 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=13><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=700><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=700 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=700 CLASS="TextObject">
                                            <P><?

$sql = "select a.cod_escritorio, a.cod_regiao, b.descricao, a.cod_localidade, a.entrega, a.recolha, ";
$sql = $sql." a.endereco, a.descricao_horario, a.hora_inicio_fora_horas, a.hora_inicio_manha, ";
$sql = $sql." a.cod_extra_fora_horas ";
$sql = $sql." from tr_rentacar_escritorios a, tbregiao b ";
$sql = $sql." where cod_rentacar = ".$_SESSION['cod_rentacar'];
$sql = $sql." and a.cod_regiao = b.cod_regiao ";

$result  = mysql_query($sql);
$num_row = mysql_num_rows($result);

if($num_row!=0) 
{
   echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=700 HEIGHT=24>
          <TR HEIGHT=24>
            <TD STYLE="text-align: left;">
                <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 14px;">Altere ou apague seus balcões aqui</SPAN></B>
            </TD>
          </TR>
         </TABLE>';

   while($row = mysql_fetch_row($result))
   {      
      $codigo               = $row[0];
      $cod_regiao           = $row[1];
      $desc_regiao          = "'".$row[2]."'";
      $cod_localidade       = $row[3];      
      $entrega              = $row[4];
      $recolha              = $row[5];
      $endereco             = "'".$row[6]."'";
      $descricao_horario    = "'".$row[7]."'";
      $hora_inicio_fh       = $row[8];
      $hora_inicio_manha    = $row[9];
      $cod_extra_fh         = $row[10];

      $var_hora_fh      = '';
      $var_min_fh       = '';
      $var_hora_manha   = ''; 
      $var_min_manha    = ''; 

      if ($hora_inicio_fh != '')
      {
          $hora_fh          = explode(":",$hora_inicio_fh);
          $var_hora_fh      = $hora_fh[0]; 
          $var_min_fh       = $hora_fh[1]; 
      }

      if ($hora_inicio_manha != '')
      {
          $hora_manha       = explode(":",$hora_inicio_manha);  
          $var_hora_manha   = $hora_manha[0]; 
          $var_min_manha    = $hora_manha[1]; 
      }

      $mod_check            = 'mod_check'.$codigo;
      $del_check            = 'del_check'.$codigo;
      $text_regiao          = 'text_regiao'.$codigo;
      $num_localidade       = 'num_localidade'.$codigo;            
      $num_entrega          = 'num_entrega'.$codigo;      
      $num_recolha          = 'num_recolha'.$codigo;
      $text_endereco        = 'text_endereco'.$codigo;
      $text_desc_horario    = 'text_desc_horario'.$codigo;
      $text_hora_inic_fh    = 'text_hora_inic_fh'.$codigo;
      $text_min_inic_fh     = 'text_min_inic_fh'.$codigo;
      $text_hora_inic_manha = 'text_hora_inic_manha'.$codigo;
      $text_min_inic_manha  = 'text_min_inic_manha'.$codigo;
      $text_cod_extra_fh    = 'text_cod_extra_fh'.$codigo;

      echo '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH=700 HEIGHT=180>
              <TR HEIGHT=17>
                 <TD ALIGN=CENTER WIDTH=40 STYLE="background-color: rgb(255,251,236);">
                     <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                     Alterar</SPAN></B></P>
                 </TD>
                 <TD ALIGN=CENTER WIDTH=43 STYLE="background-color: rgb(255,251,236);">
                     <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                     Apagar</SPAN></B></P>
                 </TD>
                 <TD WIDTH=232 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                     <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                     Região</SPAN></B></P>
                 </TD>
                 <TD WIDTH=193 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                     <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                     Localidade</SPAN></B></P>
                 </TD>
                 <TD WIDTH=180 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                     <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                     Tipo</SPAN></B></P>
                 </TD>
              </TR>
              <TR HEIGHT=28>
                 <TD align=center>
                     <INPUT TYPE=CHECKBOX name='.$mod_check.' VALUE="" class="text_objects">
                 </TD>
                 <TD align=center>
                     <INPUT TYPE=CHECKBOX name='.$del_check.' VALUE="" class="text_objects">
                 </TD>
                 <TD STYLE="padding-left: 3pt;">
                     <INPUT TYPE=TEXT NAME='.$text_regiao.' VALUE='.$desc_regiao.' style="width:180px" class="text_objects" disabled>
                 </TD>
                 <TD STYLE="padding-left: 3pt;">
                    <SELECT NAME='.$num_localidade.' style="width:180px" class="text_objects">
                         <OPTION VALUE="0">Select a location</OPTION>';                                        

                         $sql = "SELECT cod_localidade, descricao ";                          
                         $sql = $sql." FROM tr_rentacar_localidades ";
                         $sql = $sql." WHERE cod_regiao = ".$cod_regiao;
                         $sql = $sql." ORDER BY descricao ";
  
                         $result1  = mysql_query($sql);
                         $num_row1 = mysql_num_rows($result1);  
                         if($num_row1!=0) 
                         {   
                            while($row1 = mysql_fetch_row($result1))
                            {      
                               $codigo     = $row1[0];
                               $descricao  = $row1[1];          
                               if ($codigo == $cod_localidade)
                                   echo '<option value='.$codigo.' selected>'.$descricao.'</option>'; 
                               else
                                   echo '<option value='.$codigo.'>'.$descricao.'</option>'; 
                            }
                         }                       
                echo ' </SELECT>                  
                </TD>

                <TD STYLE="padding-left: 3pt;" >
                   <INPUT TYPE=CHECKBOX NAME='.$num_entrega.' VALUE=""'; if ($entrega == 1) echo 'CHECKED'; echo '>
                   <SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px; color:rgb(0,0,0);">
                   Entrega</SPAN>&nbsp;&nbsp;&nbsp;&nbsp;
                   <INPUT TYPE=CHECKBOX NAME='.$num_recolha.' VALUE=""'; if ($recolha == 1) echo 'CHECKED'; echo '>
                   <SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px; color:rgb(0,0,0);">
                   Recolha</SPAN>
                </TD>
             </TR>

             <TR HEIGHT=17>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD COLSPAN=3 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                    <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                    Endereço</SPAN></B>
                </TD>
             </TR>
             <TR HEIGHT=28>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD COLSPAN=3 STYLE="padding-left: 3pt;">
                    <INPUT TYPE=TEXT name='.$text_endereco.' VALUE='.$endereco.' MAXLENGTH=150 style="width:550px" class="text_objects">
                </TD>
             </TR>

             <TR HEIGHT=17>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                   <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                   Extra para Fora Horas</SPAN></B>
                </TD>
                <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                   <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                   Hora de Inicio para Fora Horas</SPAN></B>
                </TD>
                <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                    <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size:11px;">
                    Hora Final para Fora Horas</SPAN></B>
                </TD>
             </TR>

             <TR HEIGHT=28>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD STYLE="padding-left: 3pt;">
                   <SELECT NAME='.$text_cod_extra_fh.' class="text_objects" style="width:210px">
                       <option value=0 selected>Escolha o extra de fora horas</option>';
                       $sql = "select cod_extra, desc_extra from tr_rentacar_extras ";
                       $sql = $sql." where cod_rentacar = ".$_SESSION['cod_rentacar'];
                       $sql = $sql." and extra_fora_horas = 1 ";

                       $result1  = mysql_query($sql);
                       $num_row1 = mysql_num_rows($result1);  
                       if($num_row1!=0) 
                       {   
                          while($row = mysql_fetch_row($result1))
                          {      
                             $codigo     = $row[0];
                             $descricao  = $row[1];   
                             if ($codigo == $cod_extra_fh)    
                                 echo '<option value='.$codigo.' selected>'.$descricao.'</option>'; 
                             else 
                                 echo '<option value='.$codigo.'>'.$descricao.'</option>'; 
                          }
                       }                  
                   echo '</SELECT>
                </TD>

                <TD STYLE="padding-left: 3pt;">            
                    <SELECT NAME='.$text_hora_inic_fh.' style="width:40px" class="text_objects">';
                    for ($i=0;$i<=23;$i++)
                    {
                       if ($i < 10)
                           $j = '0'.$i;
                       else
                           $j = $i;

                       if ($var_hora_fh==$i)                     
                           echo '<OPTION VALUE='.$j.' selected>'.$j.'</OPTION>';
                       else
                           echo '<OPTION VALUE='.$j.'>'.$j.'</OPTION>';
                    }
                    echo '</SELECT>&nbsp;

                    <SELECT NAME='.$text_min_inic_fh.' style="width:40px" class="text_objects">';
                    for ($i=0;$i<=45;$i=$i+15)
                    {
                       if ($i < 10)
                           $j = '0'.$i;
                       else
                           $j = $i;

                       if ($var_min_fh==$i)                     
                           echo '<OPTION VALUE='.$j.' selected>'.$j.'</OPTION>';
                       else
                           echo '<OPTION VALUE='.$j.'>'.$j.'</OPTION>';
                    }
                    echo '</SELECT>
                </TD>

                <TD STYLE="padding-left: 3pt;">            
                    <SELECT NAME='.$text_hora_inic_manha.' style="width:40px" class="text_objects">';
                    for ($i=0;$i<=23;$i++)
                    {
                       if ($i < 10)
                           $j = '0'.$i;
                       else
                           $j = $i;

                       if ($var_hora_manha==$i)                     
                           echo '<OPTION VALUE='.$j.' selected>'.$j.'</OPTION>';
                       else
                           echo '<OPTION VALUE='.$j.'>'.$j.'</OPTION>';
                    }
                    echo '</SELECT>&nbsp;

                    <SELECT NAME='.$text_min_inic_manha.' style="width:40px" class="text_objects">';
                    for ($i=0;$i<=45;$i=$i+15)
                    {
                       if ($i < 10)
                           $j = '0'.$i;
                       else
                           $j = $i;

                       if ($var_min_manha==$i)                     
                           echo '<OPTION VALUE='.$j.' selected>'.$j.'</OPTION>';
                       else
                           echo '<OPTION VALUE='.$j.'>'.$j.'</OPTION>';
                    }
                    echo '</SELECT>
                </TD>
            </TR>
            <TR HEIGHT=17>
               <TD>&nbsp</TD>
               <TD>&nbsp</TD>
               <TD COLSPAN=3 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                   <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                   Descrição do Horario (Esta descrição aparece na janela da descrição da empresa)</SPAN></B>
               </TD>
            </TR>
            <TR HEIGHT=28>
               <TD>&nbsp</TD>
               <TD>&nbsp</TD>
               <TD COLSPAN=3 STYLE="padding-left: 3pt;">
                   <INPUT TYPE=TEXT name='.$text_desc_horario.' value='.$descricao_horario.' MAXLENGTH=70 style="width:350px" class="text_objects">
               </TD>
            </TR>
         </TABLE><BR><BR>';
     }
}
?>
&nbsp;</P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=220 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=9><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=194><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=194 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=194 CLASS="TextObject">
                                            <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 14px; color: rgb(0,0,0);">Insira um novo balcão aqui</SPAN></B></P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=5><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=698>
                                            <TABLE ID="Table3" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=180>
                                                <TR HEIGHT=17>
                                                    <TD ALIGN=CENTER WIDTH=45 STYLE="background-color: rgb(255,251,236);">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Novo</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=247 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Região  <?

function ConvertToJSArray2D($PArray , $ArrayName, $filas)
{
   $Row = $filas;
   $Col = 3;

   ?>
   <SCRIPT LANGUAGE = 'JAVASCRIPT' >
      <?=$ArrayName?> = new Array(<?=$Row?>);
      for (i=0; i < <?=$Row?>; i++) 
      { 
      <?=$ArrayName?>[i] = new Array(<?=$Col?>);
      for (j=0; j < <?=$Col?>; j++) 
          <?=$ArrayName?>[i][j] = " ";
      }
      
   <? 
      for ($i=0;$i<$Row;$i++) 
      {
          for ($j=0;$j<$Col;$j++) 
          {
	       $str = $PArray[$i][$j];
              ?> 
	       <?=$ArrayName?>[<?=$i?>][<?=$j?>] = "<?=$str?>"
          <?
          }
      }
   ?> 
   document.LayoutBalcoes.registos.value = <?=$Row?>;

   </SCRIPT>

   <?

}

$sql = "SELECT cod_regiao, cod_localidade, descricao ";
$sql = $sql." FROM tr_rentacar_localidades ";
$sql = $sql." ORDER BY descricao ";
  
$result = mysql_query($sql) or die("select fails");      
$filas  = mysql_num_rows($result);   

$i = 0;	
while ($row = mysql_fetch_row($result))
{     
   $tabela_loc[$i][0] = $row[0];
   $tabela_loc[$i][1] = $row[1];
   $tabela_loc[$i][2] = $row[2];
   $i = $i + 1;
}  

ConvertToJSArray2D($tabela_loc, 'tb_loc', $filas);

?>
</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=205 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Localidade</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=191 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;Tipo</SPAN></B></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox4" TYPE=CHECKBOX NAME="new_check" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox2" NAME="new_region" style="width:180px" class="text_objects" onChange="return(F_e('FormsComboBox2', F_CH))">
                                                                <OPTION VALUE="0" SELECTED>Select a destination</OPTION>
                                                                <OPTION VALUE="1">Azores</OPTION>
                                                                <OPTION VALUE="2">Alentejo</OPTION>
                                                                <OPTION VALUE="3">Algarve</OPTION>
                                                                <OPTION VALUE="4">Beiras</OPTION>
                                                                <OPTION VALUE="5">Lisbon</OPTION>
                                                                <OPTION VALUE="6">Madeira</OPTION>
                                                                <OPTION VALUE="7">...Porto Santo</OPTION>
                                                                <OPTION VALUE="8">Oporto and North of Portugal</OPTION>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox10" NAME="new_location" style="width:180px" class="text_objects">
                                                                <OPTION VALUE="0" SELECTED>Select a location</OPTION>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P><INPUT ID="Forms Checkbox5" TYPE=CHECKBOX NAME="new_entrega" VALUE="">&nbsp;<SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;"><SPAN STYLE="color: rgb(0,0,0);">Entrega</SPAN> &nbsp;  </SPAN> &nbsp;  <INPUT ID="Forms Checkbox6" TYPE=CHECKBOX NAME="new_recolha" VALUE=""> <SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px; color: rgb(0,0,0);">Recolha</SPAN></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=13>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD COLSPAN=3 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Endereço</SPAN></B></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD COLSPAN=3 STYLE="padding-left: 3pt;">
                                                        <P><INPUT ID="FormsEditField6" TYPE=TEXT NAME="new_endereco" VALUE="" SIZE=74 MAXLENGTH=74 style="width:550px" class="text_objects"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=15>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Extra para Fora Horas</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Hora de Inicio para Fora Horas</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Hora Final para Fora Horas</SPAN></B></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=27>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox17" NAME="new_cod_extra_fh" class="text_objects" style="width:210px">
<option value=0 selected>Escolha o extra de fora horas</option>
<?
$sql = "select cod_extra, desc_extra from tr_rentacar_extras ";
$sql = $sql." where cod_rentacar = ".$_SESSION['cod_rentacar'];
$sql = $sql." and extra_fora_horas = 1 ";

$result1  = mysql_query($sql);
$num_row1 = mysql_num_rows($result1);  
if($num_row1!=0) 
{   
   while($row = mysql_fetch_row($result1))
   {      
      $codigo     = $row[0];
      $descricao  = $row[1];          
      echo '<option value='.$codigo.'>'.$descricao.'</option>'; 
   }
}
db_disconnect();
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox13" NAME="new_hora_inic_fh" style="width:40px" class="text_objects">
                                                                <OPTION VALUE="00">00</OPTION>
                                                                <OPTION VALUE="01">01</OPTION>
                                                                <OPTION VALUE="02">02</OPTION>
                                                                <OPTION VALUE="03">03</OPTION>
                                                                <OPTION VALUE="04">04</OPTION>
                                                                <OPTION VALUE="05">05</OPTION>
                                                                <OPTION VALUE="06">06</OPTION>
                                                                <OPTION VALUE="07">07</OPTION>
                                                                <OPTION VALUE="08">08</OPTION>
                                                                <OPTION VALUE="09">09</OPTION>
                                                                <OPTION VALUE="10">10</OPTION>
                                                                <OPTION VALUE="11">11</OPTION>
                                                                <OPTION VALUE="12">12</OPTION>
                                                                <OPTION VALUE="13">13</OPTION>
                                                                <OPTION VALUE="14">14</OPTION>
                                                                <OPTION VALUE="15">15</OPTION>
                                                                <OPTION VALUE="16">16</OPTION>
                                                                <OPTION VALUE="17">17</OPTION>
                                                                <OPTION VALUE="18">18</OPTION>
                                                                <OPTION VALUE="19">19</OPTION>
                                                                <OPTION VALUE="20">20</OPTION>
                                                                <OPTION VALUE="21">21</OPTION>
                                                                <OPTION VALUE="22" SELECTED>22</OPTION>
                                                                <OPTION VALUE="23">23</OPTION>
                                                            </SELECT>
                                                            &nbsp;
                                                            <SELECT ID="FormsComboBox14" NAME="new_min_inic_fh" style="width:40px" class="text_objects">
                                                                <OPTION VALUE="00" SELECTED>00</OPTION>
                                                                <OPTION VALUE="15">15</OPTION>
                                                                <OPTION VALUE="30">30</OPTION>
                                                                <OPTION VALUE="45">45</OPTION>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 3pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox15" NAME="new_hora_fim_fh" style="width:40px" class="text_objects">
                                                                <OPTION VALUE="00">00</OPTION>
                                                                <OPTION VALUE="01">01</OPTION>
                                                                <OPTION VALUE="02">02</OPTION>
                                                                <OPTION VALUE="03">03</OPTION>
                                                                <OPTION VALUE="04">04</OPTION>
                                                                <OPTION VALUE="05">05</OPTION>
                                                                <OPTION VALUE="06">06</OPTION>
                                                                <OPTION VALUE="07">07</OPTION>
                                                                <OPTION VALUE="08" SELECTED>08</OPTION>
                                                                <OPTION VALUE="09">09</OPTION>
                                                                <OPTION VALUE="10">10</OPTION>
                                                                <OPTION VALUE="11">11</OPTION>
                                                                <OPTION VALUE="12">12</OPTION>
                                                                <OPTION VALUE="13">13</OPTION>
                                                                <OPTION VALUE="14">14</OPTION>
                                                                <OPTION VALUE="15">15</OPTION>
                                                                <OPTION VALUE="16">16</OPTION>
                                                                <OPTION VALUE="17">17</OPTION>
                                                                <OPTION VALUE="18">18</OPTION>
                                                                <OPTION VALUE="19">19</OPTION>
                                                                <OPTION VALUE="20">20</OPTION>
                                                                <OPTION VALUE="21">21</OPTION>
                                                                <OPTION VALUE="22">22</OPTION>
                                                                <OPTION VALUE="23">23</OPTION>
                                                            </SELECT>
                                                            &nbsp;
                                                            <SELECT ID="FormsComboBox16" NAME="new_min_fim_fh" style="width:40px" class="text_objects">
                                                                <OPTION VALUE="00" SELECTED>00</OPTION>
                                                                <OPTION VALUE="15">15</OPTION>
                                                                <OPTION VALUE="30">30</OPTION>
                                                                <OPTION VALUE="45">45</OPTION>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=15>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD COLSPAN=3 STYLE="background-color: rgb(255,251,236); padding-left: 3pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Descrição do Horario (Esta descrição aparece na janela da descrição da empresa)</SPAN></B></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=27>
                                                    <TD>
                                                        <P>&nbsp;</P>
                                                    </TD>
                                                    <TD COLSPAN=3 STYLE="padding-left: 3pt;">
                                                        <P><INPUT ID="FormsEditField5" TYPE=TEXT NAME="new_desc_horario" VALUE="" SIZE=74 MAXLENGTH=74 style="width:350px" class="text_objects"></P>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=12><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=698>
                                            <TABLE ID="Table38" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=27>
                                                <TR>
                                                    <TD WIDTH=350>
                                                        <P STYLE="text-align: right;"><INPUT TYPE=SUBMIT NAME="btSave" VALUE="Guardar" ID="FormsButton61" class="text_objects"> </P>
                                                    </TD>
                                                    <TD WIDTH=348>
                                                        <P><INPUT TYPE=RESET NAME="btCancel" VALUE="Cancelar" ID="FormsButton62" class="text_objects"></P>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                            </FORM>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD HEIGHT=77 WIDTH=760>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=77 STYLE="background-color: rgb(0,51,102);" NOF="LayoutRegion6">
                    <TR ALIGN=LEFT VALIGN=TOP>
                        <TD>
                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=567 NOF="LayoutRegion6">
                                <TR VALIGN=TOP ALIGN=LEFT>
                                    <TD WIDTH=215 HEIGHT=32><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=215 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    <TD WIDTH=352><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=352 HEIGHT=1 BORDER=0 ALT=""></TD>
                                </TR>
                                <TR VALIGN=TOP ALIGN=LEFT>
                                    <TD></TD>
                                    <TD WIDTH=352 CLASS="TextObject">
                                        <P STYLE="text-align: center;"><B><SPAN STYLE="color: rgb(255,255,255);">Copyright Bravacar 2006</SPAN></B></P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    </LAYER></DIV>
    <SCRIPT language="javascript">
    var C_MENU_BORDER = 0;
    var C_MENU_SPACING = 0;
    var C_MENU_BGCOLOR = "";
    var C_MENU_AUTO_CLOSE = false;
    new NOF_Menu(
    new NOF_Main_Menu(new NOF_Menu_Item('NavigationBar1_1', 'vertical', 'slideBottom', 0, 35, 
 new NOF_Menu_Button('../html/precosgrupos.php','../assets/images/autogen/Precos_Nregular_1.jpg','../assets/images/autogen/Precos_NRregularrollover_1.jpg'),new NOF_Menu_Button('../html/gruposextras.php','../assets/images/autogen/Extras_Nregular_1.jpg','../assets/images/autogen/Extras_NRregularrollover_1.jpg')))
    );
    </SCRIPT>
</BODY>
</HTML>
 