var WindowObjectReference = null; // global variable

window.name = "main";

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


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

function initScroller() {
  // arguments: id of layer that scrolls, width and height of scroller (of wn),
  // number of items (including repeated 1st item), axis ("v" or "h")
  // set up pause/resume onmouseover/out? (true or false)
  var scr1 = new dw_scroller('cnt', 250, 150, 10, "v", true);
  scr1.setTiming(30, 30);
}
