function pop(w,h,f) {
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
	window.open(f,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l +",scrollbars=no");
}
function popscroll(w,h,f) {
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
	window.open(f,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l +",scrollbars=yes");
}

function inizializza() {
a = document.getElementsByTagName('A');
for(i=0;a[i];i++) if(a[i].className.indexOf('blank') != -1) {
a[i].onclick = function () {
info=this.rel.split('_');
w=info[0];
h=info[1];
s=info[2];
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
valori='width='+w+',height='+h+',top='+t+',left='+l+',scrollbars='+s+',toolbar=no,location=no,status=no,menubar=no';
window.open(this.href,'',valori);
return false;
};
a[i].onkeypress = function (e) {
k = (e) ? e.keyCode : window.event.keyCode;
if(k==13) {
info=this.rel.split('_');
w=info[0];
h=info[1];
s=info[2];
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
valori='width='+w+',height='+h+',top='+t+',left='+l+',scrollbars='+s+',toolbar=no,location=no,status=no,menubar=no';
window.open(this.href,'',valori);
return false;
}
}
}
}
window.onload = function() {inizializza();}