function centerpopup(URL,width,height){
if (parseInt(navigator.appVersion) >= 3){
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)<5){
var tools = new Packages.java.awt.Toolkit.getDefaultToolkit();
screen=tools.getScreenSize();
}
x = screen.width;
y = screen.height;
}
window.open(URL,"dummy","top=" + parseInt(y/2-height/2-16) + ",left=" + parseInt(x/2-width/2-5) + ",width=" + width + ",height=" + height );
}
function conferma2(url){ 
if (confirm("Stai per eliminare questo annuncio, Continuare?")) { 
document.location.href = url; 
}else { return false }{ 
return ; 
} 
} 
function MM_openBrWindow(pag,imageName,alt)
{ 
  var x=800; var y=600;
  immagine = new Image(); 
  immagine.src = imageName;//url immagine 
  imageWidth=immagine.width+20;//lettura W 
  imageHeight=immagine.height+20 ;//lettura H

  newWindow = window.open(pag,"newWindow","width="+imageWidth+",height="+imageHeight ); 
  }
function apri(url_foto,des_foto){
addr="fullsize.htm?"+url_foto+"&"+escape(des_foto)
alt=150
lar=150
rszb=(document.layers)?1:0;
props='height='+alt+',width='+lar+',top='+parseInt((screen.availHeight-alt)/2)+',left='+parseInt((screen.availWidth-lar)/2)+',scrollbars=0,resizable='+rszb+',toolbar=0,menubar=0,location=0,status=0';
window.open(addr,'_blank',props);
}
