function TimedRedirect(url, seconds)
{
	setTimeout("Redirect('" + url + "')", (seconds * 1000));
}

function Redirect(url)
{
	window.location = url;
}

function AdicionaHeaderRSS(link, titulo)
{
	var html_doc = document.getElementsByTagName('head').item(0);
	var objeto = document.createElement('link');
	objeto.setAttribute('rel', 'alternate');
	objeto.setAttribute('type','application/rss+xml');
	objeto.setAttribute('href', link);
	objeto.setAttribute('title', titulo);
	html_doc.appendChild(objeto);
	return false;
}

function AbrePopup(url, nome, largura, altura, center)
{	
	var modo = 'width=' + largura + ', height=' + altura;
	
	if (center) {
		winX = Math.ceil(((screen.width - 23) - largura) / 2);
		winY = Math.ceil(((screen.height -27) - altura) / 2);
		modo += ', top=' + winY + ', left=' + winX + ', scrollbars=yes';
	}
	
	window.open(url, nome, modo);
}