From: <Saved by Microsoft Internet Explorer 5>
Subject: Produtos
Date: Fri, 18 Oct 2002 16:10:15 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_000_009E_01C276C0.D887EBE0";
	type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

This is a multi-part message in MIME format.

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/Interface/standard.asp?witype=LIST&winame=produto

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML lang=3Dpt><HEAD><TITLE>Produtos</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1"><LINK=20
href=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/WAMcss.win.css.txt"=20
type=3Dtext/css rel=3DSTYLESHEET><LINK=20
href=3D"http://interno.cvrvv.pt/eVerde/css/WAMcss.win.css.txt" =
type=3Dtext/css=20
rel=3DSTYLESHEET>
<SCRIPT language=3DJavaScript=20
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/window_prototype.js">=0A=
</SCRIPT>

<SCRIPT language=3DJavaScript>=0A=
<!--=0A=
var WAMRootURL =3D 'http://interno.cvrvv.pt/eVerde/';=0A=
var WAMMessages =3D new Array();=0A=
//-->=0A=
</SCRIPT>

<SCRIPT language=3DJavaScript>=0A=
<!--=0A=
function window_onLoad(){=0A=
	window.executeOnLoad();=0A=
}=0A=
=0A=
//-->=0A=
</SCRIPT>

<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR></HEAD>
<BODY leftMargin=3D0 topMargin=3D0=20
onload=3D'javascript:if (typeof(window_onLoad) =3D=3D "function") =
window_onLoad();'=20
marginHeight=3D"0" marginWidth=3D"0"><!--- WAM --->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
  <FORM name=3DfrmList onsubmit=3D"return false;"=20
  =
action=3D/eVerde/WAMLibrary/Interface/standard.asp?witype=3DLIST&amp;wina=
me=3Dproduto=20
  method=3Dpost><INPUT type=3Dhidden name=3D__Action> <INPUT =
type=3Dhidden=20
  name=3D__ListOpenMode> <INPUT type=3Dhidden name=3D__Navigation> =
<INPUT type=3Dhidden=20
  value=3D1 name=3DtxtPagina> <INPUT type=3Dhidden name=3Dfkn> <INPUT =
type=3Dhidden=20
  name=3DtxtSchemaL> <INPUT type=3Dhidden name=3DtxtTableL> <INPUT =
type=3Dhidden=20
  name=3DtxtColumnL> <INPUT type=3Dhidden name=3DtxtRequiredJoinL> =
<INPUT type=3Dhidden=20
  name=3DtxtSchemaR> <INPUT type=3Dhidden name=3DtxtTableR> <INPUT =
type=3Dhidden=20
  name=3DtxtColumnR> <INPUT type=3Dhidden name=3DtxtRequiredJoinR> =
<INPUT type=3Dhidden=20
  name=3DtxtSchema> <INPUT type=3Dhidden name=3DtxtTable> <INPUT =
type=3Dhidden=20
  name=3DtxtColumn> <INPUT type=3Dhidden name=3DtxtRequiredJoin> <INPUT =
type=3Dhidden=20
  name=3DtxtSort> <INPUT type=3Dhidden name=3DtxtColumnLabel>=20
  <TBODY>
  <TR>
    <TD class=3DcssWAMwinTitle>&nbsp;</TD>
    <TD class=3DcssWAMwinTitle><SPAN =
class=3DcssWAMwinTitleTop><NOBR>e-Verde=20
      Gestor v1.2<BR></SPAN><SPAN class=3DcssWAMwinTitleBottom=20
      title=3DProdutos><NOBR>Produtos</SPAN></NOBR></TD></TR>
  <TR>
    <TD colSpan=3D2 height=3D10></TD></TR>
  <TR>
    <TD><IMG height=3D1=20
      src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/Images/space.gif" =

    width=3D10></TD>
    <TD width=3D"100%">
      <TABLE id=3DWAMCanvas cellSpacing=3D0 cellPadding=3D0 border=3D0>
        <TBODY>
        <TR>
          <TD><!-- ############# LIST ############# -->
            <TABLE cellSpacing=3D0 cellPadding=3D1 border=3D0>
              <TBODY>
              <TR>
                <TD class=3DcssWAMlistDark>&nbsp; <SELECT=20
                  class=3DcssWAMstandardEdit id=3DcmbCriterion=20
                  onchange=3D"javascript: =
objList.changeCriterion(this);"=20
                  name=3DcmbCriterion width=3D"120"> <OPTION =
value=3D""><OPTION=20
                    value=3DActivos>Activos</OPTION> <OPTION=20
                    value=3DDestaque>Destaque</OPTION> <OPTION =
value=3D"Na VVSHOP"=20
                    selected>Na VVSHOP</OPTION> <OPTION=20
                    value=3DTerminados>Terminados</OPTION> <OPTION=20
                    value=3D_SEPARATOR_>------------------</OPTION> =
<OPTION=20
                    value=3D_EDITCRITERION_>Editar crit=E9rio</OPTION> =
<OPTION=20
                    value=3D_NEWCRITERION_>Novo =
crit=E9rio</OPTION></SELECT>&nbsp; <I=20
                  =
class=3DcssWAMcritDescription>[dbo].[produto].[naLoja]=3D1</I>=20
              </TD></TR>
              <TR>
                <TD vAlign=3Dtop>
                  <TABLE id=3DWAMListHTMLTable cellSpacing=3D1 =
cellPadding=3D2=20
                  width=3D"100%" border=3D0>
                    <TBODY>
                    <TR>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        title=3D"Nome do =
produto&#10;(produto.nome)"><B>Nome</B></SPAN></NOBR><BR><NOBR><A=20
                        class=3DcssWAMdecor title=3D"Remover =
Ordena=E7=E3o"=20
                        =
onclick=3D'javascript:objList.columns[0].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc-p.gif" =

                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[0].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[0].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a direita"=20
                        onclick=3D'javascript:objList.moveColumn(0, =
"right");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right=
.gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        title=3D"Descri=E7=E3o do Tipo de =
Produto&#10;(tipoProduto.descricaoPT)"><B>Desc.=20
                        Tipo Produto</B></SPAN></NOBR><BR><NOBR><A=20
                        class=3DcssWAMdecor title=3D"Ordenar =
ascendentemente"=20
                        =
onclick=3D'javascript:objList.columns[1].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[1].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[1].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a esquerda"=20
                        onclick=3D'javascript:objList.moveColumn(1, =
"left");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.=
gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a direita"=20
                        onclick=3D'javascript:objList.moveColumn(1, =
"right");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right=
.gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        title=3D"Nome da =
Entidade&#10;(entidade.nomeAbrev)"><B>Nome=20
                        Abrev. Entidade</B></SPAN></NOBR><BR><NOBR><A=20
                        class=3DcssWAMdecor title=3D"Ordenar =
ascendentemente"=20
                        =
onclick=3D'javascript:objList.columns[2].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[2].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[2].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a esquerda"=20
                        onclick=3D'javascript:objList.moveColumn(2, =
"left");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.=
gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a direita"=20
                        onclick=3D'javascript:objList.moveColumn(2, =
"right");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right=
.gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        =
title=3D"Pre=E7o&#10;(produto.preco)"><B>Pre=E7o</B></SPAN></NOBR><BR><NO=
BR><A=20
                        class=3DcssWAMdecor title=3D"Ordenar =
ascendentemente"=20
                        =
onclick=3D'javascript:objList.columns[3].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[3].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[3].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a esquerda"=20
                        onclick=3D'javascript:objList.moveColumn(3, =
"left");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.=
gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a direita"=20
                        onclick=3D'javascript:objList.moveColumn(3, =
"right");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right=
.gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        title=3D"Stock do =
produto&#10;(produto.stock)"><B>Stock</B></SPAN></NOBR><BR><NOBR><A=20
                        class=3DcssWAMdecor title=3D"Ordenar =
ascendentemente"=20
                        =
onclick=3D'javascript:objList.columns[4].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[4].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[4].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a esquerda"=20
                        onclick=3D'javascript:objList.moveColumn(4, =
"left");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.=
gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a direita"=20
                        onclick=3D'javascript:objList.moveColumn(4, =
"right");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right=
.gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark><NOBR><SPAN=20
                        class=3DcssWAMlistDark=20
                        title=3D"Produto est=E1 em =
destaque&#10;(produto.destaque)"><B>Destaque</B></SPAN></NOBR><BR><NOBR><=
A=20
                        class=3DcssWAMdecor title=3D"Ordenar =
ascendentemente"=20
                        =
onclick=3D'javascript:objList.columns[5].sort("ASC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Ordenar descendentemente"=20
                        =
onclick=3D'javascript:objList.columns[5].sort("DESC");'=20
                        href=3D"javascript:void(null);"><IMG height=3D6=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Remover coluna da lista"=20
                        =
onclick=3Djavascript:objList.columns[5].remove();=20
                        href=3D"javascript:void(null);"><IMG height=3D7=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif=
"=20
                        width=3D7 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0><A class=3DcssWAMdecor=20
                        title=3D"Mover coluna para a esquerda"=20
                        onclick=3D'javascript:objList.moveColumn(5, =
"left");'=20
                        href=3D"javascript:void(null);"><IMG height=3D8=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.=
gif"=20
                        width=3D6 border=3D0></A><IMG=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif"=20
                        width=3D4 border=3D0></NOBR></TD>
                      <TD class=3DcssWAMlistDark vAlign=3Dcenter =
align=3Dright=20
                      height=3D30><A class=3DcssWAMdecor=20
                        title=3D"Adicionar colunas =E0 lista"=20
                        onclick=3Djavascript:objList.checkMenuMode();=20
                        =
onmouseout=3D'javascript:menuPopDown("elMenu1");'=20
                        href=3D"javascript:%20void(null);"><IMG =
height=3D15=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/add-column.gif"=20
                        width=3D15 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Adega de=20
                        Mon=E7=E3o</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Tinto</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Adega de=20
                        Mon=E7=E3o</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>1.69</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>600</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[0].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[0].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Adoraz</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Casa=20
                      Pinheiro</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>3.24</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[1].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[1].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Aguardente=20
                        Velha</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Aguardente de=20
                        Vinho</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>C.V.R.V.V.</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>4.99</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>0</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[2].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[2].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Alcaide</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Aguardente=20
                        Bagaceira</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>8.00</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>15</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[3].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[3].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Alma Nova -=20
                        Azal</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Quinta das=20
                        Carvalhas</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.70</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>500</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[4].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[4].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Alvarinha</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Aguardente de=20
                        Vinho</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Adega de=20
                        Mon=E7=E3o</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>29.99</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[5].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[5].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Arca Nova</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Quinta das=20
                        Arcas</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.00</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[6].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[6].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Arca Nova</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Tinto</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Quinta das=20
                        Arcas</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.33</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[7].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[7].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Borges -=20
                        Alvarinho</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Borges</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>7.98</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[8].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[8].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Borges -=20
                        Loureiro</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Borges</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>3.49</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[9].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[9].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.00</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[10].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[10].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Campelo -=20
                        Adamado</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.20</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[11].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[11].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Campelo -=20
                        Cruzeiro minhoto - 1 Litro</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Branco</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>1.61</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[12].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[12].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR class=3DcssWAMlistLight>
                      <TD class=3DcssWAMlistCell noWrap=20
                        align=3Dleft>Campelo-Cruzeiro Minhoto - Tinto 1 =
Litro</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Tinto</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>1.71</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>60</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[13].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[13].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <TR>
                      <TD class=3DcssWAMlistCell noWrap=20
                      align=3Dleft>Campelo-Tinto</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinho Verde=20
                        Tinto</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dleft>Vinhos=20
                      Campelo</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>2.00</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dright>48</TD>
                      <TD class=3DcssWAMlistCell noWrap =
align=3Dmiddle><IMG=20
                        height=3D11=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif=
"=20
                        width=3D11 border=3D0></TD>
                      <TD class=3DcssWAMlistCell noWrap align=3Dright><A =

                        class=3DcssWAMdecor title=3D"Editar registo"=20
                        onclick=3Djavascript:objList.rows[14].exists();=20
                        href=3D"javascript:void(null);"><IMG height=3D10 =

                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif"=20
                        width=3D10 border=3D0></A> <A =
class=3DcssWAMdecor=20
                        title=3D"Apagar registo"=20
                        onclick=3Djavascript:objList.rows[14].del();=20
                        href=3D"javascript:void(null);"><IMG height=3D9=20
                        =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif"=20
                        width=3D10 border=3D0></A></TD></TR>
                    <SCRIPT language=3DJavaScript>=0A=
<!--=0A=
var objList;=0A=
function Create_objWAMList(){=0A=
	objList =3D new List('dbo.produto', 'dbo','produto', 'LIST', " FROM =
[dbo].[produto]	LEFT OUTER JOIN [dbo].[tipoProduto] ON =
[dbo].[produto].[tipoProduto]=3D[dbo].[tipoProduto].[tipoProdutoID]	LEFT =
OUTER JOIN [dbo].[entidade] ON =
[dbo].[produto].[entidade]=3D[dbo].[entidade].[entidadeID] WHERE =
[dbo].[produto].[naLoja] =3D1 ", false);=0A=
}=0A=
window.addToOnLoad(Create_objWAMList);=0A=
function navigation(strNavTo){=0A=
	window.event.returnValue =3D false;=0A=
	objList.form.__Navigation.value =3D strNavTo;=0A=
	objList.submitForm();=0A=
}=0A=
var WAM_MENU_STARTED =3D false;=0A=
function initMenuAddCols(){=0A=
	MenuInit('WAMList', =
'http://interno.cvrvv.pt/eVerde/WAMLibrary/images/menu-more.gif', =
'declarativa', 'dbo', 'produto', 'dbo', 'produto', '', =
'http://interno.cvrvv.pt/eVerde/WAMLibrary/WAMMenu.asp', objList.form);=0A=
	arMenu1 =3D new Array(=0A=
	0,0,0,'','','','','','',=0A=
	'C=F3digo', '', 'codigo', '', '', 0, 0, '',=0A=
	'VVShop', '', 'naLoja', '', '', 0, 0, '',=0A=
	'Marcas', '', 'noCatalogo', '', '', 0, 0, '',=0A=
	'Tipo Produto', '', 'tipoProduto', '', '', 0, 0, '',=0A=
	'Designativo', '', 'designativo', '', '', 0, 0, '',=0A=
	'Descric=E3o PT', '', 'descricaoPT', '', '', 0, 0, '',=0A=
	'Descri=E7=E3o EN', '', 'descricaoEN', '', '', 0, 0, '',=0A=
	'Descri=E7=E3o FR', '', 'descricaoFR', '', '', 0, 0, '',=0A=
	'Adega', '', 'entidade', '', '', 0, 0, '',=0A=
	'Sub-regi=E3o', '', 'subregiao', '', '', 0, 0, '',=0A=
	'Ano', '', 'ano', '', '', 0, 0, '',=0A=
	'Temp =BAC', '', 'temperatura', '', '', 0, 0, '',=0A=
	'Castas', '', 'castas', '', '', 0, 0, '',=0A=
	'Sabor PT', '', 'saborPT', '', '', 0, 0, '',=0A=
	'Sabor EN', '', 'saborEN', '', '', 0, 0, '',=0A=
	'Sabor FR', '', 'saborFR', '', '', 0, 0, '',=0A=
	'Cor PT', '', 'corPT', '', '', 0, 0, '',=0A=
	'Cor EN', '', 'corEN', '', '', 0, 0, '',=0A=
	'Cor FR', '', 'corFR', '', '', 0, 0, '',=0A=
	'Aroma PT', '', 'aromaPT', '', '', 0, 0, '',=0A=
	'Aroma EN', '', 'aromaEN', '', '', 0, 0, '',=0A=
	'Aroma FR', '', 'aromaFR', '', '', 0, 0, '',=0A=
	'Tipo Cond. PT', '', 'tipoCondPT', '', '', 0, 0, '',=0A=
	'Tipo Cond. EN', '', 'tipoCondEN', '', '', 0, 0, '',=0A=
	'Tipo Cond. FR', '', 'tipoCondFR', '', '', 0, 0, '',=0A=
	'Elabora=E7=E3o PT', '', 'elaboraPT', '', '', 0, 0, '',=0A=
	'Elabora=E7=E3o EN', '', 'elaboraEN', '', '', 0, 0, '',=0A=
	'Elabora=E7=E3o FR', '', 'elaboraFR', '', '', 0, 0, '',=0A=
	'IVA', '', 'taxaIVA', '', '', 0, 0, '',=0A=
	'Imagem', '', 'imagem1', '', '', 0, 0, '',=0A=
	'Estado', '', 'estado', '', '', 0, 0, '',=0A=
	'Data Cria', '', 'dataCria', '', '', 0, 0, '',=0A=
	'Data Act', '', 'dataAct', '', '', 0, 0, '',=0A=
	'Entidade', 'dbo', 'entidade', 'dbo.FK_produto_entidade', 'MASTER', 1, =
0, '',=0A=
	'Sub-regi=E3o', 'dbo', 'subregiao', 'dbo.FK_produto_subregiao', =
'MASTER', 1, 0, '',=0A=
	'Tipo de Produto', 'dbo', 'tipoProduto', 'dbo.FK_produto_tipoProduto', =
'MASTER', 1, 0, '');=0A=
WAM_MENU_STARTED =3D true;=0A=
}=0A=
function initList(){=0A=
	objList.addColumn(new ListColumn("dbo", "produto", "nome", "", "ASC"));=0A=
	objList.addColumn(new ListColumn("dbo", "tipoProduto", "descricaoPT", =
"", "null"));=0A=
	objList.addColumn(new ListColumn("dbo", "entidade", "nomeAbrev", "", =
"null"));=0A=
	objList.addColumn(new ListColumn("dbo", "produto", "preco", "", =
"null"));=0A=
	objList.addColumn(new ListColumn("dbo", "produto", "stock", "", =
"null"));=0A=
	objList.addColumn(new ListColumn("dbo", "produto", "destaque", "", =
"null"));=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "8", "8"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "21", "21"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "0", "0"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "73", "73"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "277", "277"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "9", "9"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "46", "46"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "47", "47"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "16", "16"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "17", "17"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "42", "42"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "44", "44"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "40", "40"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "41", "41"));=0A=
	objList.addRow(objListRow);=0A=
	var objListRow =3D new ListRow();=0A=
	objListRow.addPKCol(new ListRow_Column("codigo", "43", "43"));=0A=
	objList.addRow(objListRow);=0A=
}=0A=
window.addToOnLoad(initList);=0A=
=0A=
function __ListClientMessages(){=0A=
	WAMMessages['MESSAGE_LIST_delete'] =3D "Tem a certeza que pretende =
eliminar este registo? (@K)\n\nClick em 'Ok' para apagar este registo =
para sempre. N=E3o ser=E1 poss=EDvel voltar atr=E1s.";=0A=
}=0A=
window.addToOnLoad(__ListClientMessages);=0A=
=0A=
//-->=0A=
</SCRIPT>
                    </TBODY></TABLE></TD></TR>
              <TR>
                <TD class=3DcssWAMlistDark>
                  <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" =
border=3D0>
                    <TBODY>
                    <TR>
                      <TD class=3DcssWAMlistDark noWrap=20
                        height=3D1><B>&nbsp;Registos 1 a 15</B></TD>
                      <TD>&nbsp;&nbsp;</TD>
                      <TD class=3DcssWAMlistDark width=3D"100%">
                        <TABLE cellSpacing=3D0 cellPadding=3D0 =
width=3D"100%"=20
border=3D0>
                          <TBODY>
                          <TR>
                            <TD align=3Dright width=3D"99%">&nbsp;</TD>
                            <TD align=3Dleft width=3D1><IMG height=3D16=20
                              =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-firstpage-d.g=
if"=20
                              width=3D16 border=3D0></TD>
                            <TD><IMG height=3D16=20
                              =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-previouspage-=
d.gif"=20
                              width=3D16 border=3D0></TD>
                            <TD class=3DcssWAMlistDark align=3Dright><A=20
                              class=3DcssWAMdecor title=3D"P=E1gina =
Seguinte"=20
                              =
onclick=3D'javascript:navigation("next_page");'=20
                              href=3D"javascript:void(null);"><IMG =
height=3D16=20
                              =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-nextpage.gif"=
=20
                              width=3D16 align=3Dtop =
border=3D0></A></TD>
                            <TD class=3DcssWAMlistDark align=3Dright><A=20
                              class=3DcssWAMdecor title=3D"=DAltima =
P=E1gina"=20
                              =
onclick=3D'javascript:navigation("last_page");'=20
                              href=3D"javascript:void(null);"><IMG =
height=3D16=20
                              =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-lastpage.gif"=
=20
                              width=3D16 align=3Dtop=20
                        =
border=3D0></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD><=
/TR></TBODY></TABLE><BR><INPUT class=3DcssWAMstandardButton =
id=3DbtnCreateRow title=3D"Novo registo" onclick=3D"javascript: =
objList.newRow();" type=3Dbutton value=3DCriar =
name=3DbtnCreateRow>&nbsp;&nbsp;&nbsp;&nbsp;<A=20
            class=3DcssWAMdecor title=3DExportar=20
            href=3D"javascript:objList.exportList();"><IMG height=3D20=20
            =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/images/export.gif"=20
            width=3D50 border=3D0></A><BR><BR>
            <DIV id=3DMENUINSERT name=3D"MENUINSERT"></DIV></FORM>
            <SCRIPT language=3DJavaScript=20
            =
src=3D"http://interno.cvrvv.pt/eVerde/WAMLibrary/ClientJavaScript.js.asp?=
wfld=3D1&amp;wl=3D1">=0A=
</SCRIPT>

            <SCRIPT language=3DJavaScript>=0A=
<!--=0A=
function WAMCanvasResize(){=0A=
	if (isUndefined(window.WAMCanvas)) return false;=0A=
	var iAH, iAW, iCH, iCW, iWX, iWY, iST, SL;=0A=
	iST =3D window.screenTop;=0A=
	iSL =3D window.screenLeft;=0A=
	iAH =3D screen.availHeight;=0A=
	iAW =3D screen.availWidth;=0A=
	iCH =3D window.WAMCanvas.clientHeight;=0A=
	iCW =3D window.WAMCanvas.clientWidth;=0A=
	iWX =3D iCW+50 > iAW-iSL ? iAW-iSL-20 : iCW+50;=0A=
	iWY =3D iCH+150 > iAH-iST ? iAH-iST+20 : iCH+150;=0A=
	window.resizeTo(iWX, iWY);=0A=
}=0A=
window.addToOnLoad(WAMCanvasResize);=0A=
//-->=0A=
</SCRIPT>
          </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<DIV id=3D_ExecuteOnServer style=3D"VISIBILITY: hidden"=20
name=3D"_ExecuteOnServer"></DIV>
<STYLE type=3Dtext/css media=3Dprint>SPAN.cssWAMVERSION {
	VISIBILITY: hidden
}
</STYLE>
<BR><BR><SPAN class=3DcssWAMVERSION=20
style=3D"FONT: 9px tahoma,verdana,arial">&nbsp;Web Application Maker =
Version=20
v8.01<BR>&nbsp;WAMLibrary =A9 Declarativa 2000-2002<BR><BR>&nbsp;Hello,=20
declarativa&nbsp;&nbsp;|&nbsp;&nbsp;18-10-2002 16:20:58:270</SPAN> <!--=0A=
--SQLStatement=0A=
SELECT [dbo].[produto].[nome] AS 'nome__COL0', =
[dbo].[tipoProduto].[descricaoPT] AS 'descricaoPT__COL1', =
[dbo].[entidade].[nomeAbrev] AS 'nomeAbrev__COL2', =
[dbo].[produto].[preco] AS 'preco__COL3', [dbo].[produto].[stock] AS =
'stock__COL4', [dbo].[produto].[destaque] AS 'destaque__COL5', =
[dbo].[produto].[codigo] FROM [dbo].[produto]	LEFT OUTER JOIN =
[dbo].[tipoProduto] ON =
[dbo].[produto].[tipoProduto]=3D[dbo].[tipoProduto].[tipoProdutoID]	LEFT =
OUTER JOIN [dbo].[entidade] ON =
[dbo].[produto].[entidade]=3D[dbo].[entidade].[entidadeID] WHERE =
[dbo].[produto].[naLoja] =3D1  ORDER BY [dbo].[produto].[nome] ASC, =
[dbo].[produto].[codigo]=0A=
--></BODY></HTML>

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/Images/space.gif

R0lGODlhCAAIAID/AMDAwAAAACH5BAEAAAAALAAAAAAIAAgAAAIHhI+py+1dAAA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc-p.gif

R0lGODlhCgAGAKIAAP///8DAwMbOzmNjYzkxMTExMSkpKQAAACH5BAEAAAEALAAAAAAKAAYAQAMV
GBpWG2XIKR2k5N1hVaQcVIzEWJQJADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-desc.gif

R0lGODlhCgAGAKL/AP///8DAwMbOzmNjYzkxMTExMSkpKQAAACH5BAEAAAEALAAAAAAKAAYAQAMY
WFq0HbCAUWAEQIhBg8za1nkYR1iWUVkJADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/remove-column.gif

R0lGODlhBwAHAKL/AAAAALCwsLa2tsHBwcvLy8DAwAAAAAAAACH5BAEAAAUALAAAAAAHAAcAQAMV
WADKEASGJQYhwmkVgSBOMGTK6IEJADsWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAABwAHAAAIJgD/AQAg
kCCAZbAA2Fo20FawZctsGYQVTKJAWAgRDqyokGHBjwEBADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/space.gif

R0lGODlhCAAIAID/AMDAwAAAACH5BAEAAAAALAAAAAAIAAgAAAIHhI+py+1dAAA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-right.gif

R0lGODlhBgAIAJH/AAAAALW1tcDAwAAAACH5BAEAAAIALAAAAAAGAAgAQAIPlGAXG+CLjEsnAtZe
S1EUADsQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAABgAIAAAIHgD//QMg
sCAAggMB1KpFUOFChg4XHnSIMGHBgQUDAgA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/order-asc.gif

R0lGODlhCgAGAKL/AP///8DAwMbOzmNjYzkxMTExMSkpKQAAACH5BAEAAAEALAAAAAAKAAYAQAMX
GBpWGwUAQcUYDspLnsZPNFlgYRbEmSYAOw==

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/move-column-left.gif

R0lGODlhBgAIAJH/AAAAALW1tcDAwAAAACH5BAEAAAIALAAAAAAGAAgAQAIPlHGhgaCABDQnutVe
lKYAADsQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAABgAIAAAIHQD/CQQg
cCDBgbVqAViYMCHDhgQBODy4sOBAgQEBADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/add-column.gif

R0lGODlhDwAPAKIAAAAAACEhIcDAwGRkZMjIyP///wAAAAAAACH5BAEAAAIALAAAAAAPAA8AQAM0
KKowNGDJFWqds72Yi+cC4BXgokEYFqTpmoqfOZbMQ9CZjUtA37MSF1BheflARw6MJIslAAA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/bit-unchecked.gif

R0lGODlhCwALAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAACwALAAAIJgABCBxI
UCC8gwgRGkyYcCHDgw4fRmQ4sSGAhwovYoRXMWPBggEBADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-edit.gif

R0lGODlhCgAKANX/AMDAwEdHR0hISExMTFBQUFFRUWNjY2VlZWlpaWtra3FxcXJycnR0dHV1dXd3
d3t7e3x8fH9/f4uLi5CQkJiYmJmZmZycnKampqenp6qqqqurq6ysrK2trbCwsLGxsbOzs7W1tbm5
ubq6ury8vL29vb6+vszMzNfX19jY2NnZ2d3d3d7e3uDg4OPj4+Tk5Obm5u3t7QAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAAALAAAAAAKAAoAQAZEQECn
FIJcAMik0sOIDESik4oiyCRHLlQK9pAoAaIQoOIIaACfVOtlQoCSpNaKBWtYlBPDYbEhYL5IGwoQ
AhyAABwJBUEAO15eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///yH5BAEAAAEALAAAAAAKAAoA
QAhXAP/B8pWLj6kACBMqjEXnDxNduq51w4REVUJe5LBla7dnkcIAunL9y3TnyKoAs7KNM8csTa2E
vcZ5A9euDqeE/yCNKSOHFZRTHxGyisMHSaugAVqtiRIQADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/row-delete.gif

R0lGODlhCgAJAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///yH5BAEAAAAALAAAAAAKAAkA
QAhMAJvVuVMOgMF7xSjdK1TLoEMAqxzWqqPnjrWH3+7c0bbIj8NVdRY53OUIwLtBAwsCiOTnncNy
d0I+hFgnEoBidZoBMFanTrGHxawFBAA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-firstpage-d.gif

R0lGODlhEAAQAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAAEAAQAAAIqABFCBxI
sKBAdOTQKUSYkCE5ZgLJSSTnzZs2bdOoTYvGbNXBiha1eZuGkSMzVx+9WfJ27Ro3S9FMohRBUWXL
lzCZMUs2E91FS9eQWRo6lFmxnte0WcJJ1NJOWRGTLm069NgxpNcsTRPa9NgwqCLQXaOmlRnXY8W8
9tSp9ZlZS16HDZtJLtrGaTqPJYvbiy4zjs+S7ZU7rNctsM9cKV7sStbiVTMNShYYEAA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-previouspage-d.gif

R0lGODlhEAAQAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAAEAAQAAAIoQBFCBxI
sKBAdOTQKUSYkCE5ZgLJSSTnzZs2bdOoTYvGbNXBiha1eZuGkSMzVx+9XVN5zVK0l8xORgR5raUl
ZiaToRSB7qI2m5aCxiy2E921n0GTWkrGLJmsiEeBJk127FjRmhqVLj027CnPaxqnMRN6rBjXojGj
TXs21uywtzvJqVUb8xjVt73i4mT2LNldvLe8PnNFuLArWYVX7TTIWGBAADs=

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-nextpage.gif

R0lGODlhEAAQAPcAAAAAAAEBAQICAgMDAwQEBAUFBQYGBgcHBwgICAkJCQoKCgsLCwwMDA0NDQ4O
Dg8PDxAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwcHB0dHR4eHh8fHyAgICEh
ISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4uLi8vLzAwMDExMTIyMjMzMzQ0
NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BAQEFBQUJCQkNDQ0REREVFRUZGRkdH
R0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJSUlNTU1RUVFVVVVZWVldXV1hYWFlZWVpa
WltbW1xcXF1dXV5eXl9fX2BgYGFhYWJiYmNjY2RkZGVlZWZmZmdnZ2hoaGlpaWpqamtra2xsbG1t
bW5ubm9vb3BwcHFxcXJycnNzc3R0dHV1dXZ2dnd3d3h4eHl5eXp6ent7e3x8fH19fX5+fn9/f4CA
gIGBgYKCgoODg4SEhIWFhYaGhoeHh4iIiImJiYqKiouLi4yMjI2NjY6Ojo+Pj5CQkJGRkZKSkpOT
k5SUlJWVlZaWlpeXl5iYmJmZmZqampubm5ycnJ2dnZ6enp+fn6CgoKGhoaKioqOjo6SkpKWlpaam
pqenp6ioqKmpqaqqqqurq6ysrK2tra6urq+vr7CwsLGxsbKysrOzs7S0tLW1tba2tre3t7i4uLm5
ubq6uru7u7y8vL29vb6+vr+/v8DAwMHBwcLCwsPDw8TExMXFxcbGxsfHx8jIyMnJycrKysvLy8zM
zM3Nzc7Ozs/Pz9DQ0NHR0dLS0tPT09TU1NXV1dbW1tfX19jY2NnZ2dra2tvb29zc3N3d3d7e3t/f
3+Dg4OHh4eLi4uPj4+Tk5OXl5ebm5ufn5+jo6Onp6erq6uvr6+zs7O3t7e7u7u/v7/Dw8PHx8fLy
8vPz8/T09PX19fb29vf39/j4+Pn5+fr6+vv7+/z8/P39/f7+/v///ywAAAAAEAAQAAAIoABFCBxI
sKBAdOTQKUSYkCE5ZgLJSSTnzZs2bdOoTYvGbNXBiha1eZuGkSMzVx+9XVMpole0l8xORgR57ZpA
ZiaToRSB7qK2gr1iFtuJ7po2mwWTMUsmK6JRpASTHTtGtCY1oFKHNeV5TeM0iCKYHSt2bBjRmNGm
PWtJdpjbneTSpo15LOuwXnBxMnuWzO7dW1ufuRpM2JUswqt2GlwsMCAAOw==

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/nav-lastpage.gif

R0lGODlhEAAQAMQAAP///+jo6OTk5ODg4N7e3tra2tfX19TU1NTU09PT09HR0c/Pz87Ozs3Ozc3M
zMzMzMvLy8rLysnJycfHx8bGxsXFxcTExMPDw8HBwb29vbe3t7Kysq6urqurqyIiIgAAACwAAAAA
EAAQAAAFhKAnjmQpBkKgoikrPKIgCwRRFMmRKE931rYCIYHjPTg/goHgGWAUis/jGAMaRBZG9CFB
egK3kiIjrXgDhoJpK9nE0ibEZzI5G66khmN+cX8NOgkiCBETfGdTCoIGGBWGFxdeAoqKDxAUEhOQ
GZIPPAsSmZAXGRp+Cxypqhwbqh1eJrEiIQA7

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/images/export.gif

R0lGODlhMgAUAMT/AP///+/v7+fn59zc3NbW1s/Pz8fHx729vba2tq6urqWlpZ+fn5eXl4yMjISE
hH9/f3d3d21tbWVlZVxcXFdXV01NTcDAwEZGRj09PTc3Ny0tLSUlJRcXFwAAAAAAAAAAACH5BAEA
ABYALAAAAAAyABQAQAX/oCWOZGme6HmZWoMsBDIoCoI0kjRdlzZCAAZEYZpQDkiAUnloUShGn2iT
eT4rmYmEIU2ROqNMhyLOeEWagSFAMNwSidmkex5xaJEIx2I8NHgkE1oTEQ0PDRE6UBlZDxQ/GxFE
gQ4Nlg4BVVBWE2UWYCNzcUsBGhN1Xhx7n6AWKyRpMAMDBQQLhg8SDxh0eZMnHQq8G0lIDjxHGsp5
CQgKBc6WiRS8El1ADJG/FA0BAQeVGUgNVptPPnMTGA8QFHlYGaYMpyMFv7AdEw2VDVVGnmfmaNhg
ClUdOgYFKqNnEFWHFa9YICAQYwCBAwEEKEBoUBWNVRaguCoxwQYCATMGstxooMCRyB/3THRYAAFD
jyNILgg40EPEBAcHoM1IwDKBAwcUJFAoKCJCAUkoxmhIsgQAEj9PCEZA0KyARQR+EEWZMyICgALZ
fvVBogGnVSdPjCzVIKEQggcKDDmY1qkChC5ONwwhwW2ft3FGEscVA2ZDjhwVHrB7giFDBWsktJmA
ws9SlrhkOpgRAUpDBgwVrCjNMoFLCQJRLYgpXAWgFwobKjgwPeEvw4YkxAAfDrxVihAAOy1YIOHB
CHMpZqQQQi3bvENNQHBckgoVCk6nkKjM5kEDCAku7aXLwXFGL1Ak4n3MYYIAgQv1iKAyYWvfK0/T
bAhJ4SJHNlxEDJI4OEjCR4hNbJioZ6KWKX/HpiFZYhBhNWpmxaqkahZhk0UP0xlpeBBpwYMLBA6A
QGtWIaWFPWA5LGTDkoYDkxZcMgHCneBPVw01GeFCSKdTqH4cuNBJkA0UF2BO8sDYAwoUOWbkKCso
hgR5iIYhSbUKACpvr8jG0NBSgl0N3tDFmjYoBgAJOT92Q4UEs21Xr0ytRjKjnIYUIMyhmNmPh4te
rpeMIsRzq8+hptJHFwZsSaZMPFIwfSWECA+bhHQagsXVXq7oxDRhjCAAIUGEEDzYolouNvBSyAOx
9SBMebWA5UsOS/CAgoE2fMdWW4QIA+KIIDaUSCAAOw==

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://interno.cvrvv.pt/eVerde/css/WAMcss.win.css.txt

BODY {
	FONT: 11px tahoma, verdana, arial; BACKGROUND-COLOR: rgb(255,255,255)
}
TD.cssWAMwinTitle {
	HEIGHT: 45px; BACKGROUND-COLOR: rgb(0,57,24)
}
SPAN.cssWAMwinTitleTop {
	FONT: 10px tahoma,verdana,arial; COLOR: rgb(255,255,255)
}
SPAN.cssWAMwinTitleBottom {
	FONT: bold 24px tahoma,verdana,arial; COLOR: rgb(255,255,255)
}
TD.cssWAMlistDark {
	FONT: 11px tahoma,verdana,arial; COLOR: rgb(0,0,0); BACKGROUND-COLOR: =
rgb(192,220,192)
}
TR.cssWAMlistLight {
	FONT: 11px tahoma,verdana,arial; BACKGROUND-COLOR: rgb(235,235,235)
}
TR.cssWAMlistSelected {
	FONT: 11px tahoma,verdana,arial; COLOR: rgb(255,255,255); =
BACKGROUND-COLOR: rgb(192,220,192)
}
IMG.cssdbotipoLocalpictograma {
	HEIGHT: 20px
}
IMG.cssdbotipoProdutoimagem1 {
	HEIGHT: 17px
}
IMG.cssdbotipoProdutoimagem2 {
	HEIGHT: 17px
}

------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: application/x-javascript
Content-Transfer-Encoding: quoted-printable
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/window_prototype.js

function WinFeatures(w, h, t, l, d, s, m, sc, r){
	var c =3D "toolbar=3D"+t+
//	var c =3D "toolbar=3D"+1+
		",location=3D"+l+
//		",location=3D"+1+
		",directories=3D"+d+
		",status=3D"+s+
//		",menubar=3D"+m+
		",menubar=3D"+1+
		",scrollbars=3D"+sc+
		",resizable=3D"+r+
		",width=3D"+150+
		",height=3D"+1+
		"";
	return c;
}

// --- Properties
window.childWindows =3D new Array();
window._nChilds =3D 0;
window.toExecuteOnOnLoad =3D new Array();
window.addToOnLoad =3D window_addToOnLoad;
window.executeOnLoad =3D window_executeOnLoad;
window.browser =3D new Browser();

// --- Methods
window.newWindowName =3D window_newWindowName;
window.openChild =3D window_openChild;
window.closeChild =3D window_closeChild;
window.closeAllChilds =3D window_closeAllChilds;
window.deleteChild =3D window_deleteChild;
window.deleteFromParent =3D window_deleteFromParent
window.onunload =3D window_onUnLoad;

function window_newWindowName(){
	var dt =3D new Date();
	return =
"window"+dt.getFullYear()+dt.getMonth()+dt.getDate()+dt.getHours()+dt.get=
Minutes()+dt.getSeconds()+dt.getMilliseconds()+(++this._nChilds);
}

function window_openChild(strURL, strWinFeatures){
	var strWinName =3D this.newWindowName();
	var win =3D window.open(strURL, strWinName, strWinFeatures, true);
	this.childWindows[win.name] =3D win;
	return strWinName;
}

function window_closeChild(strWindowName){
	if (typeof(this.childWindows[strWindowName]) !=3D "undefined"){
		this.childWindows[strWindowName].close();
		this.deleteChild(strWindowName);
	}
}

function window_closeAllChilds(){
	var win;
	for (el in this.childWindows){
		win =3D this.childWindows[el];
		this.deleteChild(el);
		if (!win.closed) win.close();
	}
}

function window_deleteChild(strWindowName){
	delete(this.childWindows[strWindowName]);
}

function window_deleteFromParent(){
	if (this.opener+"" !=3D "undefined" && this.opener+"" !=3D "null")
		if (typeof(this.opener.childWindows) !=3D "undefined")
			if (typeof(this.opener.childWindows[this.name]) !=3D "undefined")
				this.opener.deleteChild(this.name);
}

function window_addToOnLoad(varIN){
	this.toExecuteOnOnLoad[this.toExecuteOnOnLoad.length] =3D varIN;
}

function window_executeOnLoad(){
	var i;
	for (i =3D 0; i < this.toExecuteOnOnLoad.length; i++){
		switch (typeof(this.toExecuteOnOnLoad[i])){
			case "function":
				this.toExecuteOnOnLoad[i]();
				break;
			case "string":
				eval(this.toExecuteOnOnLoad[i]);
				break;
		}
	}
}

function window_onUnLoad(){
	this.closeAllChilds();
//	this.deleteFromParent();
}

function Browser() {
	var n =3D navigator.appName;
	if (n =3D=3D "Netscape") this.name =3D "ns";
	else if (n =3D=3D "Microsoft Internet Explorer") this.name =3D "ie";
	else this.name =3D name;

	var ua =3D navigator.userAgent.toLowerCase();
	if (ua.indexOf("win") > -1) this.platform =3D "win32";
	else if (ua.indexOf("mac") > -1) this.platform =3D "mac";
	else this.platform =3D "other";
=09
	this.isNS =3D this.name =3D=3D "ns";
	this.isIE =3D this.name =3D=3D "ie";
	this.isIEMAC =3D this.name =3D=3D "ie" && this.platform =3D=3D "mac";
}

if (window.browser.isNS){
	window.captureEvents(Event.CLICK);
	window.captureEvents(Event.KEYPRESS);
	window.document.onclick =3D function __setIEEvent(e){
			event =3D e;
		}
}
------=_NextPart_000_009E_01C276C0.D887EBE0
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://interno.cvrvv.pt/eVerde/WAMLibrary/ClientJavaScript.js.asp?wfld=1&wl=1

function _Date_toHTMLFormat(domain){
	var r, tYear, tMonth, tDate, tHours, tMinutes, tSeconds;

	switch (domain){
		case WAMDomain.wamdate:
			// --- Get Date
			tYear =3D this.getFullYear();
			tMonth =3D this.getMonth() + 1;
			tDate =3D this.getDate();
			tMonth =3D tMonth < 10 ? "0"+tMonth : tMonth;
			tDate =3D tDate < 10 ? "0"+tDate : tDate;
			r =3D tDate+"-"+tMonth+"-"+tYear;
			break;
		case WAMDomain.wamtime:
			// --- Get Time
			tHours =3D this.getHours(); tHours =3D tHours < 10 ? "0"+tHours : =
tHours;
			tMinutes =3D this.getMinutes(); tMinutes =3D tMinutes < 10 ? =
"0"+tMinutes : tMinutes;
			tSeconds =3D this.getSeconds(); tSeconds =3D tSeconds < 10 ? =
"0"+tSeconds : tSeconds;
			r =3D tHours+":"+tMinutes+":"+tSeconds;
			break;
		default:
			// --- Get DateTime
			tYear =3D this.getFullYear();
			tMonth =3D this.getMonth() + 1;
			tDate =3D this.getDate();
			tMonth =3D tMonth < 10 ? "0"+tMonth : tMonth;
			tDate =3D tDate < 10 ? "0"+tDate : tDate;
			tHours =3D this.getHours(); tHours =3D tHours < 10 ? "0"+tHours : =
tHours;
			tMinutes =3D this.getMinutes(); tMinutes =3D tMinutes < 10 ? =
"0"+tMinutes : tMinutes;
			tSeconds =3D this.getSeconds(); tSeconds =3D tSeconds < 10 ? =
"0"+tSeconds : tSeconds;
			r =3D tDate+"-"+tMonth+"-"+tYear+" =
"+tHours+":"+tMinutes+":"+tSeconds;
			break;
	}
	return r;
}

function _String_formatNum(format){
	var newStr =3D "";

	for (i =3D 0; i < format.length-this.length; i++) newStr +=3D =
format.charAt(i);
	return newStr+this.valueOf();
}

function _String_toNumber(){
	return new Number(this.replace(/ /g, ""));
}

function _String_replaceSubstr(iFrom, strWith){
	var newStr =3D "";
	iFrom--;
	return this.substr(0,iFrom)+this.substr(iFrom).replace(new =
RegExp("#{"+strWith.length+"}"), strWith);
}

function _String_splitWords(sep){
	var r; var i; var s =3D "";
=09
	r =3D this.split(sep);
	for (i in r){
		if (!isEmpty(r[i])){
			s +=3D r[i]+" ";
		}
	}
	s =3D s.substr(0, s.length-1);
	this._words =3D s.split(sep);
}

function _String_getWord(i){
	var r;

	this.splitWords(" ");
	if (isNaN(i)){
		r =3D "";
	} else {
		if (isUndefined(this._words[i-1])){
			r =3D "";
		} else {
			r =3D this._words[i-1];
		}
	}
	delete(this._words);
	return r;
}

function _String_deleteWord(iBegin, iEnd){
	var i; var s;

	this.splitWords(" ");
	if (isUndefined(iEnd)){
		iEnd =3D iBegin;
	} else {
		if (iEnd > this._words.length){
			iEnd =3D this._words.length;
		}
	}
	for (i =3D iBegin; i <=3D iEnd; i++){
		delete(this._words[i-1]);
	}
	s =3D new String(this._words.join(" "));
	s.splitWords(" ");
	delete(this._words);
	return new String(s._words.join(" "));
}

function _String_toScriptFormat(){
	return this.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/"/g, =
'\\"');
}

function _Number_toMoney(casasDecimais){
	return formatNumber(this.round(casasDecimais), 2);
}

function _Number_round(numDecimalPlaces){
	if (isUndefined(numDecimalPlaces)) numDecimalPlaces =3D 0;
	return Math.round(this*Math.pow(10, numDecimalPlaces))/Math.pow(10, =
numDecimalPlaces)
}

function formatNumber(val, dec, mSep){
	var iIntPart, iDot, lDecPart, i;
	val +=3D "";
=09
	if (isUndefined(mSep)) mSep =3D " ";

	iDot =3D val.indexOf(".", 0);
	iIntPart =3D (iDot =3D=3D -1 ? val.length : iDot);
	lDecPart =3D val.substr(iIntPart+1).length;
=09
	for (i =3D iIntPart-4; i > 0; i-=3D3){
		val =3D val.substr(0, i+1) + mSep + val.substr(i+1);
	}
	if (i =3D=3D 0) val =3D val.substr(0, i+1) + mSep + val.substr(i+1);
	if (isNaN(dec)) return val;
	if (iDot =3D=3D -1) val +=3D ".";
	for (i=3D0; i<(dec-lDecPart); i++) val +=3D "0";
	return val;
}

function GetScriptEngineInfo(){
    var s;
    s =3D ""; // Build string with necessary info.
    s +=3D ScriptEngine() + " Version ";
    s +=3D ScriptEngineMajorVersion() + ".";
    s +=3D ScriptEngineMinorVersion() + ".";
    s +=3D ScriptEngineBuildVersion();
    return(s);
}

function encodeURL(strToEncode){
	// --- * @ - _ + . /
	return escape(strToEncode).replace(/\+/g, "%2B");
}

function validMask(varValue, strMask){
	var re =3D new RegExp(strMask);

	if (re.test(varValue)){
		return true;
	} else {
		return false;
	}
}

function isUndefined(varIn){
	if (varIn+"" =3D=3D "undefined"){
		return true;
	} else {
		return false;
	}
}

function isNull(varIn){
	if (varIn =3D=3D null){
		return true;
	} else {
		return false;
	}
}

function isEmpty(varIn){
	if (varIn+"" =3D=3D ""){
		return true;
	} else {
		return false;
	}
}

function isDigit(val){
	var digits =3D "^\\d$";
	return validMask(val, digits);
}

function previewImage(formEl, strIMGName, OLDsource){
	var strFileTemp;

	strFileTemp =3D formEl.value;
	if (typeof(__strFileUpLoadPath) =3D=3D "undefined") __strFileUpLoadPath =
=3D null;
	if (strFileTemp !=3D __strFileUpLoadPath){
		if (strFileTemp =3D=3D ""){
			window.document.all[strIMGName].src =3D OLDsource;
		} else {
			window.document.all[strIMGName].src =3D "file://" + strFileTemp;
		}
		__strFileUpLoadPath =3D strFileTemp;
	}
}

Date.prototype.toHTMLFormat =3D _Date_toHTMLFormat;
String.prototype.formatNum =3D _String_formatNum;
String.prototype.toNumber =3D _String_toNumber;
String.prototype.replaceSubstr =3D _String_replaceSubstr;
String.prototype.splitWords =3D _String_splitWords;
String.prototype.getWord =3D _String_getWord;
String.prototype.deleteWord =3D _String_deleteWord;
String.prototype.toScriptFormat =3D _String_toScriptFormat;

Number.prototype.toMoney =3D _Number_toMoney;
Number.prototype.round =3D =
_Number_round;//*********************************************************=
***************/
// Web Application Maker Library
//
// Copyright (c) Declarativa 2000. All Rights Reserved.
//***********************************************************************=
*/
//***********************************************************************=
*/
// ASPExecute Object (Client Side)
//***********************************************************************=
*/
function ASPExecute(){
	var AE =3D new _ASPExecute();
//AE.setDebug(true);
	return AE;
}

function _ASPExecute(){
	if (typeof(_ASPExecutePrototypeCalled) =3D=3D "undefined")
		_ASPExecute__Prototype();
}

function _ASPExecute__Prototype(){
	_ASPExecutePrototypeCalled =3D true;

	_ASPExecute.prototype.url =3D null;
	_ASPExecute.prototype.form =3D null;
	_ASPExecute.prototype.formName =3D null;
	_ASPExecute.prototype.debug =3D false;

	_ASPExecute.prototype._window =3D window;
	if (window.browser.isNS) window._ExecuteOnServer =3D =
window.document.getElementById("_ExecuteOnServer");
	_ASPExecute.prototype._iFrameHidden =3D "<iframe src=3D'about:blank' =
id=3D'ExecuteOnServer' name=3D'ExecuteOnServer' =
style=3D'visibility:hidden;width:0px;height:0px;'></iframe>";
	_ASPExecute.prototype._iFrameVisible =3D "<iframe src=3D'about:blank' =
id=3D'ExecuteOnServer' name=3D'ExecuteOnServer' =
style=3D'visibility:visible;width:600px;height:300px;'></iframe>";

	_ASPExecute.prototype.execute =3D ASPExecute_execute;
	_ASPExecute.prototype.setForm =3D ASPExecute_setForm;
	_ASPExecute.prototype.setURL =3D ASPExecute_setURL;
	_ASPExecute.prototype.setDebug =3D ASPExecute_setDebug;
=09
	function ASPExecute_execute(){
		var i;

		for (i =3D 0; i < __arASPExecute.length; i++){}
		if (isNull(__arASPExecute[i])) __arASPExecute[i] =3D this;
		setTimeout("__ASPExecute_execute__("+i+")", 100);
	}
=09
	function ASPExecute_setForm(strForm, strFormName){
		this.form =3D strForm;
		this.formName =3D strFormName;
	}
=09
	function ASPExecute_setURL(strURL){
		this.url =3D strURL;
	}

	function ASPExecute_setDebug(bolDebug){
		this.debug =3D bolDebug;
		if (this.debug =3D=3D true){
			this._window._ExecuteOnServer.style.visibility =3D "visible";
		} else {
			this._window._ExecuteOnServer.style.visibility =3D "hidden";
		}
	}
}

var __arASPExecute =3D new Array();
function __ASPExecute_execute__(i){
	__arASPExecute[i]._window._ExecuteOnServer.innerHTML =3D "";
	if (__arASPExecute[i].debug =3D=3D true){
		__arASPExecute[i]._window._ExecuteOnServer.innerHTML =3D =
__arASPExecute[i]._iFrameVisible;
	} else {
		__arASPExecute[i]._window._ExecuteOnServer.innerHTML =3D =
__arASPExecute[i]._iFrameHidden;
	}

	if (window.browser.isNS) window.ExecuteOnServer =3D =
window.document.getElementById("ExecuteOnServer");

	if (__arASPExecute[i].url !=3D null){
		if (window.browser.isNS) __arASPExecute[i]._window.ExecuteOnServer.src =
=3D __arASPExecute[i].url;
		else __arASPExecute[i]._window.ExecuteOnServer.location.href =3D =
__arASPExecute[i].url;
	} else {
		if (__arASPExecute[i].form !=3D null){
			=
__arASPExecute[i]._window.document.frames('ExecuteOnServer').document.ope=
n('text/html', 'replace');
			=
__arASPExecute[i]._window.document.frames('ExecuteOnServer').document.cha=
rset =3D 'iso8859-1';
			=
__arASPExecute[i]._window.document.frames('ExecuteOnServer').document.wri=
te("<html><body>"+__arASPExecute[i].form+"</body></html>");
			=
__arASPExecute[i]._window.document.frames('ExecuteOnServer').document.clo=
se();
			=
eval("__arASPExecute[i]._window.document.frames('ExecuteOnServer').docume=
nt."+__arASPExecute[i].formName+".submit()");
		}
	}
	__arASPExecute[i].url =3D null;
	__arASPExecute[i].form =3D null;
	__arASPExecute[i].formName =3D null;
	__arASPExecute[i] =3D null;
}//**********************************************************************=
**/
// Web Application Maker Library
//
// Copyright (c) Declarativa 2000. All Rights Reserved.
//***********************************************************************=
*/
//***********************************************************************=
*/
// WAMEventHandler Object (Client side)
//***********************************************************************=
*/
function WAMEventHandler(objParent){
	return new _WAMEventHandler(objParent);
}

function _WAMEventHandler(objParent){
	if (typeof(_WAMEventHandlerPrototypeCalled) =3D=3D "undefined")
		_WAMEventHandler__Prototype();
	=09
	this.parent =3D objParent;
}

function _WAMEventHandler__Prototype(){
	_WAMEventHandlerPrototypeCalled =3D true;
=09
	// --- Methods
	_WAMEventHandler.prototype.set =3D _WAMEventHandler_set;
	_WAMEventHandler.prototype.fire =3D _WAMEventHandler_fire;
=09
	function _WAMEventHandler_set(strEventName, =
varObjectName/*string=3Deval()...; function=3D...()*/){
		eval("this.parent."+strEventName+"=3D"+varObjectName);
	}
=09
	function _WAMEventHandler_fire(strEventName, bolTimeOut){
		if (typeof(bolTimeOut) !=3D "boolean") bolTimeOut =3D true;
		__event =3D eval("this.parent."+strEventName);
		if (__event !=3D null){
			switch (typeof(__event)){
				case "string":
					if (bolTimeOut) window.setTimeout("eval(__event)", 1);
					else return eval(__event);
					break;
				case "function":
					if (bolTimeOut) window.setTimeout("__event();", 1);
					else return __event();
					break;
			}
		}
	}
}//**********************************************************************=
**/
// Web Application Maker Library
//
// Copyright (c) Declarativa 2000. All Rights Reserved.
//***********************************************************************=
*/
function WAMDialog(strWinTitle, strTitle, strText){
	var objWAMDialog;
=09
	objWAMDialog =3D new _WAMDialog(strWinTitle, strTitle, strText);

	return objWAMDialog;
}

// _WAMDIALOG OBJECT
function _WAMDialog(strWinTitle, strTitle, strText){
	if (isUndefined(typeof(_WAMDialogPrototypeCalled)))
		_WAMDialog__Prototype();

	this.height			=3D null;
	this.width			=3D null;
	this.top			=3D null;
	this.left			=3D null;
	this.winTitle		=3D "";
	this.title			=3D "";
	this.text			=3D "";
	this.inputText		=3D null;
	this.inputWidth		=3D 200;
	this.buttons		=3D new Array();
	this.isPromptDialog	=3D false;
=09
	if (!isUndefined(strWinTitle) && !isNull(strWinTitle)) =
this.setWinTitle(strWinTitle);
	if (!isUndefined(strTitle) && !isNull(strTitle)) =
this.setTitle(strTitle);
	if (!isUndefined(strText) && !isNull(strText)) this.setText(strText);
}

// _WAMDIALOG PROTOTYPE
function _WAMDialog__Prototype(){
	_WAMDialogPrototypeCalled =3D true;
=09
	_WAMDialog.prototype.setHeight		=3D _WAMDialog_setHeight;
	_WAMDialog.prototype.setWidth		=3D _WAMDialog_setWidth;
	_WAMDialog.prototype.setTop			=3D _WAMDialog_setTop;
	_WAMDialog.prototype.setLeft		=3D _WAMDialog_setLeft;
	_WAMDialog.prototype.setWinTitle	=3D _WAMDialog_setWinTitle;
	_WAMDialog.prototype.setTitle		=3D _WAMDialog_setTitle;
	_WAMDialog.prototype.setText		=3D _WAMDialog_setText;
	_WAMDialog.prototype.addLine		=3D _WAMDialog_addLine;
	_WAMDialog.prototype.addEmptyLine	=3D _WAMDialog_addEmptyLine;
	_WAMDialog.prototype.addLineBr		=3D _WAMDialog_addLineBr;
	_WAMDialog.prototype.addButton		=3D _WAMDialog_addButton;
	_WAMDialog.prototype.show			=3D _WAMDialog_show;
	_WAMDialog.prototype.alert			=3D _WAMDialog_alert;
	_WAMDialog.prototype.prompt			=3D _WAMDialog_prompt;
=09
	function _WAMDialog_setHeight(height){
		this.height =3D height;
	}
=09
	function _WAMDialog_setWidth(width){
		this.width =3D width;
	}
=09
	function _WAMDialog_setTop(top){
		this.top =3D top;
	}=09
=09
	function _WAMDialog_setLeft(left){
		this.left =3D left;
	}
=09
	function _WAMDialog_setWinTitle(strTitle){
		this.winTitle =3D strTitle;
	}

	function _WAMDialog_setTitle(strTitle){
		this.title =3D strTitle;
	}

	function _WAMDialog_setText(strText){
		this.text =3D strText;
	}
=09
	function _WAMDialog_addLine(strLine){
		if (isNull(this.text))
			this.text =3D strLine;
		else
			this.text +=3D strLine;
	}
=09
	function _WAMDialog_addEmptyLine(intNLines){
		if (isUndefined(intNLines) || isNull(intNLines))
			intNLines =3D 1;		=09
		var l;
		for (l=3D1; l<=3DintNLines; l++)
			this.text +=3D "\n";
	}

	function _WAMDialog_addLineBr(strLine){
		if (isNull(this.text))
			this.text =3D strLine;
		else
			this.text +=3D strLine + "<br>";
	}

	function _WAMDialog_addButton(objWAMButton){
		this.buttons[this.buttons.length] =3D objWAMButton;
	}

	function _WAMDialog_show(){
		var strFeatures =3D "";
		strFeatures +=3D "dialogHeight:" + ((isNull(this.height)) ? "300px;" : =
this.height + ";");
		strFeatures +=3D "dialogWidth:" + ((isNull(this.width)) ? "300px;" : =
this.width + ";");
		if (!isNull(this.left))
			strFeatures +=3D "dialogTop:" + this.top + ";";
		if (!isNull(this.left))
			strFeatures +=3D "dialogLeft:" + this.left + ";";
		strFeatures +=3D "status: no";
		var objDialogArgs =3D new Object();
		objDialogArgs.winTitle =3D this.winTitle;
		objDialogArgs.title =3D this.title;
		objDialogArgs.text =3D this.text.replace(/\n|\r|\n\r/g, "<br>");
		objDialogArgs.text =3D objDialogArgs.text.replace(/\t/g, =
"&nbsp;&nbsp;&nbsp;&nbsp;");
		objDialogArgs.isPromptDialog =3D this.isPromptDialog;
		objDialogArgs.inputText =3D this.inputText;
		objDialogArgs.inputWidth =3D this.inputWidth;
		objDialogArgs.buttons =3D this.buttons;
		var answer =3D =
window.showModalDialog(WAMRootURL+"/wamlibrary/dialog/wamdialog.htm", =
objDialogArgs, strFeatures);
		return answer;
	}

	function _WAMDialog_alert(){
		this.addButton(new WAMButton("OK", "OK"));
		this.show();
	}
=09
	function _WAMDialog_prompt(defValue, inputWidth){
		this.isPromptDialog =3D true;
		(isUndefined(defValue) || isNull(defValue)) ? this.inputText =3D "" : =
this.inputText =3D defValue;
		if (!isUndefined(inputWidth) || !isNull(inputWidth)) this.inputWidth =
=3D inputWidth;
		this.buttons =3D new Array();
		this.addButton(new WAMButton("OK"));
		this.addButton(new WAMButton("Cancel"));
		answer =3D this.show();
		return answer;=20
	}
}




function WAMButton(label, value, tip, width){
	var objWAMButton;
	objWAMButton =3D new _WAMButton(label, value, tip, width);
	return objWAMButton;
}
=09
function _WAMButton(label, value, tip, width){
	if (isUndefined(typeof(_WAMButtonPrototypeCalled)))
		_WAMButton__Prototype();
=09
	this.label		=3D label;
	(isUndefined(tip) || isNull(tip)) ? this.value =3D this.label : =
this.value =3D value;
	this.name		=3D "btn_" + this.label;
	(isUndefined(tip) || isNull(tip)) ? this.tip =3D "" : this.tip =3D tip;
	if (!isUndefined(width)) this.width =3D width;
}

function _WAMButton__Prototype(){
	_WAMButtonPrototypeCalled =3D true;

	// --- Properties
	_WAMButton.prototype.name		=3D "";
	_WAMButton.prototype.value		=3D null;
	_WAMButton.prototype.label		=3D "";
	_WAMButton.prototype.tip		=3D "";
	_WAMButton.prototype.width		=3D "75px";

	// --- Methods
	_WAMButton.prototype.setValue	=3D _WAMButton_setValue;
	_WAMButton.prototype.setLabel	=3D _WAMButton_setLabel;
	_WAMButton.prototype.getLabel	=3D _WAMButton_getLabel;
	_WAMButton.prototype.setTip		=3D _WAMButton_setTip;
	_WAMButton.prototype.getTip		=3D _WAMButton_getTip;
	_WAMButton.prototype.setWidth	=3D _WAMButton_setWidth;

	function _WAMButton_setValue(value){
		this.value =3D value;
	}

	function _WAMButton_setLabel(strLabel){
		this.label =3D strLabel;
	}
=09
	function _WAMButton_getLabel(){
		return this.label;
	}

	function _WAMButton_setTip(strTip){
		this.tip =3D strTip;
	}

	function _WAMButton_getTip(){
		return (isNull(this.tip) ? "" : this.tip);
	}

	function _WAMButton_setWidth(strWidth){
		this.width =3D strWidth;
	}
}
//***********************************************************************=
*/
// Web Application Maker Library
//
// Copyright (c) Declarativa 2000. All Rights Reserved.
//***********************************************************************=
*/
function WAMError(rootURL){
	var objWAMError;
=09
	objWAMError =3D new _WAMError();
	objWAMError.rootURL =3D rootURL;

	return objWAMError;
}

// _WAMERROR OBJECT
function _WAMError(){
	if (isUndefined(typeof(_WAMErrorPrototypeCalled)))
		_WAMError__Prototype();

	this.rootURL =3D null;
	this.errors =3D new Array();
	this.errorMsgs =3D new Array();
	this.focus =3D null;
	this.aspExecuted =3D true;
}

// _WAMERROR PROTOTYPE
function _WAMError__Prototype(){
	_WAMErrorPrototypeCalled =3D true;
=09
	_WAMError.prototype.existsMsg		=3D _WAMError_existsMsg;
	_WAMError.prototype.add				=3D _WAMError_add;
	_WAMError.prototype.addMsg			=3D _WAMError_addMsg;
	_WAMError.prototype.addError		=3D _WAMError_addError;
	_WAMError.prototype.setError		=3D _WAMError_setError;
	_WAMError.prototype.setMacro		=3D _WAMError_setMacro;
	_WAMError.prototype.catchErrors		=3D _WAMError_catchErrors;
	_WAMError.prototype.show			=3D _WAMError_show;
	_WAMError.prototype.showParsed		=3D _WAMError_showParsed;
	_WAMError.prototype.clear			=3D _WAMError_clear;
	_WAMError.prototype.setParameters	=3D _WAMError_setParameters;
	_WAMError.prototype.setFocusTo		=3D _WAMError_setFocusTo;
	_WAMError.prototype.hasErrors		=3D _WAMError_hasErrors;
	_WAMError.prototype.setASPExecuted	=3D _WAMError_setASPExecuted;
	_WAMError.prototype.getASPExecuted	=3D _WAMError_getASPExecuted;
}

function _WAMError_setASPExecuted(blnExecuted){
	if (isUndefined(blnExecuted))
		this.aspExecuted =3D false;
	else
		this.aspExecuted =3D blnExecuted;
}

function _WAMError_getASPExecuted(){
	return this.aspExecuted;
}

function _WAMError_existsMsg(strCode){
	if (isUndefined(this.errorMsgs[strCode]))
		return null;
	else
		return this.errorMsgs[strCode];
}

function _WAMError_addMsg(strCode, objErrorMsg){
	this.errorMsgs[strCode] =3D objErrorMsg;
}

function _WAMError_addError(objError){
	this.errors[this.errors.length] =3D objError;
}

function _WAMError_setParameters(){
	var arrParam =3D new Array();
	var i;
	for (i=3D0; i<_WAMError_setParameters.arguments.length; i+=3D2)
		arrParam[_WAMError_setParameters.arguments[i]] =3D =
_WAMError_setParameters.arguments[i+1];
	return arrParam;
}

function _WAMError_add(strCode, strDescription, arrParameters, =
bolCacheMode/*default=3Dfalse*/){
	var objError;
	var objErrorMsg =3D this.existsMsg(strCode);
=09
	if (isUndefined(bolCacheMode) || isNull(bolCacheMode))
		bolCacheMode =3D false;
=09
	if (isNull(objErrorMsg)){
		objErrorMsg =3D new _ErrorMsg(strCode, strDescription);
		this.addMsg(strCode, objErrorMsg);
	}
=09
	if (!bolCacheMode){
		if (isUndefined(arrParameters))
			this.addError(new _Error(objErrorMsg));
		else{
			objError =3D new _Error(objErrorMsg);
			objError.parameters =3D arrParameters;
			this.addError(objError);
		}
	}
}

function _WAMError_setError(strCode){
	this.add(strCode, null);
}

function _WAMError_setMacro(strParam, strValue){
	strParam =3D "@" + strParam;
	this.errors[this.errors.length-1].addParameter(strParam, strValue);
}

function _WAMError_setFocusTo(objHTMLEl){
	this.focus =3D objHTMLEl;
}

function _WAMError_hasErrors(){
	return (!this.errors.length =3D=3D 0);
}
=09
function _WAMError_catchErrors(blnShowErrors){
	var err;=20
	var blnGetFromServer =3D false;=20
	var strForm=3D"";
	var objASPExec;
=09
	//----
	if (!this.getASPExecuted()) return;
	//----
=09
	if (isUndefined(blnShowErrors) || isNull(blnShowErrors))
		blnShowErrors =3D true; // Show alert with erros imediatly after =
receiving errors from the Server
	for (err in this.errorMsgs){
		// Only get description from the server for those errors not yet =
loaded in client
		if (isNull(this.errorMsgs[err].description)){
			strForm +=3D "\t\t<input type=3D'text' name=3D'txtError' value=3D'" + =
this.errorMsgs[err].code + "'>\n";
			blnGetFromServer =3D true;
		}
	}
	if (blnGetFromServer =3D=3D true){
		strForm =3D ""+
			"\t<form name=3D'frmErrors' action=3D'" + this.rootURL + =
"/WAMLibrary/WAMError_Get.asp' method=3D'post'>\n" +
			strForm + // --- INPUTs
			"\t\t<input type=3D'text' name=3D'__showErrors' value=3D'" + =
blnShowErrors + "'>\n" +
			"\t</form>\n";
		//----
		this.setASPExecuted(false);
		//----
		// Get errors description from the Server
		objASPExec =3D new ASPExecute();
		objASPExec.setForm(strForm, "frmErrors");
//objASPExec.setDebug(true);
		objASPExec.execute();
	}
	else {
		if (blnShowErrors) this.showParsed();
	}
}

function _WAMError_show(){
	var e;
	var p;
	var strErrors =3D "";
	var strParameters;
=09
	for (e in this.errors){
		strErrors +=3D this.errors[e].msg.code + "-> " + =
this.errors[e].msg.description + "\n";
		strParameters =3D "\t";
		for (p in this.errors[e].parameters)
			strParameters +=3D p + " =3D " + this.errors[e].parameters[p] + "   =
";
		strErrors +=3D strParameters + "\n\n";
	}
	alert(strErrors);
}

function _WAMError_clear(){
	delete(this.errors);
	this.errors =3D new Array();
}

function _WAMError_showParsed(bolClearErrors/*default=3Dtrue*/){
	var e;=20
	var strErrors =3D "";=20
	var objHTLMEl;
	for (e in this.errors)
		strErrors +=3D this.errors[e].parse() + "\n\n";
	alert(strErrors);
	if (bolClearErrors !=3D false){
		this.clear();
	}
	if (!isNull(this.focus)){
		//HTMLEl =3D eval("window.document." + this.focus);
		objHTLMEl =3D this.focus;
		if (typeof(objHTLMEl.name) !=3D "undefined" && objHTLMEl.type !=3D =
"hidden" && objHTLMEl.disabled !=3D true){
			objHTLMEl.focus();
		}
	}
}

function _ErrorMsg(strCode, strDescription){
	this.code =3D strCode;
	this.description =3D strDescription;
}

function _Error(objErrorMsg){
	this.msg =3D objErrorMsg;
	this.parameters =3D new Array();
	this.addParameter =3D _Error_addParameter;
	this.parse =3D _Error_Parse;
}

function _Error_addParameter(strParam, strValue){
	this.parameters[strParam] =3D strValue;
}

function _Error_Parse(){
	var p;
	var strErrorMsg;
	strErrorMsg =3D this.msg.description;
	for (p in this.parameters)
		strErrorMsg =3D strErrorMsg.replace(p, this.parameters[p]);
	return strErrorMsg;
}
var Error =3D new WAMError(WAMRootURL);
function __WAMField_OnFocus_TEXT_TEXTAREA(){
	this.select();
}

function __WAMField_OnBlur_TEXT_TEXTAREA(){
	var newVal =3D validateGeneric(this.wfdataType, this.wfdomain, =
this.value, this.wflength, this.wfprecision, this.wfscale);
	if (newVal !=3D invalidValue()){
		this.value =3D newVal;
	} else {
		Error.setMacro('F', this.label);
		Error.setFocusTo(this);
		Error.catchErrors();
		return false;
	}
}

function __WAMField_OnClick_RADIO(){
	if (this._checked =3D=3D true) this.checked =3D false;
}

function __WAMField_OnMouseDown_RADIO(){
	this._checked =3D this.checked;
}var WAMDataType =3D new Object();
WAMDataType.dtbit =3D "bit";
WAMDataType.dtbigint =3D "bigint";
WAMDataType.dtint =3D "int";
WAMDataType.dtsmallint =3D "smallint";
WAMDataType.dttinyint =3D "tinyint";
WAMDataType.dtdecimal =3D "decimal";
WAMDataType.dtnumeric =3D "numeric";
WAMDataType.dtmoney =3D "money";
WAMDataType.dtsmallmoney =3D "smallmoney";
WAMDataType.dtfloat =3D "float";
WAMDataType.dtreal =3D "real";
WAMDataType.dtdatetime =3D "datetime";
WAMDataType.dtsmalldatetime =3D "smalldatetime";
WAMDataType.dtcursor =3D "cursor";
WAMDataType.dttimestamp =3D "timestamp";
WAMDataType.dtchar =3D "char";
WAMDataType.dtvarchar =3D "varchar";
WAMDataType.dttext =3D "text";
WAMDataType.dtnchar =3D "nchar";
WAMDataType.dtnvarchar =3D "nvarchar";
WAMDataType.dtntext =3D "ntext";
WAMDataType.dimage =3D "image";

var WAMDomain =3D new Object();
WAMDomain.wamdate =3D "wamdate";
WAMDomain.wamtime =3D "wamtime";
WAMDomain.wamexternalimage =3D "wamexternalimage";
WAMDomain.wamhierarchical1 =3D "wamhierarchical1";
WAMDomain.wamhierarchical2 =3D "wamhierarchical2";
WAMDomain.wammoment =3D "wammoment";
WAMDomain.wamemail =3D "wamemail";
WAMDomain.wamurl =3D "wamurl";
WAMDomain.wamrange =3D "wamrange";

function invalidValue(){
	return "_invalid_value_";
}

function validateGeneric(strDataType, strDomain, varVal, intLen, =
intPrec, intDecs){
	var newVal;
	switch (strDataType){
		case WAMDataType.dtbit:
			newVal =3D validateBit(varVal); break;
		case WAMDataType.dtbigint:
			newVal =3D validateBigint(varVal); break;
		case WAMDataType.dtint:
			newVal =3D validateInt(varVal); break;
		case WAMDataType.dtsmallint:
			newVal =3D validateSmallint(varVal); break;
		case WAMDataType.dttinyint:
			newVal =3D validateTinyint(varVal); break;
		case WAMDataType.dtdecimal:
			newVal =3D validateDecimal(varVal, intPrec, intDecs); break;
		case WAMDataType.dtnumeric:
			newVal =3D validateNumeric(varVal); break;
		case WAMDataType.dtmoney:
			newVal =3D validateMoney(varVal, intPrec, intDecs); break;
		case WAMDataType.dtsmallmoney:
			newVal =3D validateSmallmoney(varVal); break;
		case WAMDataType.dtfloat:
			newVal =3D validateFloat(varVal); break;
		case WAMDataType.dtreal:
			newVal =3D validateReal(varVal); break;
		case WAMDataType.dtdatetime:
			newVal =3D validateDatetime(varVal, strDomain); break;
		case WAMDataType.dtsmalldatetme:
			newVal =3D validateSmalldatetime(varVal, strDomain); break;
		case WAMDataType.dtchar:
		case WAMDataType.dtnchar:
			newVal =3D validateChar(varVal, strDomain, intLen); break;
		case WAMDataType.dtvarchar:
		case WAMDataType.dtnvarchar:
			newVal =3D validateVarchar(varVal, strDomain, intLen); break;
		case WAMDataType.dttext:
			newVal =3D validateText(varVal, strDomain, 2147483647); break;
		case WAMDataType.dtntext:
			newVal =3D validateNText(varVal, strDomain, 1073741823); break;
		default:
			alert("Unknown type code at validateGeneric.");
			newVal =3D invalidValue();
			break;
	}
	return newVal;
}



function validateBit(val){
	if (isEmpty(val)) return val;
	if (isNaN(val) || (val !=3D true && val !=3D false) || (val !=3D 1 && =
val !=3D 0)){
		Error.setError("TYPBADBOOL");
		return invalidValue()
	}
	return val;
}

function validateBigint(val){
	if (isEmpty(val)) return val;
	if (isNaN(val)){
		Error.setError("TYPBADINT");
		return invalidValue();
	}
	if (val.toString().indexOf(".", 0) !=3D -1){
		Error.setError("TYPBADINT");
		return invalidValue()
	}
	if (val < -9223372036854775808 || val > 9223372036854775807){
		Error.setError("TYPINTRNG");
		return invalidValue();
	}
	return val;
}

function validateInt(val){
	if (isEmpty(val)) return val;
	if (isNaN(val)){
		Error.setError("TYPBADINT");
		return invalidValue();
	}
	if (val.toString().indexOf(".", 0) !=3D -1){
		Error.setError("TYPBADINT");
		return invalidValue()
	}
	if (val < -2147483648 || val > 2147483647){
		Error.setError("TYPINTRNG");
		return invalidValue();
	}
	return val;
}

function validateSmallint(val){
	if (isEmpty(val)) return val;
	if (isNaN(val)){
		Error.setError("TYPBADINT");
		return invalidValue();
	}
	if (val.toString().indexOf(".", 0) !=3D -1){
		Error.setError("TYPBADINT");
		return invalidValue()
	}
	if (val < -32768 || val > 32767){
		Error.setError("TYPSMIRNG");
		return invalidValue();
	}
	return val;
}

function validateTinyint(val){
	if (isEmpty(val)) return val;
	if (isNaN(val)){
		Error.setError("TYPBADINT");
		return invalidValue();
	}
	if (val.toString().indexOf(".", 0) !=3D -1){
		Error.setError("TYPBADINT");
		return invalidValue()
	}
	if (val < 0 || val > 255){
		Error.setError("TYPTNIRNG");
		return invalidValue();
	}
	return val;
}

function validateDecimal(val, intPrec, intDecs){
	var num;
	if (isEmpty(val)) return val;
	val =3D val.replace(/ /g, "");
	if (isNaN(val)){
		Error.setError("TYPBADDEC");
		return invalidValue();
	}
	if (isNull(intDecs)){
		return val;
	} else {
		num =3D new Number(val);
		val =3D formatNumber(num.round(intDecs), intDecs);
	}
	return val;
}

function validateNumeric(val){
	if (isEmpty(val)) return val;
	if (isNaN(val)){
		Error.setError("TYPBADNUM");
		return invalidValue();
	}
	return val;
}

function validateMoney(val, intLen/*Precision*/, intDecs/*Scale*/){
	if (isEmpty(val)) return val;
	if (true/*sis_EuroEnabled*/) return validateEUROMoney(val, intLen, =
intDecs);
/*
put replaceChar(val,"$",".") into val
put dropChar(val,space) into val
put the value of val into val
if val is not a number then
setError "TYPBADMONY"
return invalidValue()
end if
return replaceChar(formatNumber(val,"###' '###' '###.",true),".","$")
*/
}

function validateSmallmoney(val, intLen/*Precision*/, intDecs/*Scale*/){
	return validateMoney(val, intLen, intDecs);
}

function validateEUROMoney(val, intLen, intDecs){
	var EUROTax =3D 200.482;

	val =3D val+"";
	if (val.charAt(val.length-1).toLowerCase() =3D=3D "e"){
		val =3D val.replace(/,/, ".");
		val =3D val.replace(/e/i, "");
		if (isNaN(val)){
			Error.setError("TYPBADMONY");
			return invalidValue();
		}
		val =3D Math.round(val * EUROTax)
	} else {
		val =3D val.replace(/\$/, ".");
		val =3D val.replace(/ /g,"");
		if (isNaN(val)){
			Error.setError("TYPBADMONY");
			return invalidValue();
		}
		val =3D new Number(val);
	}
	val =3D val.toMoney(2);
	return val;
}

function validateFloat(val){
	return validateNumeric(val);
}

function validateReal(val){
	return validateNumeric(val);
}

function validateWAMDate(val, domain){
	var dt; var tYear;

	if (val =3D=3D "h" || val =3D=3D "hoje" || isEmpty(val)){
		var dt =3D new Date();
	} else {
		val =3D (val+"").replace(/ |\.|,/g, "-");
		// --- dd-mm
		if (validMask(val, "^[0-9]{1,2}-[0-9]{1,2}$")){
			var dt =3D new Date();
			dt.setDate(1); dt.setMonth(0);
			dt.setMonth(Math.ceil(val.substr(val.indexOf("-")+1))-1);
			dt.setDate(Math.ceil(val.substr(0,val.indexOf("-"))));
		} else {
			// --- dd-mm-yyyy
			if (validMask(val, "^[0-9]{1,2}-[0-9]{1,2}-[0-9]{1,4}$")){
				var dt =3D new Date();
				tYear =3D Math.ceil(val.substr(val.lastIndexOf("-")+1))
				if (tYear < 1000) tYear+=3D2000;
				dt.setDate(1); dt.setMonth(0);
				dt.setFullYear(tYear);
				dt.setMonth(Math.ceil(val.substr(val.indexOf("-")+1, =
val.lastIndexOf("-")-val.indexOf("-")-1))-1);
				dt.setDate(Math.ceil(val.substr(0,val.indexOf("-"))));
			} else {
				// --- dd
				if (!isNaN(val)){
					var dt =3D new Date();
					dt.setDate(Math.ceil(val));
					if (dt.toString() =3D=3D "NaN"){
						Error.setError("TYPBADDATE");
						Error.setMacro("D", (new Date()).toHTMLFormat(domain));
						return invalidValue();
					}
					if (dt.getFullYear() > 9999){
						Error.setError("TYPBADDATE");
						Error.setMacro("D", (new Date()).toHTMLFormat(domain));
						return invalidValue();
					}
				} else {
					Error.setError("TYPBADDATE");
					Error.setMacro("D", (new Date()).toHTMLFormat(domain));
					return invalidValue();
				}
			}
		}
	}
	return dt.toHTMLFormat(domain);
}

function validateWAMTime(val, domain){
	var dt;

	if (val =3D=3D "a" || val =3D=3D "agora" || isEmpty(val)){
		var dt =3D new Date();
	} else {
		val =3D val.replace(/ |\.|,/g, ":");
		// --- hh:mm
		if (validMask(val, "^[0-9]{1,2}:[0-9]{1,2}$")){
			var dt =3D new Date();
			dt.setHours(Math.ceil(val.substr(0,val.indexOf(":"))));
			dt.setMinutes(Math.ceil(val.substr(val.indexOf(":")+1))-1);
		} else {
			// --- hh:mm:ss
			if (validMask(val, "^[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}$")){
				var dt =3D new Date();
				dt.setHours(Math.ceil(val.substr(0,val.indexOf(":"))));
				dt.setMinutes(Math.ceil(val.substr(val.indexOf(":")+1, =
val.lastIndexOf(":")-val.indexOf(":")-1)));
				dt.setSeconds(Math.ceil(val.substr(val.lastIndexOf(":")+1)));
			} else {
				// --- hh
				if (!isNaN(val)){
					var dt =3D new Date();
					dt.setHours(Math.ceil(val));
				} else {
					Error.setError("TYPBADDATE");
					Error.setMacro("D", (new Date()).toHTMLFormat(domain));
					return invalidValue();
				}
			}
		}
	}
	return dt.toHTMLFormat(domain);
}

function validateDatetime(val, domain){
	var iSpace;

	if (isEmpty(val)) return val;
	switch (domain){
		case WAMDomain.wamdate:
			return validateWAMDate(val, domain);
			break;
		case WAMDomain.wamtime:
			return validateWAMTime(val, domain);
			break;
		default:
			iSpace =3D val.indexOf(" ");
			if (iSpace =3D=3D -1) iSpace =3D val.length;
			strDate =3D validateWAMDate(val.substr(0, iSpace));
			if (strDate =3D=3D invalidValue()){
				return invalidValue();
			}
			strTime =3D validateWAMTime(val.substr(iSpace+1));
			if (strTime =3D=3D invalidValue()){
				return invalidValue();
			}
			return strDate.substr(0,10)+" "+strTime.substr(11);
			break;
	}
}

function validateSmalldatetime(val, domain){
	return validateDatetime(val, domain);
}

function validateTimestamp(val){
}

function validateChar(val, domain, intLen){
	return validateVarchar(val, domain, intLen);
}

function validateVarchar(val, domain, intLen){
	if (isEmpty(val) || isUndefined(val)) return val;
	switch (domain){
		case WAMDomain.wammoment:
			return validateWAMMoment(val);
			break;
		case WAMDomain.wamemail:
			return validateWAMEmail(val);
			break;
		case WAMDomain.wamurl:
			return validateWAMUrl(val);
			break;
	}
	if (!isUndefined(intLen)){
		if (val.length > intLen){
			Error.setError("TYPTOOLONG");
			Error.setMacro("N", intLen);
			return invalidValue();
		}
	}
	return val;
}

function validateText(val, domain, intLen){
	if (isEmpty(val) || isUndefined(val)) return val;
	if (val.length > intLen){
		Error.setError("TYPTOOLONG");
		Error.setMacro("N", intLen);
		return invalidValue();
	}
	return val;
}

function validateNText(val, domain, intLen){
	return validateText(val, domain, intLen);
}

function validateWAMEmail(val){
	if (isEmpty(val)) return val;
	var emailMask =3D =
"^[A-Za-z0-9!#\$%&'\*\+\-/=3D\?\^_`{|}~]+(\.[A-Za-z0-9!#\$%&'\*\+\-/=3D\?=
\^_`{|}~]+)*\.?@[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9](\.[A-Za-z0-9][A-Za-z=
0-9\-]*[A-Za-z0-9])+$";

	if (validMask(val, emailMask)) return val;
	else {
		Error.setError("TYPBADMAIL");
		return invalidValue();
	}
}

function validateWAMUrl(val){
	if (isEmpty(val)) return val;
	var urlMask =3D "^[hH][tT][tT][pP]://.*$";

	if (validMask(val, urlMask)) return val;
	else {
		Error.setError("TYPBADURL");
		return invalidValue();
	}
}

function validateWAMMoment(val){
	return validateConvertWAMMoment(true/*VALIDATE*/, val);
}

function validateConvertWAMMoment(VALIDATE, val){
	var dt, dtNew, theYea, theMon, theCen, theDec;
	var strCen =3D strDec =3D strYea =3D ""; var numCen, numDec, numMonth; =
var isCentury, isDecade;
	var w1, w2; var arWord; var newVal; var p;
	var oldVal;

	if (isEmpty(val)){
		if (VALIDATE) return val; // --- VALIDATE
		else return nullValue();
	}
	// --- Srips seps and separate numbers
	oldVal =3D val; // --- For later use
	val =3D stripWAMMoment(val);

	// --- Set defaults
	dt =3D new Date();
	theYea =3D dt.getFullYear();
	theMon =3D dt.getMonth() + 1;
	theCen =3D (theYea / 100) + 1;
	theDec =3D ((theYea % 100) / 10) * 10;

	// --- Try first word for century
	w1 =3D val.getWord(1);
	isCentury =3D isCenturyPO(w1);
	if (isCentury){
		// --- First word is century
		w2 =3D val.getWord(2);
		// --- Second word empty =3D> Default century
		if (isEmpty(w2)){
			if (VALIDATE) return centuryPO(theCen); // --- VALIDATE
			else return packedWAMMoment(theCen, null, null, null, null);
		}
		// --- Second word integer =3D> Century
		if (!isNaN(w2)){
			// --- IF CENTURY < 100 =3D> OK
			if (w2 < 100){
				val =3D val.deleteWord(1, 2);
				if (VALIDATE) strCen =3D centuryPO(w2); // --- VALIDATE
				else strCen =3D "there-is-century";
				numCen =3D w2;
			}
		}
		if (isEmpty(strCen)){
			// --- Second word is wrong
			Error.setError("TYPBADMOMT")
			return invalidValue();
		}
	}

	// --- Try first/third word for decade
	w1 =3D val.getWord(1);
	isDecade =3D isDecadePO(w1);
	if (isDecade){
		w2 =3D val.getWord(2);
		// -- Second word empty =3D> Default decade
		if (isEmpty(w2)){
			strDec =3D decadePO(theDec);
			numDec =3D theDec;
			// --- Second word integer =3D> Decade
		} else if (!isNaN(w2)){
			// --- IF DECADE IN (0,10,20..., 90) =3D> OK
			if (w2 % 10 =3D=3D 0 && w2 <=3D 90){
				if (w2 =3D=3D 0) w2 =3D "0";
				strDec =3D decadePO(w2);
				numDec =3D w2;
			}
		}
		if (isEmpty(strDec)){
			// --- Second word is wrong
			Error.setError("TYPBADMOMT");
			return invalidValue();
		}
	}

	if (!isEmpty(strCen)){
		if (!isEmpty(strDec)){
			if ((numCen !=3D theCen)){
				if (VALIDATE) return strCen+", "+strDec; // --- VALIDATE
				else return packedWAMMoment(numCen, numDec, null, null, null);
			} else {
				if (VALIDATE) return strDec; // --- VALIDATE
				else return packedWAMMoment(theCen, numDec, null, null, null);
			}
		} else {
			if (VALIDATE) return strCen; // --- VALIDATE
			else return packedWAMMoment(numCen, null, null, null, null);
		}
	} else { // --- strCen is empty
		if (!isEmpty(strDec)){
			if (VALIDATE) return strDec; // --- VALIDATE
			else return packedWAMMoment(theCen, numDec, null, null, null);
		} else {
			// --- Continue
		}
	}

	// --- Here both cenStr and decStr are empty

	// --- Try first word for a year
	w1 =3D val.getWord(1);
	isYear =3D isYearPO(w1);
	if (isYear){ // --- First word is a year
		w2 =3D val.getWord(2);
		// --- Second word empty =3D> Default year
		if (isEmpty(w2)){
			if (VALIDATE) return yearPO(theYea); // --- VALIDATE
			else return packedWAMMoment(null, null, theYea, null, null);
		}
		// --- Second word integer =3D> Year
		if (!isNaN(w2)){
			if (VALIDATE) return yearPO(w2,"noDefaultCentury"); // --- VALIDATE
			else return packedWAMMoment(null, null, year4(w2,"noDefaultCentury"), =
null, null);
		}
		// --- Second word is wrong
		Error.setError("TYPBADMOMT")
		return invalidValue()
	}

	// --- Try first word for a month
	w1 =3D val.getWord(1);
	numMonth =3D isMonthPO(w1);
	if (numMonth > 0){ // --- First word is a month
		w2 =3D val.getWord(2);
		// --- Second word empty =3D> Default year
		if (isEmpty(w2)){
			if (VALIDATE) return month3PO(numMonth)+" "+year4(theYea); // --- =
VALIDATE
			else return packedWAMMoment(null, null, year4(theYea), numMonth, =
null);
		}
		// --- Second word integer =3D> Year
		if (!isNaN(w2)){
			if (VALIDATE) return month3PO(numMonth)+" "+year4(w2); // --- =
VALIDATE
			else return packedWAMMoment(null, null, year4(w2), numMonth, null);
		}
		// --- Second word is wrong
		Error.setError("TYPBADMOMT");
		return invalidValue();
	}

	// --- Try validate as year
	if (!isNaN(val)){
		if (val >=3D 1000){
			if (VALIDATE) return yearPO(val); // --- VALIDATE
			else return packedWAMMoment(null, null, year4(val), null, null);
		}
	}

	// --- Try validate as date
	val =3D oldVal;
	if (VALIDATE) newVal =3D validateDatetime(val, WAMDomain.wamdate);
	else newVal =3D convertDatetime(val, WAMDomain.wamdate);
	if (!Error.hasErrors()){
		if (VALIDATE) return newVal; // --- VALIDATE
		else {
			return packedWAMMoment(null, null, newVal.getFullYear(), =
newVal.getMonth()+1, newVal.getDate());
		}
	}
	Error.clear();

	// --- Try validate as month/year
	p =3D val.indexOf("/");
	if (p !=3D -1){
		dtNew =3D val.substr(0, p+1)+"1/"+val.substr(p+1);
		dtNew =3D Date.parse(dtNew);
		if (!isNaN(dtNew)){
			dtNew =3D new Date(dtNew);
			if (VALIDATE) return month3PO(dtNew.getMonth()+1)+dtNew.getDate(); // =
--- VALIDATE
			else return packedWAMMoment(null, null, newVal.getFullYear(), =
newVal.getMonth()+1);
		}
	}
	Error.setError("TYPBADMOMT");
	return invalidValue();
}

function stripWAMMoment(val){
	var i;

	val =3D val.replace(/\.|,/g, " ")+""; // --- convert to string
	for (i =3D val.length; i > 2; i--){
		if (isDigit(val.charAt(i))){
			if (!isDigit(val.charAt(i-1))){
				val =3D val.substr(0,i)+" "+val.substr(i);
			}
		}
	}
	return val;
}

function centuryPO(centuryNum){
	return "S=E9c. "+Number(centuryNum);
}

function isCenturyPO(centuryWord){
	return "S=C9CULO".indexOf(centuryWord.toUpperCase())=3D=3D0 && =
centuryWord.length>=3D3;
}

function decadePO(decadeNum){
	return "Anos "+Number(decadeNum);
}

function isDecadePO(decadeWord){
	return decadeWord.toUpperCase() =3D=3D "ANOS";
}

function yearPO(yearNum, noDefaultCentury){
	return "Ano "+year4(yearNum,noDefaultCentury);
}

function isYearPO(yearWord){
	return "ANO".indexOf(yearWord.toUpperCase())=3D=3D0;
}

function year4(yearNum, noDefaultCentury){
	var i;

	if (!isNaN(yearNum)){
		if (yearNum < 0) return "ANOaC?";
		if (yearNum < 100 && yearNum.charAt(0) !=3D "0" && =
isUndefined(noDefaultCentury)){
			return (1900+Number(yearNum));
		} else {
			yearNum =3D yearNum % 10000;
			return yearNum.toString().formatNum("0000");
		}
	}
	return "ANO?";
}

function monthPO(monthNum){
	var arMonthsPO =3D new Array("Janeiro", "Fevereiro", "Mar=E7o", =
"Abril",
						"Maio", "Junho", "Julho", "Agosto",
						"Setembro", "Outubro", "Novembro", "Dezembro");

	if (monthNum < 1 || 12 < monthNum){
		return "MES"+monthNum+"?";
	} else {
		return arMonthsPO[monthNum-1];
	}
}

function month3PO(monthNum){
	if (monthNum < 1 || 12 < monthNum){
		return "MES"+monthNum+"?";
	} else {
		return monthPO(monthNum).substr(0, 3);
	}
}

function isMonthPO(monthWord){
	var x;

	x =3D ("JANEIRO  FEVEREIROMAR=C7O    ABRIL    MAIO     JUNHO    "+
		"JULHO    AGOSTO   SETEMBRO OUTUBRO  NOVMEBRO =
DEZEMBRO").indexOf(monthWord.toUpperCase())+9;
	if (x % 9 =3D=3D 0)	return x / 9;
	else return 0;
}

function packedWAMMoment(){
	return "";
}/*hierMenus.js
* by Peter Belesis. v3.10.1 000630
* Copyright (c) 2000 internet.com Corp. All Rights Reserved.
* Originally published and documented at http://www.dhtmlab.com/
* You may use this code on a public Web site only if this entire
* copyright notice appears unchanged and you publicly display
* on the Web page a link to http://www.dhtmlab.com/.
*
* Contact pbel@websentric.com for all other uses.
*/

function menuPopUp(){return};
function menuPopDown(){return};

var objWAMMenu =3D new Object();

var isLoaded =3D false;
function MenuInit(strMenuType, strImageSrc, strUser, strListSchema, =
strListName, strListTableSchema, strListTable, strCriterionDescription, =
strAction, elForm, intMenusCount){
	var m;
=09
	if (isUndefined(intMenusCount)) intMenusCount =3D 1;
=09
	objWAMMenu.menuType =3D strMenuType;
	objWAMMenu.imgSrc =3D strImageSrc;
	objWAMMenu.user =3D strUser;
	objWAMMenu.schema =3D strListSchema;
	objWAMMenu.name =3D strListName;
	objWAMMenu.listTableSchema =3D strListTableSchema;
	objWAMMenu.listTableName =3D strListTable;
	objWAMMenu.criterionDescription =3D strCriterionDescription;
	objWAMMenu.action =3D strAction;
	objWAMMenu.form =3D elForm;

	//---
	for (m=3D1; m<=3DintMenusCount; m++)
		eval("var arMenu" + m);
	//---

	NS4 =3D (document.layers);
	IE4 =3D (document.all);
	ver4 =3D (NS4 || IE4);
	IE5 =3D (IE4 && navigator.appVersion.indexOf("5.")!=3D-1);
	isMac =3D (navigator.appVersion.indexOf("Mac") !=3D -1);
	isMenu =3D (NS4 || (IE4 && !isMac) || (IE5 && isMac));
=09
	if (!ver4) event=3Dnull;
	curPage=3D1;

	if (isMenu) {
		menuVersion =3D 3;
		menuWidth =3D 120;
		childOverlap =3D 10; //20;
		childOffset =3D 8; // 5;
		perCentOver =3D 2;
		secondsVisible =3D 0; //.5;

		fntCol =3D "#FFFFFF";		//"blue";
		fntSiz =3D "8";			//"10";
		fntBold =3D false;
		fntItal =3D false;
		fntFam =3D "ms sans serif";//"Arial,sans-serif";

		backCol =3D "#63639C";	//"#DDDDDD";
		overCol =3D "#D6D6F7";	//"#FFCCCC";
		overFnt =3D "000000";		//"purple";
//		backCol =3D "#336699";	//"#DDDDDD";
//		overCol =3D "#6699cc";	//"#FFCCCC";
//		overFnt =3D "ffffff";		//"purple";

		borWid =3D 1;	//2;
		borCol =3D "black";
		borSty =3D "solid";
		itemPad =3D 3;

		imgSiz =3D 10;

		separator =3D 1;	//2;
		separatorCol =3D "#000000";	//"black";

		isFrames =3D false;
		navFrLoc =3D "left";     //***********

		keepHilite =3D true;=20
		NSfontOver =3D true;
		clickStart =3D false;
		clickKill =3D true;	//false
	}


	loader =3D (isFrames) ? (NS4) ? parent : parent.document.body : window;
	//loader.onload =3D Menu_startIt;

	//.... Loader substituted by window ....//
	//loader.addToOnLoad(Menu_startIt);

	if(NS4){
		origWidth =3D loader.innerWidth;
		origHeight =3D loader.innerHeight;
		loader.onresize =3D reDo;
	}
	isLoaded =3D false;
	NSresized =3D false;

	if (!window.menuVersion) clickKill =3D keepHilite =3D clickStart =3D =
false;
	if (!window.imgHspace) imgHspace=3D0;

	isWin =3D (navigator.appVersion.indexOf("Win") !=3D -1)

	mSecsVis =3D secondsVisible*1000;
	isRight =3D (window.navFrLoc && navFrLoc =3D=3D "right");
	fullImgSize =3D (imgSiz+(imgHspace*2));
	if(!IE5) {
		imgSuf =3D (isRight) ? ">"  : " ALIGN=3DRIGHT>";
		imgStr =3D "<IMG SRC=3D'" + objWAMMenu.imgSrc + "' WIDTH=3D" + imgSiz =
+ " HEIGHT=3D" + imgSiz +" VSPACE=3D2 HSPACE=3D"+ imgHspace +" =
BORDER=3D0"+ imgSuf;
		if(IE4) imgStr =3D "<SPAN STYLE=3D'height:100%;width:"+ =
(fullImgSize-(isRight?3:0)) +";float:"+ (isRight?"left":"right") =
+";overflow:hidden'>"+ imgStr +"</SPAN>";
	}

	areCreated =3D false;
	menuLoc =3D null;

	initVars();

	window.onerror =3D handleErr;
}


function initVars() {
	if(areCreated) {
		for(i=3D1; i<topCount; i++) {
			cur =3D eval("elMenu"+i);
			clearTimeout(cur.hideTimer);
			cur.hideTimer=3Dnull;
		}
		clearTimeout(allTimer);
	}
	topCount =3D 1;
	areCreated =3D false;
	beingCreated =3D false;
	isOverMenu =3D false;
	currentMenu =3D null;
	allTimer =3D null;
}

function NSunloaded(){
	isLoaded =3D false;
}

function NSloaded(e){
	if (e.target.name =3D=3D mainFrName) {
		initVars();
		Menu_startIt();
	}
}

function IEunloaded() {
	initVars();
	isLoaded =3D false;
	setTimeout("keepTrack()",50)
}

function keepTrack() {
	if (menuLoc.document.readyState =3D=3D "complete") {
		initVars();
		Menu_startIt();
	}
	else {
		setTimeout("keepTrack()",50);
	}
}

function Menu_startIt() {
	isLoaded =3D true;
	if (isFrames) {
		menuLoc =3D eval("parent.frames." + mainFrName);
		if (NS4) {
			loader.captureEvents(Event.LOAD);
			loader.addToOnLoad(NSloaded);
			menuLoc.onunload =3D NSunloaded;
		}
		if (IE4) {
			menuLoc.document.body.onunload =3D IEunloaded;
		}
	}
	else {
		menuLoc =3D window;
	}
	menuLoc.nav =3D nav =3D window;
	if (clickKill) {
		if (NS4) menuLoc.document.captureEvents(Event.MOUSEDOWN);
		menuLoc.document.onmousedown =3D clicked;
	}
	makeTop();  =20
}

function makeTop(){
	beingCreated =3D true;
	if(IE4) {
		topZ =3D 0;
		for (z=3D0;z<menuLoc.document.all.length;z++){
			oldEl =3D menuLoc.document.all(z);
			topZ =3D Math.max(oldEl.style.zIndex,topZ)
		}
	}
	while(eval("window.arMenu" + topCount)) {
		(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
		topCount++;
	}
	//status =3D (topCount-1) + " Hierarchical Menu Trees Created"
	areCreated =3D true;
	beingCreated =3D false;
}

function makeMenuNS(isChild,menuCount,parMenu,parItem) {
	tempArray =3D eval("arMenu" + menuCount);
=09
	if (!isChild) {
		tempWidth =3D tempArray[0] ? tempArray[0] : menuWidth;
		menu =3D makeElement("elMenu" + menuCount,tempWidth,null,null);
	}
	else {
		menu =3D makeElement("elMenu" + menuCount,null,parMenu,null);
	}
	menu.array =3D tempArray;
	menu.setMenuTree =3D setMenuTree;
	menu.setMenuTree(isChild,parMenu);

	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
	=09
		status =3D "Creating Hierarchical Menus: " + menuCount + " / " + =
menu.itemCount;
	=09
		prevItem =3D (menu.itemCount > 1) ? menu.item : null;
		itemName =3D "item" + menuCount + "_" + menu.itemCount;

		menu.item =3D makeElement(itemName,null,null,menu);

		menu.item.prevItem =3D prevItem;
		menu.item.setup =3D itemSetup;
		menu.item.setup(menu.itemCount,menu.array);
		if (menu.item.hasMore) {
			makeMenuNS(true,menuCount + "_" + menu.itemCount,menu,menu.item);
			menu =3D menu.parentMenu;
		}
	}
	menu.lastItem =3D menu.item;
	menu.setup(isChild,parMenu,parItem);
}

function findTree(men){
	foundTree =3D false;
	for(i=3D11;i<men.array.length;i+=3D3){
		if(men.array[i]) {
			foundTree =3D true;
			break;
		}
	}
	return foundTree;
}

function setMenuTree(isChild,parMenu) {
	if (!isChild) {
		this.menuWidth =3D this.array[0] ? this.array[0] : menuWidth;
		this.menuLeft =3D this.array[1];
		this.menuTop =3D this.array[2];
		this.menuFontColor =3D this.array[3] ? this.array[3] : fntCol;
		this.menuFontOver =3D this.array[4] ? this.array[4] : overFnt;
		this.menuBGColor =3D this.array[5] ? this.array[5] : backCol;
		this.menuBGOver =3D this.array[6] ? this.array[6] : overCol;
		this.menuBorCol =3D this.array[7] ? this.array[7] : borCol;
		this.menuSeparatorCol =3D this.array[8] ? this.array[8] : =
separatorCol;
		this.treeParent =3D this;
		this.startChild =3D this;
		this.isTree =3D findTree(this);
	}
	else {
		this.menuWidth =3D parMenu.menuWidth;
		this.menuLeft =3D parMenu.menuLeft;
		this.menuTop =3D parMenu.menuTop;
		this.menuFontColor =3D parMenu.menuFontColor;
		this.menuFontOver =3D parMenu.menuFontOver;
		this.menuBGColor =3D parMenu.menuBGColor;
		this.menuBGOver =3D parMenu.menuBGOver;
		this.menuBorCol =3D parMenu.menuBorCol;
		this.menuSeparatorCol =3D parMenu.menuSeparatorCol;
		this.treeParent =3D parMenu.treeParent;
		this.isTree =3D parMenu.isTree;
	}

	this.maxItems =3D (isChild) ? this.array.length/8 : =
(this.array.length-9)/8;
	//## this.maxItems =3D (isChild) ? this.array.length/3 : =
(this.array.length-9)/3;
	this.hasParent =3D isChild;
	this.setup =3D menuSetup;
	this.itemCount =3D 0;
}

function makeMenuIE(isChild,menuCount,parMenu, arrMenu) {
	//----*
	var el =3D eval("window.document.all.elMenu" + menuCount);
	if (isUndefined(el))
		menu =3D makeElement("elMenu" + menuCount);
	else{
		el.innerHTML =3D "";
		menu =3D el;
	}
	//----*
	=09
	//menu.array =3D eval("arMenu" + menuCount);
	if (isUndefined(arrMenu))
		menu.array =3D eval("arMenu" + menuCount);
	else
		menu.array =3D arrMenu;

	menu.setMenuTree =3D setMenuTree;
	menu.setMenuTree(isChild,parMenu);
	menu.itemStr =3D "";
=09
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		//status =3D "Creating Hierarchical Menus: " + menuCount + " / " + =
menu.itemCount;
		itemName =3D "item" + menuCount + "_" + menu.itemCount;
		//## arrayPointer =3D (isChild) ? (menu.itemCount-1)*3 =
:((menu.itemCount-1)*3)+9;
		arrayPointer =3D (isChild) ? (menu.itemCount-1)*8 =
:((menu.itemCount-1)*8)+9;
		dispText =3D menu.array[arrayPointer];
	=09
		//##
		hasMore =3D menu.array[arrayPointer + 5];
		showMore =3D menu.array[arrayPointer + 6];

		if(IE5) {
			newSpan =3D menuLoc.document.createElement("SPAN");
			with(newSpan) {
				id =3D itemName;
				with(style) {
					width =3D (menu.menuWidth-(borWid*2));
					fontSize =3D fntSiz + "pt";
					fontWeight =3D (fntBold) ? "bold" : "normal";
					fontStyle =3D (fntItal) ? "italic" : "normal";
					fontFamily =3D fntFam;
					padding =3D itemPad;
					borderBottomWidth =3D separator + "px";
					borderBottomStyle =3D "solid";
				}
				innerHTML =3D dispText;
			}
=09
			newBreak =3D menuLoc.document.createElement("BR");
			menu.appendChild(newSpan);
			menu.appendChild(newBreak);
			if(hasMore) {
				newImage =3D menuLoc.document.createElement("IMAGE");
				with(newImage){
					src =3D objWAMMenu.imgSrc;
					with(style) {
						position =3D "absolute";
						width =3D imgSiz;
						height =3D imgSiz;
						left =3D (isRight) ? itemPad : (newSpan.style.pixelWidth - itemPad =
- imgSiz);
						top =3D newSpan.offsetTop + itemPad + (isMac ? 0 : 2);
					}
				}
				newSpan.appendChild(newImage);
			}
		}
		else {
			htmStr =3D (hasMore) ? imgStr + dispText : dispText;
			menu.itemStr +=3D "<SPAN ID=3D" + itemName + " =
STYLE=3D\"cursor:hand;width:" + (menu.menuWidth-(borWid*2)) + "\">" + =
htmStr + "</SPAN><BR>";
		}
		//if (hasMore) {
		if (hasMore && showMore){
			makeMenuIE(true,menuCount + "_" + menu.itemCount,menu);
			menu =3D menu.parentMenu;
		}
	}

	if(!IE5) menu.innerHTML =3D menu.itemStr;

	itemColl =3D menu.children.tags("SPAN");
	for (i=3D0; i<itemColl.length; i++) {
		it =3D itemColl(i);
		it.setup =3D itemSetup;
		it.setup(i+1,menu.array);
	}
	menu.lastItem =3D itemColl(itemColl.length-1);
	menu.setup(isChild,parMenu);
}

function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
	if (NS4) {
		if (whichWidth) {
			elWidth =3D whichWidth;
		}
		else {
			elWidth =3D (whichContainer) ? whichContainer.menuWidth : =
whichParent.menuWidth;
			if (whichContainer) elWidth =3D elWidth-(borWid*2)-(itemPad*2);
		}
		if (!whichContainer) whichContainer =3D menuLoc;
		eval(whichEl + "=3D new Layer(elWidth,whichContainer)");
	}
	else {
		if (IE5) {
			newDiv =3D menuLoc.document.createElement("DIV");
			newDiv.style.position =3D "absolute";
			newDiv.id =3D whichEl;
			menuLoc.document.body.appendChild(newDiv);
		}
		else {
			elStr =3D "<DIV ID=3D" + whichEl + " =
STYLE=3D'position:absolute'></DIV>";
			menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
		}
		if (isFrames) eval(whichEl + "=3D menuLoc." + whichEl);
	}
	return eval(whichEl);
}

function itemSetup(whichItem,whichArray) {
	this.onmouseover =3D itemOver;
	this.onmouseout =3D itemOut;
	//....
	this.createSubMenu =3D itemCreateSubMenu;
	this.loadSubMenu =3D itemLoadSubMenu;
	this.showSubMenu =3D itemShowSubMenu;
	//....
	this.container =3D (NS4) ? this.parentLayer : this.parentElement;

	arrayPointer =3D (this.container.hasParent) ? (whichItem-1)*8 : =
((whichItem-1)*8)+9;
	//## arrayPointer =3D (this.container.hasParent) ? (whichItem-1)*3 : =
((whichItem-1)*3)+9;
=09
	this.dispText =3D whichArray[arrayPointer];
	this.schema =3D whichArray[arrayPointer + 1];
	this.name =3D whichArray[arrayPointer + 2];
	this.join =3D whichArray[arrayPointer + 3];
	this.relationshipType =3D whichArray[arrayPointer + 4]; // --- MASTER =
or DETAIL or empty (column)
	this.hasMore =3D whichArray[arrayPointer + 5];
	this.showMore =3D whichArray[arrayPointer + 6];
	this.linkText =3D whichArray[arrayPointer + 7];

	//if (IE4 && this.hasMore) {
	if (IE4 && this.hasMore && this.showMore) {
		this.child =3D eval("elMenu" + this.id.substr(4));
		this.child.parentMenu =3D this.container;
		this.child.parentItem =3D this;
	}
=09
	//....
	if (this.name =3D=3D "" && this.linkText =3D=3D ""){
	} else if (this.linkText){
		this.onclick =3D linkIt;
		this.style.cursor =3D "hand";
	} else if (!this.hasMore){
		this.onclick =3D itemClick;
		this.style.cursor =3D "hand";
	} else {
		this.style.cursor =3D "hand";
	}
	//....
=09
	/*
	if (this.linkText) {
		if (NS4) {
			this.captureEvents(Event.MOUSEUP)
			this.onmouseup =3D linkIt;
		}
		else {
			this.onclick =3D linkIt;
			this.style.cursor =3D "hand";
		}
	}
	*/

	if (NS4) {
		htmStr =3D this.dispText;
		if (fntBold) htmStr =3D htmStr.bold();
		if (fntItal) htmStr =3D htmStr.italics();

		htmStr =3D "<FONT FACE=3D'" + fntFam + "' POINT-SIZE=3D" + fntSiz + =
">" + htmStr+ "</FONT>";
		this.htmStrOver =3D htmStr.fontcolor(this.container.menuFontOver);
		this.htmStr =3D htmStr.fontcolor(this.container.menuFontColor);
		if(this.hasMore) {
			this.document.write(imgStr);
			this.document.close();
		}
		this.visibility =3D "inherit";
		this.bgColor =3D this.container.menuBGColor;

		if (whichItem =3D=3D 1) {
			this.top =3D borWid + itemPad;
		}
		else {
			this.top =3D this.prevItem.top + this.prevItem.clip.height + =
separator;
		}
		this.left =3D borWid + itemPad;
		this.clip.top =3D this.clip.left =3D -itemPad;
		this.clip.right =3D this.container.menuWidth-(borWid*2)-itemPad;
		maxTxtWidth =3D this.container.menuWidth-(borWid*2)-(itemPad*2);
		if (this.container.isTree) maxTxtWidth-=3D(fullImgSize);

		this.txtLyrOff =3D new Layer(maxTxtWidth,this);
		if (isRight && this.container.isTree) this.txtLyrOff.left =3D =
fullImgSize;
		this.txtLyrOff.document.write(this.htmStr);
		this.txtLyrOff.document.close();
		this.txtLyrOff.visibility =3D "inherit";

		this.clip.bottom =3D this.txtLyrOff.document.height+itemPad;

		this.txtLyrOn =3D new Layer(maxTxtWidth,this);
		if (isRight && this.container.isTree) this.txtLyrOn.left =3D =
fullImgSize;
		this.txtLyrOn.document.write(this.htmStrOver);
		this.txtLyrOn.document.close();
		this.txtLyrOn.visibility =3D "hide";

		this.dummyLyr =3D new Layer(100,this);
		this.dummyLyr.left =3D this.dummyLyr.top =3D -itemPad;
		this.dummyLyr.clip.width =3D this.clip.width;
		this.dummyLyr.clip.height =3D this.clip.height;
		this.dummyLyr.visibility =3D "inherit";
	}
	else {
		with (this.style) {
			if(!IE5) {
				fontSize =3D fntSiz + "pt";
				fontWeight =3D (fntBold) ? "bold" : "normal";
				fontStyle =3D   (fntItal) ? "italic" : "normal";
				fontFamily =3D fntFam;
				padding =3D itemPad;
				borderBottomWidth =3D separator + "px";
				borderBottomStyle =3D "solid";
			}
			if (this.container.isTree && (IE5 || (!IE5 && !this.hasMore))) {
				//**** if (isRight && !this.hasMore) paddingLeft =3D =
parseInt(padding)+imgSiz;
				if (isRight) paddingLeft =3D itemPad+fullImgSize;
				else paddingRight =3D itemPad+fullImgSize;
			}
			color =3D this.container.menuFontColor;
			borderBottomColor =3D this.container.menuSeparatorCol;
			backgroundColor =3D this.container.menuBGColor;
		}
	}
}  =20

function menuSetup(hasParent,openCont,openItem) {
	this.onmouseover =3D menuOver;
	this.onmouseout =3D menuOut;
=09
	this.showIt =3D showIt;
	this.keepInWindow =3D keepInWindow;
	this.hideTree =3D hideTree
	this.hideParents =3D hideParents;
	this.hideChildren =3D hideChildren;
	this.hideTop =3D hideTop;
	this.hasChildVisible =3D false;
	this.isOn =3D false;
	this.hideTimer =3D null;

	this.childOverlap =3D (perCentOver !=3D null) ? ((perCentOver/100) * =
this.menuWidth) : childOverlap;
	this.currentItem =3D null;
	this.hideSelf =3D hideSelf;
=09
	this.has2JoinsToTable =3D menuHas2JoinsToTable;
	=09
	if (hasParent) {
		this.hasParent =3D true;
		this.parentMenu =3D openCont;
		if (NS4) {
			this.parentItem =3D openItem;
			this.parentItem.child =3D this;
		}
	}
	else {
		this.hasParent =3D false;
	}

	if (NS4) {
		this.bgColor =3D this.menuBorCol;
		this.fullHeight =3D this.lastItem.top + this.lastItem.clip.bottom + =
borWid;
		this.clip.right =3D this.menuWidth;
		this.clip.bottom =3D this.fullHeight;
	}
	else {
		with (this.style) {
			width =3D this.menuWidth;
			borderWidth =3D borWid;
			borderColor =3D this.menuBorCol;
			borderStyle =3D borSty;
			zIndex =3D topZ;
		}
		this.lastItem.style.border=3D"";
		this.fullHeight =3D this.offsetHeight;
		if(isMac)this.style.pixelHeight =3D this.fullHeight;
		this.fullHeight =3D this.scrollHeight;
		this.showIt(false);
		this.onselectstart =3D cancelSelect;
		this.moveTo =3D moveTo;
		this.moveTo(0,0);
	}
}

function menuPopUp(menuName,e,startMenu){
	if (!WAM_MENU_STARTED){
		initMenuAddCols();
		Menu_startIt();
	}
	if (NS4 && NSresized) Menu_startIt();
	if (!isLoaded) return;
	linkEl =3D (NS4) ? e.target : event.srcElement;
	if (clickStart) linkEl.onclick =3D popMenu;
	if (!beingCreated && !areCreated) Menu_startIt();
	if (startMenu){
		(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
	}
	linkEl.menuName =3D menuName;  =20
	if (!clickStart) popMenu(e);
}

function popMenu(e){
	if (!isLoaded || !areCreated) return true;

	eType =3D (NS4) ? e.type : event.type;
	if (clickStart && eType !=3D "click") return true;
	hideAll();

	linkEl =3D (NS4) ? e.target : event.srcElement;
=09
	currentMenu =3D eval(linkEl.menuName);
	currentMenu.hasParent =3D false;
	currentMenu.treeParent.startChild =3D currentMenu;
=09
	if (IE4) menuLocBod =3D menuLoc.document.body;
	if (!isFrames) {
		xPos =3D (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? =
e.pageX : (event.clientX + menuLocBod.scrollLeft);
		yPos =3D (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY =
: (event.clientY + menuLocBod.scrollTop);
	}
	else {
		switch (navFrLoc) {
			case "left":
				xPos =3D (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? =
menuLoc.pageXOffset : menuLocBod.scrollLeft;
				yPos =3D (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? =
(e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + =
menuLocBod.scrollTop;
				break;
			case "top":
				xPos =3D (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? =
(e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + =
menuLocBod.scrollLeft;
				yPos =3D (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? =
menuLoc.pageYOffset : menuLocBod.scrollTop;
				break;
			case "bottom":
				xPos =3D (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? =
(e.pageX-pageXOffset)+menuLoc.pageXOffset : event.clientX + =
menuLocBod.scrollLeft;
				yPos =3D (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? =
menuLoc.pageYOffset+menuLoc.innerHeight : menuLocBod.scrollTop + =
menuLocBod.clientHeight;
				break;
			case "right":
				xPos =3D (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? =
menuLoc.pageXOffset+menuLoc.innerWidth : =
menuLocBod.scrollLeft+menuLocBod.clientWidth;
				yPos =3D (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? =
(e.pageY-pageYOffset)+menuLoc.pageYOffset : event.clientY + =
menuLocBod.scrollTop;
				break;
		}
	}

	currentMenu.moveTo(xPos,yPos);
	currentMenu.keepInWindow()
	currentMenu.isOn =3D true;
	currentMenu.showIt(true);

	return false;
}

function menuOver(e) {
	this.isOn =3D true;
	isOverMenu =3D true;
	currentMenu =3D this;
	if (this.hideTimer) clearTimeout(this.hideTimer);
}

function menuOut() {
	if (IE4) {
		theEvent =3D menuLoc.event;
		if (theEvent.srcElement.contains(theEvent.toElement)) return;
	}
	this.isOn =3D false;
	isOverMenu =3D false;

	menuLoc.status =3D "";
	if (!clickKill) allTimer =3D setTimeout("currentMenu.hideTree()",10); =20
}


function menuHas2JoinsToTable(strSchema, strName){
	var i =3D 0;
	var nJoins =3D 0;
=09
	itemColl =3D this.children.tags("SPAN");
	while (i<itemColl.length && nJoins<2){
		it =3D itemColl(i);
		if (it.schema=3D=3DstrSchema && it.name=3D=3DstrName){
			nJoins++;
		}
		i++;	=09
	}

	if (nJoins<2)
		return false;
	else
		return true;
}


function itemClick(){
	var itemCol =3D currentMenu.currentItem;
	var elForm;
=09
	// Add selected column to the list
	if (!itemCol.container.hasParent){
		// Column belongs to List Base Table
		schema =3D objWAMMenu.listTableSchema;
		table =3D objWAMMenu.listTableName;
		requiredJoin =3D '';
	} else {
		schema =3D itemCol.container.parentItem.schema;
		table =3D itemCol.container.parentItem.name;
		if (!itemCol.container.parentMenu.hasParent){
			// Column belongs to a 2nd level join table
			// The fk name is only required for ambiguos paths or when the =
relationshipType =3D DETAIL (tables linked twice)
			if (itemCol.container.parentMenu.has2JoinsToTable(schema, table))
				requiredJoin =3D itemCol.container.parentItem.join;
			else if (itemCol.container.parentItem.relationshipType =3D=3D =
"DETAIL")
				requiredJoin =3D itemCol.container.parentItem.join;
			else
				requiredJoin =3D '';
		} else {
			// >2nd level join table
			requiredJoin =3D itemCol.container.parentItem.join;
		}
	}

	objWAMMenu.form.txtSchema.value =3D schema;
	objWAMMenu.form.txtTable.value =3D table;
	objWAMMenu.form.txtColumn.value =3D itemCol.name;
	objWAMMenu.form.txtRequiredJoin.value =3D requiredJoin;
	objWAMMenu.form.txtColumnLabel.value =3D itemCol.description;

	switch(objWAMMenu.menuType){
		case 'WAMList':
			objWAMMenu.form.__Action.value=3D'addColumn';
			objList.refresh();
			break;
		case 'WAMCriterion':
			objWAMMenu.form.wcAction.value=3D'addColumn';
			objCriterion.refresh();
			break;
	}
}


function itemCreateSubMenu(){
	var objASPExec;
	var strForm;
	var strJoin =3D "";


	if (this.container.hasParent)
		strJoin =3D this.join;
	else if (this.container.has2JoinsToTable(this.schema, this.name))
		strJoin =3D this.join;
	else if (this.relationshipType =3D=3D "DETAIL")
		strJoin =3D this.join;

	strForm =3D "" +=20
		"\t<form name=3D'frmLoadMenu' action=3D'" + objWAMMenu.action + "' =
method=3D'post'>\n" +
		"\t\t<input type=3D'text' name=3D'txtMenuType' value=3D'" + =
objWAMMenu.menuType + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtUser' value=3D'" + =
objWAMMenu.user + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtListSchema' value=3D'" + =
objWAMMenu.schema + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtListName' value=3D'" + =
objWAMMenu.name + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtEditTableSchema' value=3D'" + =
objWAMMenu.listTableSchema + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtEditTableName' value=3D'" + =
objWAMMenu.listTableName + "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtSchema' value=3D'" + this.schema =
+ "'>\n" +
		"\t\t<input type=3D'text' name=3D'txtTable' value=3D'" + this.name + =
"'>\n" +
		"\t\t<input type=3D'text' name=3D'txtCriterionDescription' value=3D\"" =
+ objWAMMenu.criterionDescription.toScriptFormat() + "\">\n" +
		"\t\t<input type=3D'text' name=3D'txtJoin' value=3D'" + strJoin + =
"'>\n" +
		"\t</form>";

	objASPExec =3D new ASPExecute();
//	objASPExec.setDebug(true);
	objASPExec.setForm(strForm, "frmLoadMenu");
	objASPExec.execute();
}


function itemLoadSubMenu(arrSubMenu){
	var itemCount =3D this.id.substring(this.id.lastIndexOf("_")+1);
	menuCount =3D this.id.substring(4);
	var parMenu =3D eval(this.container.id);
	this.showMore=3D1;
	(NS4) ? makeMenuNS(true,menuCount,parMenu) : =
makeMenuIE(true,menuCount,parMenu,arrSubMenu);
	this.child =3D eval("elMenu" + this.id.substr(4));
	this.child.parentMenu =3D this.container;
	this.child.parentItem =3D this;
	this.showSubMenu();
}


function itemShowSubMenu(){
	horOffset =3D (isRight) ? (this.container.childOverlap - =
this.container.menuWidth) : (this.container.menuWidth - =
this.container.childOverlap);
	if (NS4) {
		this.childX =3D this.container.left + horOffset;
		this.childY =3D (this.pageY+this.clip.top) + childOffset;
	}
	else {
		this.childX =3D this.container.style.pixelLeft + horOffset;
		this.childY =3D this.offsetTop + this.container.style.pixelTop + =
childOffset + borWid;
	}
	this.child.moveTo(this.childX,this.childY);
	this.child.keepInWindow();
	this.container.hasChildVisible =3D true;
	this.container.visibleChild =3D this.child;
	this.child.showIt(true);
}


function itemOver(){
	if (keepHilite) {
		if (this.container.currentItem && this.container.currentItem !=3D =
this) {
			if (NS4) {
				this.container.currentItem.bgColor =3D this.container.menuBGColor;
				this.container.currentItem.txtLyrOff.visibility =3D "inherit";
				this.container.currentItem.txtLyrOn.visibility =3D "hide";
			}
			else {
				with (this.container.currentItem.style) {
					backgroundColor =3D this.container.menuBGColor;
					color =3D this.container.menuFontColor;
				}
			}
		}
	}

	if (IE4) {
		theEvent =3D menuLoc.event;
		if (theEvent.srcElement.tagName =3D=3D "IMG") return;
		this.style.backgroundColor =3D this.container.menuBGOver;
		this.style.color =3D this.container.menuFontOver;
	}
	else {
		this.bgColor =3D this.container.menuBGOver;
		this.txtLyrOff.visibility =3D "hide";
		this.txtLyrOn.visibility =3D "inherit";
	}

	//menuLoc.status =3D this.linkText;

	this.container.currentItem =3D this;

	if (this.container.hasChildVisible) {
		this.container.hideChildren(this);
	}

	if (this.hasMore) {
		if (isUndefined(this.child)){=20
			// Make child menu
			this.createSubMenu();
		}
		else{
			this.showSubMenu();
		}
	=09
		/*
		horOffset =3D (isRight) ? (this.container.childOverlap - =
this.container.menuWidth) : (this.container.menuWidth - =
this.container.childOverlap);

		if (NS4) {
			this.childX =3D this.container.left + horOffset;
			this.childY =3D (this.pageY+this.clip.top) + childOffset;
		}
		else {
			this.childX =3D this.container.style.pixelLeft + horOffset;
			this.childY =3D this.offsetTop + this.container.style.pixelTop + =
childOffset + borWid;
		}

		this.child.moveTo(this.childX,this.childY);
		this.child.keepInWindow();
		this.container.hasChildVisible =3D true;
		this.container.visibleChild =3D this.child;
		this.child.showIt(true);
		*/
	}
}

function itemOut() {
	if (IE4) {
		theEvent =3D menuLoc.event;
		 if (theEvent.srcElement.contains(theEvent.toElement)
	  || (theEvent.fromElement.tagName=3D=3D"IMG" && =
theEvent.toElement.contains(theEvent.fromElement)))
		  return;
		if (!keepHilite) {
			this.style.backgroundColor =3D this.container.menuBGColor;
			this.style.color =3D this.container.menuFontColor;
		}
	}
	else {
		if (!keepHilite) {
			this.bgColor =3D this.container.menuBGColor;
			this.txtLyrOff.visibility =3D "inherit";
			this.txtLyrOn.visibility =3D "hide";
		}
		if (!isOverMenu && !clickKill) {
			allTimer =3D setTimeout("currentMenu.hideTree()",10);=20
		}
	}
}

function moveTo(xPos,yPos) {
	this.style.pixelLeft =3D xPos;
	this.style.pixelTop =3D yPos;
}

function showIt(on) {
	if (NS4) {
		this.visibility =3D (on) ? "show" : "hide";
		if (keepHilite && this.currentItem) {
			this.currentItem.bgColor =3D this.menuBGColor;
			this.currentItem.txtLyrOff.visibility =3D "inherit";
			this.currentItem.txtLyrOn.visibility =3D "hide";
		}
	}
	else {
		this.style.visibility =3D (on) ? "visible" : "hidden";
		if (keepHilite && this.currentItem) {
			with (this.currentItem.style) {
				backgroundColor =3D this.menuBGColor;
				color =3D this.menuFontColor;
			}
		}
	}
	this.currentItem =3D null;
}

function keepInWindow() {
	scrBars =3D 20;
	botScrBar =3D (isFrames && navFrLoc=3D=3D"bottom") ? (borWid*2) : =
scrBars;
	rtScrBar =3D (isFrames && navFrLoc=3D=3D"right") ? (borWid*2) : =
scrBars;
	if (NS4) {
		winRight =3D (menuLoc.pageXOffset + menuLoc.innerWidth) - rtScrBar;
		rightPos =3D this.left + this.menuWidth;
=09
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft =3D this.parentMenu.left;
				newLeft =3D ((parentLeft-this.menuWidth) + this.childOverlap);
				this.left =3D newLeft;
			}
			else {
				dif =3D rightPos - winRight;
				this.left -=3D dif;
			}
		}

		winBot =3D (menuLoc.pageYOffset + menuLoc.innerHeight) - botScrBar ;
		botPos =3D this.top + this.fullHeight;

		if (botPos > winBot) {
			dif =3D botPos - winBot;
			this.top -=3D dif;
		}
	=09
		winLeft =3D menuLoc.pageXOffset;
		leftPos =3D this.left;

		if (leftPos < winLeft) {
			if (this.hasParent) {
				parentLeft =3D this.parentMenu.left;
				newLeft =3D ((parentLeft+this.menuWidth) - this.childOverlap);
				this.left =3D newLeft;
			}
			else {
				this.left =3D 5;
			}
		}
	}
	else {
	    winRight =3D (menuLoc.document.body.scrollLeft + =
menuLoc.document.body.clientWidth) - rtScrBar;
		rightPos =3D this.style.pixelLeft + this.menuWidth;
=09
		if (rightPos > winRight) {
			if (this.hasParent) {
				parentLeft =3D this.parentMenu.style.pixelLeft;
				newLeft =3D ((parentLeft - this.menuWidth) + this.childOverlap);
				this.style.pixelLeft =3D newLeft;
			}
			else {
				dif =3D rightPos - winRight;
				this.style.pixelLeft -=3D dif;
			}
		}

		winBot =3D (menuLoc.document.body.scrollTop + =
menuLoc.document.body.clientHeight) - botScrBar;
		botPos =3D this.style.pixelTop + this.fullHeight;

		if (botPos > winBot) {
			dif =3D botPos - winBot;
			// --- MFA [04-02-2002]
			if (this.style.pixelTop - dif < 10) this.style.pixelTop =3D 10;
			else this.style.pixelTop -=3D dif;
			//this.style.pixelTop -=3D dif;
		}
	=09
		winLeft =3D menuLoc.document.body.scrollLeft;
		leftPos =3D this.style.pixelLeft;

		if (leftPos < winLeft) {
			if (this.hasParent) {
				parentLeft =3D this.parentMenu.style.pixelLeft;
				newLeft =3D ((parentLeft+this.menuWidth) - this.childOverlap);
				this.style.pixelLeft =3D newLeft;
			}
			else {
				this.style.pixelLeft =3D 5;
			}
		}
	}
}

function linkIt() {
	if (this.linkText.indexOf("javascript:")!=3D-1) eval(this.linkText)
	else menuLoc.location.href =3D this.linkText;
}

function menuPopDown(menuName){
	if (!isLoaded || !areCreated) return;
	whichEl =3D eval(menuName);
	whichEl.isOn =3D false;
	if (!clickKill) whichEl.hideTop();
}

function hideAll() {
	for(i=3D1; i<topCount; i++) {
		temp =3D eval("elMenu" + i + ".startChild");
		temp.isOn =3D false;
		if (temp.hasChildVisible) temp.hideChildren();
		temp.showIt(false);
	}  =20
}

function hideTree() {=20
	allTimer =3D null;
	if (isOverMenu) return;
	if (this.hasChildVisible) {
		this.hideChildren();
	}
	this.hideParents();
}

function hideTop() {
	whichTop =3D this;
	(clickKill) ? whichTop.hideSelf() : (this.hideTimer =3D =
setTimeout("if(whichTop.hideSelf)whichTop.hideSelf()",mSecsVis));
}

function hideSelf(isToHide) {
	this.hideTimer =3D null;
	if ((!this.isOn && !isOverMenu) || isToHide) {=20
		this.showIt(false);
	}
}

function hideParents() {
	tempMenu =3D this;
	while (tempMenu.hasParent) {
		tempMenu.showIt(false);
		tempMenu.parentMenu.isOn =3D false;     =20
		tempMenu =3D tempMenu.parentMenu;
	}
	tempMenu.hideTop();
}

function hideChildren(item) {
	tempMenu =3D this.visibleChild;
	while (tempMenu.hasChildVisible) {
		tempMenu.visibleChild.showIt(false);
		tempMenu.hasChildVisible =3D false;
		tempMenu =3D tempMenu.visibleChild;
	}

	if (!this.isOn || !item.hasMore || this.visibleChild !=3D this.child) {
		this.visibleChild.showIt(false);
		this.hasChildVisible =3D false;
	}
}

function cancelSelect(){return false}

function reDo(){
	if (loader.innerWidth=3D=3DorigWidth && =
loader.innerHeight=3D=3DorigHeight) return;
	initVars();
	NSresized=3Dtrue;
	menuLoc.location.reload();
}

function clicked() {
	if (!isOverMenu && currentMenu!=3Dnull && !currentMenu.isOn) {
		whichEl =3D currentMenu;
		whichEl.hideTree();
	}
}

function handleErr(){
	arAccessErrors =3D ["permission","access"];
	mess =3D arguments[0].toLowerCase();
	found =3D false;
	for (i=3D0;i<arAccessErrors.length;i++) {
		errStr =3D arAccessErrors[i];
		if (mess.indexOf(errStr)!=3D-1) found =3D true;
	}
	return found;
}
//end

//***********************************************************************=
*/
// Web Application Maker Library
//
// Copyright (c) Declarativa 2000-2001. All Rights Reserved.
//***********************************************************************=
*/
//***********************************************************************=
*/
// WAMList Object
//***********************************************************************=
*/
function List(strWAMList, strSchema, strTable, strType, strSelectCount, =
blnUseCustomRow){
	if (isUndefined(window.document.frmList))
		this.form			=3D window.document.__formWAMRow;
	else
		this.form			=3D window.document.frmList;
	this.wamList			=3D strWAMList;
	this.table				=3D strTable;
	this.schema				=3D strSchema;
	this.type				=3D strType;
	this.selectCount		=3D strSelectCount;
	this.rootURL			=3D WAMRootURL;
	this.urlForCustomRow	=3D this.rootURL + "rows/" + this.table + ".asp";
	this.criterionURL		=3D this.rootURL + =
"WAMLibrary/Criterion/criterion.asp";
	this.qsForStandardASP	=3D =
"witype=3Drow&winame=3D"+encodeURL(this.table);
	this.useCustomRow		=3D blnUseCustomRow;
	this.rows				=3D new Array();
	this.columns			=3D new Array();
	this.menu				=3D null;
	this.fk					=3D null;
	this.submitForm			=3D List_submitForm;
	this.setForm			=3D List_setForm;
	this.getForm			=3D List_getForm;
	this.addRow				=3D List_AddRow;
	this.addColumn			=3D List_AddColumn;
	this.resetColumns		=3D List_ResetColumns;
	this.newRow				=3D List_NewRow;
	this.changeCriterion	=3D List_ChangeCriterion;
	this.editCriterion		=3D List_EditCriterion;
	this.newCriterion		=3D List_NewCriterion;
	this.moveColumn			=3D List_MoveColumn;
	this.refresh			=3D List_Refresh;
	this.setDistinctRS		=3D List_SetDistinctRS;
	this.navToTopLevel		=3D List_navToTopLevel;
	this.navToPreviousLevel	=3D List_navToPreviousLevel;
	this.navToNextLevel		=3D List_navToNextLevel;
	this.navToAll			=3D List_navToAll;
	this.exportList			=3D List_exportList;
	this.selectLine			=3D List_selectLine;
	this.selectedLine		=3D null;
	this._rowAutoSave		=3D false;
	this.checkMenuMode		=3D List_checkMenuMode;

	// Set selected index in cmbCriterion
	if (!isUndefined(this.form.cmbCriterion)) =
this.form.cmbCriterion.oldSelectedIndex =3D =
this.form.cmbCriterion.selectedIndex;
}



function List_checkMenuMode(){
	if (!isNull(event) && !isUndefined(event) && event.altKey =3D=3D true)
		this.resetColumns();
	else
		menuPopUp("elMenu1",event);
}


function List_submitForm(){
	if (this.getForm().name =3D=3D "__formWAMRow"){
		objWAMRow.submitForm();
	} else {
		this.getForm().submit();
	}
}

function List_setForm(elForm){
	this.form =3D elForm;
}

function List_getForm(){
	return this.form;
}

function List_AddRow(objListRow){
	this.rows[this.rows.length] =3D objListRow;
	objListRow.id =3D this.rows.length-1;
	objListRow.parent =3D this;
}

function List_AddColumn(objListColumn){
	this.columns[this.columns.length] =3D objListColumn;
	objListColumn.parent =3D this;
}

function List_ResetColumns(){
	window.event.returnValue =3D false;
	this.getForm().__Action.value=3D'resetColumns';
	this.submitForm();
}

function List_NewRow(){
	var qs; var el1, el2;

	qs =3D "";
	if (typeof(objWAMRow) !=3D "undefined"){
		if (objWAMRow.isNew()){
			objWAMRow._setAutoSave();
			objWAMRow.aspInsert();
			return;
		} else if (objWAMRow.isDirty() && this._rowAutoSave =3D=3D true){
			objWAMRow._setAutoSave();
			objWAMRow.aspUpdate();
			return;
		}
	}

	// --- If it is a DetailList then we need to pass the master key's =
column names and values to the new row
	if (!isNull(this.fk)){
		qs =3D "wrdlfkn=3D"+this.fk.name; // wrdlfkn -> DetailListFKname
		qs +=3D "&wrdlfka=3D"+this.fk.alias; // wrdlfka -> DetailListFKalias
		for (el in this.fk.columns)
			qs +=3D =
"&wrdlfkcn=3D"+this.fk.columns[el].name+"&wrdlfkcv=3D"+this.fk.columns[el=
].value // cn -> ColumnName; cv -> ColumnValue
	}
=09
	if (this.useCustomRow)
		window.openChild(this.urlForCustomRow + "?" + qs, WinFeatures(0, 0, =
'no', 'no', 'no', 'yes', 'no', 'yes', 'yes'));
	else
		window.openChild(this.rootURL + 'WAMLibrary/Interface/standard.asp?' + =
this.qsForStandardASP + "&" + qs, WinFeatures(0, 0, 'no', 'no', 'no', =
'yes', 'no', 'yes', 'yes'));
=09
}

function List_ChangeCriterion(HTMLEl){
	var el;
	var specialCritNames =3D new Array("_SEPARATOR_", "_EDITCRITERION_", =
"_NEWCRITERION_");

	if (HTMLEl.value =3D=3D specialCritNames[0]){
		HTMLEl.selectedIndex =3D HTMLEl.oldSelectedIndex;
		return false;
	} else if (HTMLEl.value =3D=3D specialCritNames[1]){
		HTMLEl.selectedIndex =3D HTMLEl.oldSelectedIndex;
		this.editCriterion(HTMLEl.value);
		return true;
	} else if (HTMLEl.value =3D=3D specialCritNames[2]){
		HTMLEl.selectedIndex =3D HTMLEl.oldSelectedIndex;
		this.newCriterion();
		return true;
	}

	HTMLEl.oldSelectedIndex =3D HTMLEl.selectedIndex;
	this.getForm().__Action.value=3D'changeCriterion';
	if (this.getForm().__ListOpenMode.value.indexOf("zoom") !=3D -1)
		this.getForm().__ListOpenMode.value=3D'zoom';
	else if (this.getForm().__ListOpenMode.value =3D=3D "where")
		this.getForm().__ListOpenMode.value=3D'';
	this.submitForm();
}

function List_EditCriterion(strCriterion){
	var qs =3D "?__wamList=3D"+encodeURL(this.wamList)+"&"+
		"__wamListType=3D"+encodeURL(this.type)+"&"+
		"__wamEditTable=3D"+encodeURL(this.schema+"."+this.table)+"&"+
		"__wamCurrCrit=3D"+encodeURL(strCriterion);
	window.openChild(this.criterionURL+qs, WinFeatures(0, 0, 'no', 'no', =
'no', 'yes', 'no', 'yes', 'yes'));
}

function List_NewCriterion(){
	var qs =3D "?__wamList=3D"+encodeURL(this.wamList)+"&"+
		"__wamListType=3D"+encodeURL(this.type)+"&"+
		"__wamEditTable=3D"+encodeURL(this.schema+"."+this.table)+"&"+
		"wcAction=3Dnew";
	window.openChild(this.criterionURL+qs, WinFeatures(0, 0, 'no', 'no', =
'no', 'yes', 'no', 'yes', 'yes'));
}

function List_MoveColumn(intCol, strDirection){
	var objColLeft;
	var objColRight;
	switch (strDirection.toUpperCase()){
		case "LEFT":
			objColLeft =3D this.columns[intCol];
			objColRight =3D this.columns[intCol-1];
			break;
		case "RIGHT":
			objColLeft =3D this.columns[intCol+1];
			objColRight =3D this.columns[intCol];
			break;
		default:
			return;
			break;
	}
=09
	window.event.returnValue =3D false;
	//...
	this.getForm().txtSchemaL.value =3D objColLeft.schema;
	this.getForm().txtTableL.value =3D objColLeft.table;
	this.getForm().txtColumnL.value =3D objColLeft.name;
	this.getForm().txtRequiredJoinL.value =3D objColLeft.requiredJoin;
	this.getForm().txtSchemaR.value =3D objColRight.schema;
	this.getForm().txtTableR.value =3D objColRight.table;
	this.getForm().txtColumnR.value =3D objColRight.name;
	this.getForm().txtRequiredJoinR.value =3D objColRight.requiredJoin;
	this.getForm().__Action.value=3D'moveColumn';
	this.submitForm();
}

function List_Refresh(){
	this.submitForm();
}

function List_SetDistinctRS(){
	window.event.returnValue =3D false;
	this.getForm().__Action.value=3D'setDistinctRS';
	this.submitForm();
}

function List_navToTopLevel(){
	this.getForm().__hn_to.value =3D "TOP";
	this.submitForm();
}

function List_navToPreviousLevel(){
	this.getForm().__hn_to.value =3D "UP";
	this.submitForm();
}

function List_navToNextLevel(){
	if (!isNull(this.selectedLine)){
		this.getForm().__hn_to.value =3D "DOWN";
		this.getForm().__hn_selected.value =3D =
objList.rows[this.selectedLine-1].pk[this.getForm().__hn_pkColumn.value].=
value;
		this.submitForm();
	} else {
		Error.setError("LSTNOCURR");
		Error.catchErrors();
	}
}

function List_navToAll(){
	this.getForm().__hn_to.value =3D "";
	this.getForm().__hn_father.value =3D "";
	this.getForm().__hn_selected.value =3D "";
	this.getForm().__Action.value =3D "";
	this.submitForm();
}

function List_exportList(){
	this.getForm().__Action.value =3D "EXPORT";
	this.submitForm();
}

function List_selectLine(oLine){
	if (this.selectedLine !=3D oLine.rowIndex){
		if (!isNull(this.selectedLine)){
			if (this.selectedLine % 2 =3D=3D 0) =
oLine.parentElement.rows(this.selectedLine).className =3D =
"cssWAMlistLight";
			else oLine.parentElement.rows(this.selectedLine).className =3D "";
		}
		this.selectedLine =3D oLine.rowIndex;
		oLine.className =3D "cssWAMlistSelected";
	} else {
		if (oLine.rowIndex % 2 =3D=3D 0) oLine.className =3D =
"cssWAMlistLight";
		else oLine.className =3D "";
		this.selectedLine =3D null;
	}
}

//***********************************************************************=
*/
// LISTROW Object
//***********************************************************************=
*/
function ListRow(){
	this.id =3D null;
	this.pk =3D new Array();
	this.lk =3D new Array();
	this.addPKCol =3D ListRow_addPKCol;
	this.addLKCol =3D ListRow_addLKCol;
	this.exists =3D ListRow_Exists;
	this.edit =3D ListRow_Edit;
	this.del =3D ListRow_Delete;
	this.zoomReturn =3D ListRow_zoomReturn;
}

function ListRow_addPKCol(objPKColumn){
	this.pk[this.pk.length] =3D objPKColumn;
}

function ListRow_addLKCol(objLookupColumn){
	this.lk[this.lk.length] =3D objLookupColumn;
}

function ListRow_Exists(){
	var qs; var pkCol; var strPK; var objASPExec =3D new ASPExecute();

	qs =3D =
"schema=3D"+encodeURL(this.parent.schema)+"&table=3D"+encodeURL(this.pare=
nt.table)+"&row=3D"+this.id+"&pk=3D";
	strPK =3D "";
	for (pkCol in this.pk)
		strPK +=3D "["+this.pk[pkCol].column + "] =3D " + =
this.pk[pkCol].sqlValue + " AND ";
	strPK =3D strPK.substring(0, strPK.length-5);
	qs +=3D strPK;
	objASPExec.setURL(this.parent.rootURL + =
"WAMLibrary/WAMList_RowEdit.asp?" +qs);
	objASPExec.execute();
}

function ListRow_Edit(bolClone){
	var strQS =3D "";
	for (pkCol in this.pk) strQS +=3D =
"key=3D"+encodeURL(this.pk[pkCol].value)+"&";

	if (bolClone) strQS +=3D "wrsac=3Dtrue";
	else strQS =3D strQS.substring(0, strQS.length-1);

	// --- If it is a DetailList then we need to pass the master key's =
column names and values to the new row
	if (!isNull(this.parent.fk)){
		strQS +=3D "&wrdlfkn=3D"+this.parent.fk.name; // wrdlfkn -> =
DetailListFKname
		strQS +=3D "&wrdlfka=3D"+this.parent.fk.alias; // wrdlfka -> =
DetailListFKalias
	}

	if (this.parent.useCustomRow)
		strForm =3D window.openChild(this.parent.urlForCustomRow + "?" + =
strQS, WinFeatures(0, 0, 'no', 'no', 'no', 'yes', 'no', 'yes', 'yes'));
	else
		strForm =3D window.openChild(this.parent.rootURL + =
'WAMLibrary/Interface/standard.asp?' + this.parent.qsForStandardASP + =
"&" + strQS, WinFeatures(0, 0, 'no', 'no', 'no', 'yes', 'no', 'yes', =
'yes'));
}

function ListRow_Delete(){
	var objASPExec =3D new ASPExecute();
	var strForm;
	var strInputsPK=3D"";
	var pkCol;
	var strMsgConfirm;
	var confirmDelete;
	var strPKDel =3D "";

	for (pkCol in this.pk){
		strPKDel +=3D this.pk[pkCol].column + "=3D" + this.pk[pkCol].value + =
", ";
		strInputsPK +=3D "<input type=3D'text' name=3D'__old_" + =
this.parent.table.replace(/ /g, "_") + "_" + =
this.pk[pkCol].column.replace(/ /g, "_") + "' value=3D'" + =
this.pk[pkCol].value + "'>";
	}
	strPKDel =3D strPKDel.substring(0, strPKDel.length-2);

	// Only deletes the record after user confirmation
	if (typeof(MyListDeleteConfirmMessage) =3D=3D "function"){
		strMsgConfirm =3D MyListDeleteConfirmMessage(this.id+1) + "\n\n'OK' =
para apagar, 'Cancel' para cancelar.";
	} else {
		strMsgConfirm =3D WAMMessages["MESSAGE_LIST_delete"].replace(/@k/i, =
strPKDel);
	}
	confirmDelete =3D window.confirm(strMsgConfirm);
	if (confirmDelete){
		if (this.parent.useCustomRow)
			strForm =3D "<form name=3D'frmRowEdit' action=3D'" + =
this.parent.urlForCustomRow + "?wrAction=3DDRFL' method=3D'post'>";
		else
			strForm =3D "<form name=3D'frmRowEdit' action=3D'" + =
this.parent.rootURL + =
"WAMLibrary/Interface/standard.asp?wrAction=3DDRFL&" + =
this.parent.qsForStandardASP + "' method=3D'post'>";
		=09
		strForm +=3D strInputsPK + "</form>";
		objASPExec.setForm(strForm, "frmRowEdit");
//		objASPExec.setDebug(true);
		objASPExec.execute();
	}
}

function ListRow_zoomReturn(fkName){
	var lkCol;
	var strEval =3D "";
	window.event.returnValue =3D false;
	for (lkCol in this.lk)
		strEval +=3D "window.opener.document.__formWAMRow." + =
this.lk[lkCol].column + ".value =3D\"" + this.lk[lkCol].value + "\";\n";
	strEval +=3D "window.opener.objWAMRow.lookups['" + fkName + =
"'].execute();\n";
	strEval +=3D "window.opener.objWAMRow.setDirty();\n";
	strEval +=3D "self.close();";
	eval(strEval);
}

//***********************************************************************=
*/
// LISTROW_COLUMN Object
//***********************************************************************=
*/
function ListRow_Column(columnName, columnValue, sqlValue){
	this.column =3D columnName;
	this.value =3D columnValue;
	if (isUndefined(sqlValue))
		this.sqlValue =3D null;
	else
		this.sqlValue =3D sqlValue;
}

//***********************************************************************=
*/
// LISTCOLUMN Object
//***********************************************************************=
*/
function ListColumn(strSchema, strTable, strName, strRequiredJoin, =
strSort){
	this.parent			=3D null;
	this.schema			=3D strSchema;
	this.table			=3D strTable;
	this.name			=3D strName;
	this.requiredJoin	=3D strRequiredJoin;
	this.sorted			=3D strSort;
	this.sort			=3D ListColumn_Sort;
	this.remove			=3D ListColumn_Remove;
}

function ListColumn_Sort(strSort){
	if (strSort.toUpperCase()=3D=3Dthis.sorted)	strSort=3D'none';
	window.event.returnValue =3D false;
	this.parent.getForm().txtSchema.value =3D this.schema;
	this.parent.getForm().txtTable.value =3D this.table;
	this.parent.getForm().txtColumn.value =3D this.name;
	this.parent.getForm().txtRequiredJoin.value =3D this.requiredJoin;
	this.parent.getForm().txtSort.value =3D strSort;
	this.parent.getForm().__Action.value=3D'changeSorting';
	this.parent.submitForm();
}

function ListColumn_Remove(){
	window.event.returnValue =3D false;
	this.parent.getForm().txtSchema.value =3D this.schema;
	this.parent.getForm().txtTable.value =3D this.table;
	this.parent.getForm().txtColumn.value =3D this.name;
	this.parent.getForm().txtRequiredJoin.value =3D this.requiredJoin;
	this.parent.getForm().__Action.value=3D'removeColumn';
	this.parent.submitForm();
}
------=_NextPart_000_009E_01C276C0.D887EBE0--

