<!--
//funções de acesso ao NET disponibilizado para o cliente

function PostaDadosAdm()
{
  if (FormAdm.TXTlogin1.value == "")
  {
    alert("Digite o seu Login.");
    FormAdm.TXTlogin1.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = FormAdm.TXTlogin1.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }

  if (FormAdm.TXTsenha1.value == "")
  {
    alert("Digite a sua Senha.");
    FormAdm.TXTsenha1.focus();
    return (false);
  }


	FormAdm.TXTlogin.value = FormAdm.TXTlogin1.value;
	FormAdm.TXTsenha.value = FormAdm.TXTsenha1.value;
	FormAdm.TXTlogin1.value = "";
	FormAdm.TXTsenha1.value = "";
	FormAdm.TXTlogin1.focus();

  if (!allValid)
  {
	janela=window.open('about:blank', 'Gerencial', 'toolbar=no,fullscreen=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=1024,height=768,top='+ (screen.height-768)/2 +', left='+ (screen.width-1024)/2);
	FormAdm.submit();
	return (true)
  }
  else
  {
	janela=window.open('about:blank', 'Gerencial', 'toolbar=no,fullscreen=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=1024,height=768,top='+ (screen.height-768)/2 +', left='+ (screen.width-1024)/2);
	FormAdm.submit();
	return (true);
  }


}
