var WindowObjectReference = null; // global variable
// Apre popup
function openRequestedPopup(strUrl, strWindowName, strWidth, strHeight) {
  if(WindowObjectReference == null || WindowObjectReference.closed) {
    WindowObjectReference = window.open(strUrl, strWindowName,
           //"resizable=yes,scrollbars=yes,status=yes,width="+strWidth+",height="+strHeight);
			"resizable=yes,scrollbars=yes,status=yes,width=550,height=500");
  }
  else {
	WindowObjectReference.close();
	 WindowObjectReference = window.open(strUrl, strWindowName,
           //"resizable=yes,scrollbars=yes,status=yes,width="+strWidth+",height="+strHeight);
	 		"resizable=yes,scrollbars=yes,status=yes,width=550,height=500");	
	//WindowObjectReference.focus();
  };
}


//Stampa
function printpage() 
{ 
  if (window.print) 
  { 
    window.print(); 
  } 
  else 
  { 
    alert('Funzione non supportata dal browser.'); 
  } 
} 



/*

//rollOver IE

var righe = document.getElementsByTagName('li'); 
for (var i = 0; i < righe.length; i++) { 

	righe[i].onmouseover = function() {
		if (this.className == 'conRollOver'){ 
			
			this.className = this.className.replace('conRollOver','secondocolore');
		} 
	}
righe[i].onmouseout = function() { 
if (this.className == 'secondocolore'){ 
this.className = this.className.replace('secondocolore', 'conRollOver'); 
}
 
}
*/

