defaultStatus= "::EnerGia_Da::";
function PopupOss() {
	var w = 608;
	var h = 520;
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
      window.open("osservatorio.php","Osservatorio","scrollbars=yes,resizable=yes,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function confirmSubmit() {
	setTimeout('mostraMessaggio()',1000);
	return true ;
}
function mostraMessaggio() {
	document.mailform.testo.value = 'Messaggio Inviato Grazie';
}
function PopupPub() {
	var w = 400;
	var h = 320;
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
      window.open("avviso.php","Avviso","scrollbars=no,status=no,resizable=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
function PopupFLV(a) {
	var nome="lettore";
	var w = 500;//190 little
	var h = 300;//190 little  id senza BIG solo lettore
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
      window.open("popup_flv.php?id="+a+"","Trailer","scrollbars=no,status=no,resizable=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
/*
function PopupPub() {
	var w = 400;
	var h = 220;
	var l = Math.floor((screen.width-w)/2);
	var t = Math.floor((screen.height-h)/2);
      window.open("popup.php","Australia","scrollbars=no,status=no,resizable=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}
*/
/*****************2 funzioni che gestiscono il campo password nel log in***********/
function cambia(pp){
	var dd = document.getElementById("psw");
	pp.className='dati-in';
	if(pp.name=='username'){
		if(pp.value=='User: [Alt+n]'){pp.value='';}
		}
	if(pp.name=='password'){
		dd.innerHTML='<input type="password" name="password" id="password" value="" tabindex="2" accesskey="e" class="dati-in"  onblur="ricambia(this)" onfocus="this.className=\'dati-in\'">'
		setTimeout('document.login.password.focus()',50);
	}
}
function ricambia(pp){
	pp.className='dati-out';
	if(pp.name=='username'){
		if(pp.value==''){pp.value='User: [Alt+n]';}
		}
	if(pp.name=='password' && pp.value==''){
		var dd = document.getElementById("psw");
		dd.innerHTML='<input type="text" name="password" id="password" value="Pass: [Alt+e]" tabindex="2" accesskey="e" class="dati-out"  onfocus="cambia(this)">'
	}
}

/*****************POP UP*******************************/
function PopupFoto(z) {
//fh=screen.height-40;  theID
//fl=screen.width-5;    +theID+
var h=160;
var w=160;
var l = 1;
var t = 1;
      //window.open("popup.htm","Immagine","scrollbars=no,resizable=no,width=" + fl + ",height=" + fh + ",top=" + t + ",left=" + l);
      // popgallery.php?id
      window.open("popup.php?id="+ z ,"Foto","scrollbars=no,resizable=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);

}