<!--
//
// Copyright (c) Nuno Ferreira
//	Created: 16/08/2003
//	Last modified: 18/08/2003
//
// You're free to use this code, if you:
// - Don't change the source code
// - Maintain the copyright notice
// - Include on your site a notice of this fact
// - Link your site to mine: Nuno Ferreira (www.nuno.net)
// - Send me an e-mail, so I can link my site to your's
//

function refreshreg(ok) {
	reg = window.top.nf_header1;
	if (reg) {
		reg.document.location.reload(true);
//		reg.close();
		}
	else {
		self.document.location.reload(true);
//		self.close();
		}
}
function showmsg() {}

NFid="";
NFuser="x";
NFname="x";
if (NFscript=="OK") {
  getusrdat();
  if (NFid!="0") {
    document.write("<p class=\"foottitle\">"+NFname+"</p>");
    document.write("<p class=\"foot\">&nbsp;<a href=\"x.htm\">Pessoal</a> | ",
      "<a id=\"CGImsg\" target=\"_self\" href=\"javascript:NFsubmit(undefined,'logout',undefined,refreshreg);\">Desligar</a> | ",
      "<a href=\"/pt/x_login.htm\"><b>Identificar</b></a> |</p>");
    }
  else {
    document.write("<p class=\"reglinktit\">Registo "+NFdomain+"</p>");
    document.write("<p class=\"reglinks\">&nbsp;<a href=\"/pt/x_newuser.htm\">Registar</a> | ",
      "<a href=\"/pt/x_validate.htm\">Validar</a> | ",
      "<a href=\"/pt/x_login.htm\"><b>Identificar</b></a> | ",
      "Lembrar |</p>");
    }
  }
else {
  document.write("<p class=\"reglinktit\">Registo</p>");
  document.write("<p class=\"reglinks\">&nbsp;Serviço temporariamente indisponível.");
  }

//-->
