function ConfereFloat(P_Campo) {
//Confere o Valor como 'Float'  
  P_TextoAux = document.getElementById(P_Campo).value;
  P_Texto = new String();
  P_ContaPonto = 0;
  P_Texto = P_TextoAux.replace(",",".");
  for (i = 0 ; i <= P_TextoAux.length ; i++)
	if (P_Texto.charCodeAt(i) < 48 || P_Texto.charCodeAt(i) > 57)
	  {
	  if (P_Texto.charCodeAt(i) == 46 || P_Texto.charCodeAt(i) == 44)
	    {
	    P_ContaPonto++;
        if (P_ContaPonto > 1)
          {
          return false;
          }
		}
	  else
	    {
        return false;
		}
	  }
//Não Aceita Nulo
  if (P_TextoAux.length == 0)
    {
	return false;
	}
  document.all[P_Campo].value = P_Texto;
  return true;
  };

function ConfereInteger(P_Campo) {
//Confere o Valor como 'Float'  
  P_TextoAux = document.getElementById(P_Campo).value;
  for (i = 0 ; i <= P_TextoAux.length ; i++)
	if (P_TextoAux.charCodeAt(i) < 48 || P_TextoAux.charCodeAt(i) > 57)
	  {
      return false;
	  }
//Não Aceita Nulo
  if (P_TextoAux.length == 0)
    {
	return false;
	}
  document.all[P_Campo].value = P_TextoAux;
  return true;
  };
  
function ConfereSenhaInsert(P_Senha_1, P_Senha_2) {
//Confere as duas senhas  
	P_CampoSenha_1 = document.getElementById(P_Senha_1).value;
	P_CampoSenha_2 = document.getElementById(P_Senha_2).value;
	if (P_CampoSenha_1 != P_CampoSenha_2)
		{
		return false;
		}
	if (P_CampoSenha_1.length < 6)
		{
		return false;
		}
	return true;
	};
	
function ConfereSenhaUpdate(P_Senha_1, P_Senha_2) {
//Confere as duas senhas  
	P_CampoSenha_1 = document.getElementById(P_Senha_1).value;
	P_CampoSenha_2 = document.getElementById(P_Senha_2).value;
	if (P_CampoSenha_1 != P_CampoSenha_2)
		{
		return false;
		}
	if (P_CampoSenha_1.length < 6 && P_CampoSenha_1.length > 0)
		{
		return false;
		}
	return true;
	};
	
function ConfereNulo(P_Campo) {
	P_TextoAux = document.getElementById(P_Campo).value;
	if (P_TextoAux.length == 0)
		{
		return false;
		}
	return true;
	};

