/*var windowX = Math.ceil((window.screen.width  - XX) / 2);
var windowY = Math.ceil((window.screen.height - YY) / 2)-40;

function foto(endereco) {
	//X = 538;
	//Y = 680;
	X = Y = 100;
	XX = X+36;
	YY = Y+100;
	parametros='fullscreen=0,location=0,directories=0,menubar=0,scrollbars=0,status=0,toolbar=0,resizable=0,width=' + XX.toString()+ ',height=' +YY.toString();

	fotinho = window.open ('foto.php?f='+endereco+'&width='+X+'&height='+Y, 'fotinho', parametros);
	fotinho.focus();
}
*/

function popup(secao) {
	pop('popup.asp?secao='+secao, 500, 200,0);
}

function pop(endereco, X, Y, rolagem, nome) {
	parametros='fullscreen=0,location=0,directories=0,menubar=0,scrollbars='+rolagem+',status=0,toolbar=0,resizable=0,width=' + X.toString()+ ',height=' +Y.toString();
	nova = window.open (endereco, nome, parametros);
	if (navigator.platform == 'MacPPC') nova.resizeTo (X, Y);
	nova.focus();
}

//var z=0;
function display(id, on_off) { 
	var el = document.all ? document.all[id] : document.getElementById(id);  if(el) el.style.display = on_off ? '' : 'none'; 
}




