
function abre_popup (x,w,h,n,com_scroll, status_bar) {
	rolagem = "";
	barra_status = '';
	if (com_scroll != null) { rolagem = "yes"} else { rolagem = "no" }
	if (status_bar != null) { barra_status = "yes"} else { barra_status = "no" }
	var l = ( (window.screen.width  - w) / 2 -10);
	var t = ( (window.screen.height - h) / 2 -20);
	if (n != '') {
	    janelinha = window.open(x,n,'leftmargin=0,topmargin=0,marginheight=0,marginwidth=0,toolbar=no,location=no,directories=no,status=' + barra_status + ',menubar=no,scrollbars=' + rolagem + ',resizable=no,top='+t+',left='+l+',screenX='+l+',screenY='+t+',copyhistory=no,height='+h+',width='+w+'');
	} else {
	    janelinha = window.open(x,'','leftmargin=0,topmargin=0,marginheight=0,marginwidth=0,toolbar=no,location=no,directories=no,status=' + barra_status + ',menubar=no,scrollbars=' + rolagem + ',resizable=no,top='+t+',left='+l+',screenX='+l+',screenY='+t+',copyhistory=no,height='+h+',width='+w+'');
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


