
	function Identificar()
	{
		var FORM = document.FormIdentificacao;
		var MSG = "Área do Cliente\n ------------------------------------------------\n ";
		
		if(FORM.FrmIdentificacao_Email.value.indexOf('@', 0) == -1 || FORM.FrmIdentificacao_Email.value.indexOf('.', 0) == -1)
		{
			alert(MSG+"Preencha o E-mail corretamente");
			FORM.FrmIdentificacao_Email.focus();
		}
		else if((FORM.FrmIdentificacao_Senha.value.length < 6) || (FORM.FrmIdentificacao_Senha.value == "******"))
		{
			alert(MSG+"Preencha a Senha (no mínimo 6 caracteres)");
			FORM.FrmIdentificacao_Senha.focus();
		}
		else
		{
			FORM.action = "https://sorte24horas.websiteseguro.com/login_cliente.php";
			FORM.submit();  
		}
	}
	
	function Lembrar_Senha()
	{
		var width = 300;
		var height = 265;
									
		var left = ((screen.width - width)/2);
		var top = ((screen.height - height)/2);
					
		var URL = "Lembrar_Senha.php";
					   
		var Janela = window.open(URL,'LembrarSenha', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no, maximize=no');
				
		Janela.focus();
	}
	
	function Identificar_Int()
	{
		var FORM = document.FormIdentificacaoInt;
		var MSG = "Área do Cliente\n ------------------------------------------------\n ";
				
		if(FORM.FrmIdentificacaoInt_Email.value.indexOf('@', 0) == -1 || FORM.FrmIdentificacaoInt_Email.value.indexOf('.', 0) == -1)
		{
			alert(MSG+"Preencha o E-mail corretamente");
			FORM.FrmIdentificacaoInt_Email.focus();
		}
		else if((FORM.FrmIdentificacaoInt_Senha.value.length < 6) || (FORM.FrmIdentificacaoInt_Senha.value == "******"))
		{
			alert(MSG+"Preencha a Senha (no mínimo 6 caracteres)");
			FORM.FrmIdentificacaoInt_Senha.focus();
		}
		else
		{
			FORM.action = "https://sorte24horas.websiteseguro.com/login_cliente_int.php";
			FORM.submit();  
		}
	}
	
	function IniciarCadastro()
	{
		var FORM = document.FormNovoCliente;
		
		if(FORM.Novo_Email.value.indexOf('@', 0) == -1 || FORM.Novo_Email.value.indexOf('.', 0) == -1)
		{
			alert("Preencha o e-mail corretamente");
			FORM.Novo_Email.focus();
		}
		else
		{
			FORM.action = "http://www.sorte24horas.com.br/index.php?Secao=cadastro";
			FORM.submit();  
		}
	}