function pok1(img){
  foto1= new Image();
  foto1.src=(img);
  pok2(img);
}
function pok2(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    pok3(img);
  }
  else{
    fun1="pok2('"+img+"')";
    intervallo=setTimeout(fun1,20);
  }
}
function pok3(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  fine=window.open(img,"",stringa);
}

function pokt(xdok,xnaz,xlef,xtop,xwid,xhei){

  stringa="left="+xlef+",top="+xtop+",width="+xwid+",height="+xhei;
  fine=window.open(xdok,xnaz,stringa);
}

function poktr(xdok,xnaz,xlef,xtop,xwid,xhei){

  stringa="scrollbars,left="+xlef+",top="+xtop+",width="+xwid+",height="+xhei;
  fine=window.open(xdok,xnaz,stringa);
}
function roz(xdok,xnaz,xlef,xtop,xwid,xhei){
  stringa="scrollbars,left="+xlef+",top="+xtop+",width="+xwid+",height="+xhei;
  fine=window.open(xdok,xnaz,stringa);
  window.close();
  history.go(0)
}



