tela = {
	moveTo : function(x,y) { window.scroll(x,y); },
	moveBy : function(x,y) { this.moveTo(this.sx()+x,this.sy()+y) },
	sx : function() { return (is.ie) ? (document.body.scrollLeft) : (window.pageXOffset) },
	sy : function() { return (is.ie) ? (document.body.scrollTop) : (window.pageYOffset) },
	dw : function() { return (is.ie) ? (document.body.scrollWidth) : (document.width) },
	dh : function() { return (is.ie) ? (document.body.scrollHeight) : (document.height) },
	ww : function() { return (is.ie) ? (document.body.clientWidth) : (window.innerWidth) },
	wh : function() { return (is.ie) ? (document.body.clientHeight) : (window.innerHeight) },
	sw : function() { return (screen.width) },
	sh : function() { return (screen.height) }
};

function popup(pagina,largura,altura,nome,mais) {
	calcleft = (tela.sw() / 2) - (largura / 2);
	calctop = (tela.sh() / 2) - (altura / 2);
	pop = window.open(''+pagina+'',''+nome+'','width='+largura+',height='+altura+',left='+calcleft+',top='+calctop+',scrollbars=1'+((mais)?','+mais:''));
	pop.focus();
}