var url="../interface/popup.html";
var url2="../interface/fullscreen.htm";
var altura=640;
var largura=1000;
var tAltura = screen.height;
var tLargura = screen.width;

var PTop = (tAltura / 2) - (altura / 2);
var PLeft = (tLargura / 2) - (largura / 2);

function abrir(){
		janela=window.open(url,"pop","menubar=no,scrollbars=no,status=no,toolbar=no,width="+largura+",height="+altura+",left="+PLeft+",top=" + PTop);
		//interceptacao de erro na abertura da janela
		text = "Se a janela nao estava abrindo talvez seja porque voce tenha um programa bloqueador de pop-up! Observacao » O windows XP service pack 2 bloqueia pop-ups!";
		
		if(janela == null)
		{
			alert(text);
			return;
		}
}

<!-- Begin
function openFullscreen(page) {
var yes = 1;
var no = 0;
var menubar = no; // The File, Edit, View Menus
var scrollbars = no; // Horizontal and vertical scrollbars
var locationbar = no; // The location box with the site URL
var directories = no; // the "What's New", "What Cool" links
var resizable = no; // Can the window be resized?
var statusbar = no; // Status bar (with "Document: Done")
var toolbar = no; // Back, Forward, Home, Stop toolbar
if (navigator.appName == "Microsoft Internet Explorer"){ // better be ie6 at least
windowprops = "width=" + (screen.width-10) + ",height=" + (screen.height-30) + ",top=0,left=0";
}
else { // i.e. if Firefox
windowprops = "width=" + (screen.width-5) + ",height=" + (screen.height-30) + ",top=0,left=0";
}
windowprops += (menubar ? ",menubars" : "") +
(scrollbars ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");
window.open(page, 'fullPopup', windowprops);
window.opener = top; // this will close opener in ie only (not Firefox)
}
// End -->
