// JavaScript Document

	var i=0;
	var interv=0;

  function tFunc1() {
		var campo = document.getElementById("campo");
		campo.innerHTML = campo.innerHTML + ".";
		i++;
		interv = window.setTimeout("tFunc1()",500);
		if(i==4){
			campo.innerHTML = "<b>Aguarde redirecionando</b>";
			//i=0;
	    }
		if(i==7){
			redirect1();
		}
  }
	  
	  
  function redirect1(){
	  location.href = "http://faculdade28horas.com.br/ead/ead20072";
	  clearInterval(interv);
  }


  function tFunc2() {
		var campo = document.getElementById("campo");
		campo.innerHTML = campo.innerHTML + ".";
		i++;
		interv = window.setTimeout("tFunc2()",500);
		if(i==4){
			campo.innerHTML = "<b>Aguarde redirecionando</b>";
			//i=0;
	    }
		if(i==7){
			redirect2();
		}
  }
	  
	  
  function redirect2(){
	  location.href = "http://faculdade28horas.com.br/ctid/ctid20072";
	  clearInterval(interv);
  }


  function tFunc3() {
		var campo = document.getElementById("campo");
		campo.innerHTML = campo.innerHTML + ".";
		i++;
		interv = window.setTimeout("tFunc3()",500);
		if(i==4){
			campo.innerHTML = "<b>Aguarde redirecionando</b>";
			//i=0;
	    }
		if(i==7){
			redirect3();
		}
  }
	  
	  
  function redirect3(){
	  location.href = "http://faculdade28horas.com.br/ead/ead20081";
	  clearInterval(interv);
  }


	function popup(){
		window.open("popup.php",null,"height=220,width=400,status=yes,toolbar=no,menubar=no,location=no");
	}


	function setHeight(){
		document.getElementById("frmLeft").style.height = 350+"px";
		document.getElementById("frmRight").style.height = 350+"px";			
	}


	function notifica(){
		if(document.frmLogin.username.value == "" && document.frmLogin.password.value == "" ){
			document.getElementById("Notify").innerHTML = "<font color='#FF0000' size='2px'>Informe nome de usuário e senha.</font>";
			document.frmLogin.username.focus();
			return false;
		}
		if(document.frmLogin.username.value == ""){
			document.getElementById("Notify").innerHTML = "<font color='#FF0000' size='2px'>Informe nome de usuário.</font>";
			document.frmLogin.username.focus();
			return false;
		}
		if(document.frmLogin.password.value == ""){
			document.getElementById("Notify").innerHTML = "<font color='#FF0000' size='2px'>Informe a senha.</font>";
			document.frmLogin.password.focus();
			return false;
		}
	}

