<?
    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>Grupos</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/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('FormsButton61' , '', 'btn', 'Layout',new Array(
	'Clicked',F_functFormsButton61Action0,'','',0),'LayoutGrupos',0,'btSave');
	F_OM('FormsButton32' , '', 'btn', 'Layout',new Array(
	'Clicked',F_functFormsButton32Action0,'','',0),'LayoutGrupos',0,'FormsButton32');
	F_OM('FormsButton3' , '', 'btn', 'Layout',new Array(
	'Clicked',F_functFormsButton3Action0,'','',0),'LayoutGrupos',0,'FormsButton3');
	F_pageLoaded('Layout');
}
function F_functFormsButton61Action0(params) {
valida_grupos()
}

function F_functFormsButton32Action0(params) {
update_new_foto();
}

function F_functFormsButton3Action0(params) {
cancel_new_foto();
}

//-->
</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=(gruposLayout, 761, 483))" STYLE="text-align: center;" onLoad="F_onLoaded();">
    <DIV ID="LayoutLYR"><LAYER ID="LayoutLYR" TOP=0 LEFT=0 VISIBILITY=INHERIT WIDTH=761 HEIGHT=773 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/ihhomicon.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/ihemail.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/ihgobutton03.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/Grupos_NDefault.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0 ALT="Grupos" TITLE="Grupos" NOF=B_H></P>
                        </TD>
                    </TR>
                    <TR HEIGHT=35>
                        <TD VALIGN=MIDDLE STYLE="background-color: rgb(255,255,255); background-image: url('../assets/images/ihnavbg.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_Nregular_1.jpg" onLoad="F_loadRollover(this,'Balcoes_NRregularrollover_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_Hhighlighted_1.jpg" onLoad="F_loadRollover(this,'Grupos_HRhighlightedrollover_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/ihtop3.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=483 WIDTH=760>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=483 STYLE="background-color: rgb(237,237,237);" NOF="LayoutRegion8">
                    <TR ALIGN=LEFT VALIGN=TOP>
                        <TD>
                            <FORM NAME="LayoutGrupos" ENCTYPE="multipart/form-data" ACTION="grupos2.php" METHOD=POST>
                                <INPUT TYPE=HIDDEN NAME="apagar" VALUE="0">
                                <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;">Grupos</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 codigo, cod_categoria, cod_grupo, descricao, descricao_longa, foto_grupo, SIPP, ";
$sql = $sql." descricao_pt, descricao_longa_pt, ";
$sql = $sql." descricao_de, descricao_longa_de, ";
$sql = $sql." descricao_fr, descricao_longa_fr ";
$sql = $sql." from tr_rentacar_grupos ";
$sql = $sql." where cod_rentacar = ".$_SESSION['cod_rentacar'];
$sql = $sql." order by cod_grupo ";

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

if($num_row!=0) 
{
    echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=725 HEIGHT=226>
          <TR HEIGHT=24>
            <TD WIDTH=415 STYLE="text-align: left;">
                <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 14px;">Altere ou apague seus grupos aqui</SPAN></B>
            </TD>
            <TD WIDTH=283>
                <B><SPAN STYLE="font-size: 11px;">Imagem da viatura</SPAN></B>
            </TD>
          </TR>';


   while($row = mysql_fetch_row($result))
   {      
      $codigo             = $row[0];
      $cod_categoria      = $row[1];
      $cod_grupo          = "'".$row[2]."'";
      $desc_curta         = "'".$row[3]."'";
      $descricao_longa    = "'".$row[4]."'";
      $foto_grupo         = $row[5];
      $sipp               = "'".$row[6]."'";
      $desc_curta_pt      = "'".$row[7]."'";
      $descricao_longa_pt = "'".$row[8]."'";
      $desc_curta_de      = "'".$row[9]."'";
      $descricao_longa_de = "'".$row[10]."'";
      $desc_curta_fr      = "'".$row[11]."'";
      $descricao_longa_fr = "'".$row[12]."'";
      
      $funcao             = 'funcao'.$codigo;
      $ID_del_check       = "'ID_del_check".$codigo."'";
      $num_categoria      = 'num_categoria'.$codigo;
      $text_grupo         = 'text_grupo'.$codigo;
      $text_desc          = 'text_desc'.$codigo;
      $text_desc_longa    = 'text_desc_longa'.$codigo;
      $img_foto_grupo     = 'img_foto_grupo'.$codigo;
      $hidden_foto_grupo  = 'hidden_foto_grupo'.$codigo;
      $text_sipp          = 'text_sipp'.$codigo;
      $path_foto          = 'path_foto'.$codigo;
      $del_foto           = 'del_foto'.$codigo;      
      $js_path_foto       = 'document.LayoutGrupos.'.$path_foto.'.value';
      $js_img_foto_grupo  = "'".$img_foto_grupo."'";
      $nome_foto          = "'".$foto_grupo."'";
      $js_hidden_foto     = 'document.LayoutGrupos.'.$hidden_foto_grupo.'.value';
      $js_path            = "'".$path_foto."'";

      $text_desc_pt       = 'text_desc_pt'.$codigo;
      $text_desc_longa_pt = 'text_desc_longa_pt'.$codigo;

      $text_desc_de       = 'text_desc_de'.$codigo;
      $text_desc_longa_de = 'text_desc_longa_de'.$codigo;

      $text_desc_fr       = 'text_desc_fr'.$codigo;
      $text_desc_longa_fr = 'text_desc_longa_fr'.$codigo;

      echo '<input type="hidden" name='.$hidden_foto_grupo.' value='.$nome_foto.'>';

      echo '<TR HEIGHT=260>
            <TD VALIGN=TOP>
                <P>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 ALIGN=LEFT>
                    <TR>
                        <TD>
                            <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH=429 HEIGHT=200>
                                <TR HEIGHT=24>
                                    <TD WIDTH=106 STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>Função</B>
                                    </TD>
                                    <TD WIDTH=78 STYLE="padding-left: 1pt;">
                                        <P>&nbsp;<SELECT NAME='.$funcao.' class="text_objects" style="width:66px" onChange="funcao_grupo()">
                                        <option value=0 selected></option>
                                        <option value=1>Alterar</option>
                                        <option value=-1>Apagar</option></P>
                                    </TD>
                                    <TD WIDTH=61 STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>Categoria</B>
                                    </TD>
                                    <TD WIDTH=174 STYLE="padding-left: 3pt;">
                                        <P>
                                            <SELECT name='.$num_categoria.' class="text_objects" style="width:140px">
                                               <option value=0>Select a type of group</option>';  
                                               $sql      = "select codigo, descricao from tr_rentacar_categoria ";
                                               $result1  = mysql_query($sql);
                                               $num_row1 = mysql_num_rows($result1);                                             
                                               if($num_row1!=0) 
                                               {   
                                                  while($row = mysql_fetch_row($result1))
                                                  {      
                                                      $cod_cat     = $row[0];
                                                      $desc_cat    = $row[1];    
                                                      if ($cod_categoria==$cod_cat)      
                                                          echo '<option value='.$cod_cat.' selected>'.$desc_cat.'</option>';
                                                      else
                                                          echo '<option value='.$cod_cat.'>'.$desc_cat.'</option>';
                                                  }
                                               }                                                
                                            echo '</SELECT>
                                        </P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>Código do grupo</B>
                                    </TD>
                                    <TD>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_grupo.' value='.$cod_grupo.' SIZE=9  MAXLENGTH=6 class="text_objects" disabled></P>
                                    </TD>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>SIPP</B>
                                    </TD>

                                    <TD>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_sipp.' value='.$sipp.' SIZE=9 MAXLENGTH=6 class="text_objects"></P>
                                    </TD>
                                </TR>

                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>EN - Desc</B>
                                    </TD>
                                    <TD COLSPAN=3>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc.' value='.$desc_curta.' SIZE=30 

MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>EN - Desc Longa</B>
                                    </TD>
                                    <TD COLSPAN=3>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_longa.' value='.$descricao_longa.' 

SIZE=38 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                    </TD>
                                </TR>

                                <TR HEIGHT=24 class="text_objects">
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>PT - Desc</B>
                                    </TD>
                                    <TD COLSPAN=3>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_pt.' value='.$desc_curta_pt.' SIZE=30  MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>PT - Desc Longa</B>
                                    </TD>
                                    <TD COLSPAN=3 >
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_longa_pt.' value='.$descricao_longa_pt.' SIZE=38 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                    </TD>
                                </TR>

                                <TR HEIGHT=24 class="text_objects">
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>DE - Desc</B>
                                    </TD>
                                    <TD COLSPAN=3>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_de.' value='.$desc_curta_de.' SIZE=30  MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>DE - Desc Longa</B>
                                    </TD>
                                    <TD COLSPAN=3 >
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_longa_de.' value='.$descricao_longa_de.' SIZE=38 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                    </TD>
                                </TR>

                                <TR HEIGHT=24 class="text_objects">
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>FR - Desc</B>
                                    </TD>
                                    <TD COLSPAN=3>
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_fr.' value='.$desc_curta_fr.' SIZE=30  MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=24>
                                    <TD STYLE="background-color: rgb(255,251,236);" class="text_objects">
                                        &nbsp;<B>FR - Desc Longa</B>
                                    </TD>
                                    <TD COLSPAN=3 >
                                        <P>&nbsp;<INPUT TYPE=TEXT name='.$text_desc_longa_fr.' value='.$descricao_longa_fr.' SIZE=38 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                    </TD>
                                </TR>

                            </TABLE>
                        </TD>
                    </TR>
                </TABLE>
            </P>
        </TD>
        <TD VALIGN=TOP>
            <P>
                <TABLE WIDTH=280 BORDER=0 CELLSPACING=0 CELLPADDING=0>
                    <TR>
                        <TD>
                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=190>
                                <TR HEIGHT=106>
                                    <TD VALIGN=TOP WIDTH=171 ALIGN=LEFT>';
                                       if (trim($foto_grupo)!='')
                                       {
                                           echo '<IMG ID='.$img_foto_grupo.' WIDTH=144 HEIGHT=90 SRC="http://www.bravacar.com.pt/photo_rentacar/'.$pasta.'/'.$foto_grupo.'" BORDER=2 STYLE="border-left-color:  rgb(255,159,85); border-left-style: solid; border-top-color:  rgb(255,159,85); border-top-style: solid; border-right-color:  rgb(255,159,85); border-right-style: solid; border-bottom-color:  rgb(255,159,85); border-bottom-style: solid;">';
                                       }
                                       else
                                       {
                                           echo '<IMG ID='.$img_foto_grupo.' WIDTH=144 HEIGHT=90 SRC="http://www.bravacar.com.pt/photo_rentacar/no_photo.jpg" BORDER=2 STYLE="border-left-color:  rgb(255,159,85); border-left-style: solid; border-top-color:  rgb(255,159,85); border-top-style: solid; border-right-color:  rgb(255,159,85); border-right-style: solid; border-bottom-color:  rgb(255,159,85); border-bottom-style: solid;">';
                                       }
                              echo '</TD>
                                    <TD VALIGN=MIDDLE ALIGN=LEFT WIDTH=109>
                                        <P><INPUT TYPE=CHECKBOX name='.$del_foto.'  VALUE=""><B>&nbsp;<SPAN  STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;"> Apagar foto</SPAN></B></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=25>
                                    <TD COLSPAN=2 VALIGN=TOP>
                                        <P><B>&nbsp; <SPAN STYLE="font-family:  Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Melhor tamanho: 144 x 90 px</SPAN></B></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=15>
                                    <TD COLSPAN=2>
                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif;  font-size: 11px;">&nbsp; Ficheiro a carregar: </SPAN></B></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=17>
                                    <TD COLSPAN=2 STYLE="padding-left: 4pt;">
                                        <P><input type=file name='.$path_foto.' ID='.$path_foto.' class="text_objects" style="width:270px"></P>
                                    </TD>
                                </TR>
                                <TR HEIGHT=27>
                                    <TD COLSPAN=2>
                                        <P STYLE="text-align: center;">                                           
                                           <INPUT TYPE=BUTTON NAME="Button_view" VALUE="Ver" class="text_objects" onclick="javascript:update_foto('.$js_path_foto.','.$js_img_foto_grupo.')">&nbsp;
                                           <INPUT TYPE=BUTTON NAME="Button_cancel" VALUE="Cancelar" class="text_objects" onclick="javascript:cancel_foto('.$js_path.','.$js_img_foto_grupo.','.$js_hidden_foto.')">
                                        </P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                </TABLE>
            </P>
        </TD>
    </TR>
    <TR HEIGHT=24>
       <TD>&nbsp;</TD>
       <TD>&nbsp;</TD>
    </TR>';
   }
   echo '</TABLE><BR>';
}

echo '<input type="hidden" name="pasta" value='.$pasta.'>';

?>
&nbsp;</P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=745 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD>
                                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=231 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=205><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=205 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                </TR>
                                                <TR VALIGN=TOP ALIGN=LEFT>
                                                    <TD></TD>
                                                    <TD WIDTH=205 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 grupo 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=429>
                                                        <TABLE ID="Table39" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=260>
                                                            <TR HEIGHT=24>
                                                                <TD VALIGN=MIDDLE WIDTH=106 STYLE="background-color: rgb(255,251,236);">
                                                                    <P STYLE="text-align: left;">&nbsp; <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Novo</SPAN></B></P>
                                                                </TD>
                                                                <TD WIDTH=78 STYLE="padding-left: 1pt;">
                                                                    <P><INPUT ID="ID_new_check" TYPE=CHECKBOX NAME="new_check" VALUE="" class="text_objects">&nbsp;</P>
                                                                </TD>
                                                                <TD WIDTH=61 STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Categoria</SPAN></B> </P>
                                                                </TD>
                                                                <TD WIDTH=174 STYLE="padding-left: 3pt;">
                                                                    <P>
                                                                        <SELECT ID="FormsComboBox8" NAME="new_group_type" class="text_objects" style="width:140px">
<option value=0 selected>Select a type of group</option>
<?
$sql      = "select codigo, descricao from tr_rentacar_categoria ";
$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>
                                                            </TR>
                                                            <TR HEIGHT=23>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P STYLE="text-align: left;">&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Código do grupo</SPAN></B></P>
                                                                </TD>
                                                                <TD>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField52" TYPE=TEXT NAME="new_group_code" VALUE="" SIZE=9 MAXLENGTH=10 class="text_objects">  </P>
                                                                </TD>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">SIPP</SPAN></B></P>
                                                                </TD>
                                                                <TD>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField66" TYPE=TEXT NAME="new_sipp_code" VALUE="" SIZE=9 MAXLENGTH=6 class="text_objects"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">EN - Desc</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField50" TYPE=TEXT NAME="new_desc_group" VALUE="" SIZE=30 MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">EN - Desc Longa</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField1" TYPE=TEXT NAME="new_desc_long_group" VALUE="" SIZE=37 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">PT - Desc</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField60" TYPE=TEXT NAME="new_desc_group_pt" VALUE="" SIZE=30 MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=23>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">PT - Desc Longa</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField63" TYPE=TEXT NAME="new_desc_long_group_pt" VALUE="" SIZE=37 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">DE - Desc</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField61" TYPE=TEXT NAME="new_desc_group_de" VALUE="" SIZE=30 MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">DE - Desc Longa</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField64" TYPE=TEXT NAME="new_desc_long_group_de" VALUE="" SIZE=37 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">FR - Desc</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField62" TYPE=TEXT NAME="new_desc_group_fr" VALUE="" SIZE=30 MAXLENGTH=60 class="text_objects" style="width:210px"></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=24>
                                                                <TD STYLE="background-color: rgb(255,251,236);">
                                                                    <P>&nbsp;<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">FR - Desc Longa</SPAN></B></P>
                                                                </TD>
                                                                <TD COLSPAN=3>
                                                                    <P>&nbsp;<INPUT ID="FormsEditField65" TYPE=TEXT NAME="new_desc_long_group_fr" VALUE="" SIZE=37 MAXLENGTH=120 class="text_objects" style="width:300px"></P>
                                                                </TD>
                                                            </TR>
                                                        </TABLE>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                        <TD>
                                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion8">
                                                <TR VALIGN=TOP ALIGN=LEFT>
                                                    <TD WIDTH=10 HEIGHT=37><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=10 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                    <TD></TD>
                                                </TR>
                                                <TR VALIGN=TOP ALIGN=LEFT>
                                                    <TD></TD>
                                                    <TD WIDTH=280>
                                                        <TABLE ID="Table40" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=203>
                                                            <TR HEIGHT=22>
                                                                <TD COLSPAN=2>
                                                                    <P><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp; </SPAN><B><SPAN STYLE="font-size: 11px;"><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif;">Imagem da viatura</SPAN>:&nbsp; </SPAN> &nbsp; &nbsp; &nbsp;  </B></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=96>
                                                                <TD VALIGN=TOP WIDTH=171>
                                                                    <P STYLE="text-align: left;">&nbsp;<?
    echo '<IMG ID="new_photo" HEIGHT=90 WIDTH=144 SRC="http://www.bravacar.com.pt/photo_rentacar/no_photo.jpg" BORDER=2 STYLE="border-left-color:  rgb(255,159,85); border-left-style: solid; border-top-color:  rgb(255,159,85); border-top-style: solid; border-right-color:  rgb(255,159,85); border-right-style: solid; border-bottom-color:  rgb(255,159,85); border-bottom-style: solid;">';
?></P>
                                                                </TD>
                                                                <TD WIDTH=109>
                                                                    <P>&nbsp;</P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=26>
                                                                <TD COLSPAN=2 VALIGN=TOP STYLE="background-color: rgb(237,237,237);">
                                                                    <P><B>&nbsp; <SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Melhor tamanho: 144 x 90 px</SPAN></B></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=15>
                                                                <TD COLSPAN=2>
                                                                    <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp; Ficheiro a carregar: </SPAN></B></P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=17>
                                                                <TD COLSPAN=2 STYLE="padding-left: 4pt;">
                                                                    <P><input type=file name=path_new_photo class="text_objects" style="width:270px">&nbsp;</P>
                                                                </TD>
                                                            </TR>
                                                            <TR HEIGHT=27>
                                                                <TD COLSPAN=2>
                                                                    <P STYLE="text-align: center;"><INPUT TYPE=BUTTON NAME="FormsButton32" VALUE="Ver" ID="FormsButton32" class="text_objects"  onClick="return(F_e('FormsButton32', F_CL))">&nbsp; <INPUT TYPE=BUTTON NAME="FormsButton3" VALUE="Cancelar" ID="FormsButton3" class="text_objects" onClick="return(F_e('FormsButton3', F_CL))"></P>
                                                                </TD>
                                                            </TR>
                                                        </TABLE>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion8">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=41 HEIGHT=36><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=41 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=BUTTON NAME="btSave" VALUE="Guardar" ID="FormsButton61" class="text_objects" onClick="return(F_e('FormsButton61', F_CL))"> </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>
 