<!--//begin
function popout(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function popup(url,wheight,wwidth) {
var winl = (screen.width - wwidth) / 2;
var wint = (screen.height - wheight) / 2;
var openString
openString = "'width=" + wwidth + ",height=" + wheight + ",top="+wint+",left="+winl+"'"
sealWin=window.open(url,"",openString);
//javascript:window.close()
}

function GetPage(s)
   {
	var d = s.options[s.selectedIndex].value;
        window.top.location.href = d;
        s.selectedIndex=0;
   }

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes");
}

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,0);
  }
}
function viewFoto(img){
  largh=foto1.width+15;
  altez=foto1.height+15;
  var winl = (screen.width - largh) / 2;
  var wint = (screen.height - altez) / 2;  
  stringa="location=0,resizable=0,width="+largh+",height="+altez+",top="+wint+",left="+winl;
  finestra=window.open(img,"",stringa);
}

//end-->