<!--  INÍCIO DA DATA  -->
Sem     = new Array(7)
Meses   = new Array(12)
Sem[0] = 'Domingo'; Sem[1] = 'Segunda-feira'; Sem[2] = 'Terça-feira';  Sem[3] = 'Quarta-feira';
Sem[4] = 'Quinta-feira';  Sem[5] = 'Sexta-feira';   Sem[6] = 'Sábado';
Meses[0]  = 'janeiro'; Meses[1]  = 'fevereiro'; Meses[2]  = 'março';
Meses[3]  = 'abril';   Meses[4]  = 'maio';      Meses[5]  = 'junho';
Meses[6]  = 'julho';   Meses[7]  = 'agosto';    Meses[8]  = 'setembro';
Meses[9]  = 'outubro'; Meses[10] = 'novembro';  Meses[11] = 'dezembro';
hoje  = new Date()
Nsem  = hoje.getDay()
Nmes  = hoje.getMonth()
Dia   = hoje.getDate()
Ano   = hoje.getFullYear()
DiaSem   = Sem[Nsem]
Mes      = Meses[Nmes]
MesNum   = Nmes + 1
if(Dia < 10)    { Dia = '0' + Dia }
if(MesNum < 10) { MesNum = '0' + MesNum }
if(Ano < 2000)    { Ano = '19' + Ano }
DataCompleta  = DiaSem + ', ' + Dia + ' de ' + Mes + ' de ' + Ano + '.'
DataPadrao    = Dia + '.' + MesNum + '.' + Ano + '.'
DataCompacta  = DiaSem + ', ' + DataPadrao + '.'

function ShowData(data) {
  document.write(eval(data))
}
<!--  FIM DA DATA  -->

<!--  INÍCIO DO POPUP  -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!--  FIM DO POPUP  -->

<!--  INÍCIO DA BARRA DE STATUS  -->
window.defaultStatus=" Universidade do Estado do Pará - Uepa.br "
<!--  FIM DA BARRA DE STATUS  -->

<!--  INÍCIO DA TROCA BARRA DE STATUS  -->
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
<!--  FIM DA TROCA BARRA DE STATUS  -->

<!--  INÍCIO DO IFRAME DINÂMICO  -->
function resize_iframe(){
document.getElementById("sizeframe").height=null // required for Moz bug, value can be "", null, or integer
document.getElementById("sizeframe").height=window.frames["sizeframe"].document.body.scrollHeight
}
<!--  FIM DO IFRAME DINÂMICO  -->

<!--  INICIO DO CHAT  -->
function formIsValid() {
	// check to make sure a valid username has been entered
	if ( document.login.username.value == "" ) {
		alert('Preencha o campo nome.');
		return false;
	}

	return true;
}

// a small poupup window to show who's in the chat at the current time
function showInfo() {
	// the size of the popup window
	var width = 350;
	var height = 330;

	// the x,y position of the popup window
	// NOTE: this formula will auto-center the popup on the screen
	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = "http://www.plenoideal.com.br/chat/info.php";
	var options = "width=" + width + ",height=" + height + ",top=" + y + ",left=" + x + ",resizable";

	// open the info window as a popup, instead of embedded in webpage
	window.open( url, "info", options );
}

function basicLogin() {
	if (formIsValid()) document.login.submit();
}

function popupLogin() {
	// check to make sure a valid username has been entered
	if (!formIsValid()) return;

	var username = document.login.username.value;
//	var password = document.login.password.value; PARAMETROS PASSADOS NO VAR URL
//	var lang = document.login.lang.value;

	// tamanho da janela do popup
	var width = 800;
	var height = 600;

	// the x,y position of the popup window
	// NOTE: this formula will auto-center the popup on the screen
	var y = (screen.height - height) / 2;
	var x = (screen.width - width) / 2;

	var url = "http://www.plenoideal.com.br/chat/flashchat.php?username=" + username + "&lang=br";
	var options = "width=" + width + ",height=" + height + ",top=" + y + ",left=" + x + ",resizable";

	// open the chat window as a popup, instead of embedded in webpage
	window.open( url, "chat", options );
}
//-->
<!--  FIM DO CHAT  -->
