apro delle popup che dovrebbero contenere un immagine
a volte la mostra
a volte mi apre una popup bianca, se provo a riaprirla c'è la possibilità che me la mostri

function viewFoto(img){
foto= new Image();
foto.src=img;
w=foto.width;
h=foto.height;
stringa="scrollbars=no,resizable=yes,screenX=0,scr eenY=0,";
stringa+="width="+(w)+",height="+(h);
window.open("","IchnusaBike",stringa).document.wri te("<html><head><title>IchnusaBike</title></head><body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>[img]+img+[/img]</body></html>") ;
}

<a href=\"#\" onClick=\"viewFoto('include/vedimmagine.inc.php?query=$queryV')\">

il file.php mi recupera la foto dal db