<?
include("conexao.php");
     include("authentication.php");
?>
<html>
<head>
<title><? echo $empresa; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estilo.css" rel="stylesheet" type="text/css">
</head>

<body background="bg_classico.jpg">
<? include("user_online.php");?>
<br>
<? include"menu_aparu.php"; ?></center>
    
<script language="JavaScript">
<!--


function txtBoxFormat(objForm, strField, sMask, evtKeyPress) {
      var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;

      if(document.all) { // Internet Explorer
        nTecla = evtKeyPress.keyCode; }
      else if(document.layers) { // Nestcape
        nTecla = evtKeyPress.which;
      }

      sValue = objForm[strField].value;

      // Limpa todos os caracteres de formatação que
      // já estiverem no campo.
      sValue = sValue.toString().replace( "-", "" );
      sValue = sValue.toString().replace( "-", "" );
      sValue = sValue.toString().replace( ".", "" );
      sValue = sValue.toString().replace( ".", "" );
      sValue = sValue.toString().replace( "/", "" );
      sValue = sValue.toString().replace( "/", "" );
      sValue = sValue.toString().replace( "(", "" );
      sValue = sValue.toString().replace( "(", "" );
      sValue = sValue.toString().replace( ")", "" );
      sValue = sValue.toString().replace( ")", "" );
      sValue = sValue.toString().replace( " ", "" );
      sValue = sValue.toString().replace( " ", "" );
      sValue = sValue.toString().replace( ":", "" );
      sValue = sValue.toString().replace( ":", "" );
      fldLen = sValue.length;
      mskLen = sMask.length;

      i = 0;
      nCount = 0;
      sCod = "";
      mskLen = fldLen;

      while (i <= mskLen) {
        bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/"))
        bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " ") || (sMask.charAt(i) == ":"))

        if (bolMask) {
          sCod += sMask.charAt(i);
          mskLen++; }
        else {
          sCod += sValue.charAt(nCount);
          nCount++;
        }

        i++;
      }

      objForm[strField].value = sCod;

      if (nTecla != 8) { // backspace
        if (sMask.charAt(i-1) == "9") { // apenas números...
          return ((nTecla > 47) && (nTecla < 58)); } // números de 0 a 9
        else { // qualquer caracter...
          return true;
        } }
      else {
        return true;
      }
    }
//-->
</script>
            <table width="100%" height="0" border="0" cellpadding="0" cellspacing="0">
              <tr valign="top"> 
                <td height="165"> <div align="center"><br>
                  <form name="form1" method="post" action="insert_livrovisita.php">
				   
          <table width="615" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#DADADA" class="cant_cinza">
            <tr> 
              <td height="20" colspan="3" bgcolor="#006699" class="verdana_preto_10"> 
                <div align="center" class="texto"><font color="#FFFFFF"><strong>LIVRO 
                  DE VISITAS</strong></font></div></td>
            </tr>
            <tr> 
              <td width="124" height="25" class="verdana_preto_10">&nbsp;&nbsp;Nome 
                Completo:</td>
              <td width="451" class="verdana_preto_10"> <input name='nome' type='text' class="caixa_preto_9" id="promocao3" size=85 maxlength='100'></td>
              <td class="verdana_preto_10">&nbsp;</td>
            </tr>
            <tr> 
              <td height="7" class="verdana_preto_10">&nbsp;&nbsp;E-mail:</td>
              <td class="verdana_preto_10"> <input name='email' type='text' class="caixa_preto_9" id="promocao22" size=85 maxlength='100'></td>
              <td class="verdana_preto_10">&nbsp;</td>
            </tr>
            <tr>
              <td height="6" class="verdana_preto_10">&nbsp;&nbsp;Cidade:</td>
              <td class="verdana_preto_10"><input name='cidade' type='text' class="caixa_preto_9" id="email" size=85 maxlength='100'></td>
              <td class="verdana_preto_10">&nbsp;</td>
            </tr>
            <tr>
              <td height="12" class="verdana_preto_10">&nbsp;&nbsp;Estado:</td>
              <td class="verdana_preto_10"><select name="estado" id="estado">
                  <option value="PR">PR</option>
				  <option value=" ">Outro País</option>
                  <option value="AC">AC</option>
                  <option value="AL">AL</option>
                  <option value="AM">AM</option>
                  <option value="AP">AP</option>
                  <option value="BA">BA</option>
                  <option value="CE">CE</option>
                  <option value="DF">DF</option>
                  <option value="ES">ES</option>
                  <option value="GO">GO</option>
                  <option value="MA">MA</option>
                  <option value="MG">MG</option>
                  <option value="MS">MS</option>
                  <option value="MT">MT</option>
                  <option value="PA">PA</option>
                  <option value="PB">PB</option>
                  <option value="PE">PE</option>
                  <option value="PI">PI</option>
                  <option value="PR">PR</option>
                  <option value="RJ">RJ</option>
                  <option value="RN">RN</option>
                  <option value="RO">RO</option>
                  <option value="RR">RR</option>
                  <option value="RS">RS</option>
                  <option value="SC">SC</option>
                  <option value="SE">SE</option>
                  <option value="SP">SP</option>
                  <option value="TO">TO</option>
                </select></td>
              <td class="verdana_preto_10">&nbsp;</td>
            </tr>
            <tr class="verdana_preto_10"> 
              <td>&nbsp;&nbsp;Mensagem:</td>
              <td> <textarea name="texto" cols="50" rows="10" wrap="PHYSICAL" id="textarea"></textarea></td>
              <td width="38">&nbsp;</td>
            </tr>
            <tr class="verdana_preto_10"> 
              <td height="25" colspan="3">&nbsp; </td>
            </tr>
            <tr class="verdana_preto_10"> 
              <td height="25" colspan="2"> <div align="right"> 
                  <input name="Submit2" type="reset" class="caixa_buttun_preto_9" style="cursor:hand" value="Limpar">
                  &nbsp;&nbsp; 
                  <input name="Submit" type="submit" class="caixa_buttun_preto_9" style="cursor:hand" value="Assinar">
                </div></td>
              <td height="25">&nbsp;</td>
            </tr>
            <tr class="verdana_preto_10"> 
              <td colspan="2">&nbsp;</td>
              <td height="20">&nbsp;</td>
            </tr>
          </table>
        </form>
                    
        <br>
        <br>
        <br>
        <br>
        <?php include("rodape.php"); ?>
        <br>
            </div></td>
              </tr>
            </table>
            <br>         
</body>
</html>
