function gowindow1(str, titolo,w,h) {
 openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=yes,resizable=no,location=no,toolbar=no');
 }

function gowindow(str, titolo,w,h) {
 openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=no,resizable=no,location=no,toolbar=no');
 }
 
// funzione mouseover
var W3CDOM = (document.createElement && document.getElementsByTagName);

var mouseOvers = new Array();
var mouseOuts = new Array();

window.onload = init;

function init()
{
	if (!W3CDOM) return;
	var nav = document.getElementById('dx');
	if(nav){
	 var imgs = nav.getElementsByTagName('img');
	 for (var i=0;i<imgs.length;i++)
	 {
		imgs[i].onmouseover = mouseGoesOver;
		imgs[i].onmouseout = mouseGoesOut;
		var suffix = imgs[i].src.substring(imgs[i].src.lastIndexOf('.'));
		mouseOuts[i] = new Image();
		mouseOuts[i].src = imgs[i].src;
		mouseOvers[i] = new Image();
		mouseOvers[i].src = imgs[i].src.substring(0,imgs[i].src.lastIndexOf('.')) + "x" + suffix;
		imgs[i].number = i;
	 }
	} //if(nav){
}

function mouseGoesOver()
{
	this.src = mouseOvers[this.number].src;
}

function mouseGoesOut()
{
	this.src = mouseOuts[this.number].src;
}

// controlli form newsletter
function controlli_ita(form)
  {
  msg= "Manca l'autorizzazione al trattamento dei dati personali!\n";
  if(!document.getElementById('autorizzazione').checked) {alert(msg); return false;}
  else {return true;}
	 }
	 
function controlli_ted(form)
  {
  msg= "Es fehlt die Autorisierung zur Behandlung der Daten!\n";
  if(!document.getElementById('autorizzazione').checked) {alert(msg); return false;}
  else {return true;}
	 }
	 
function controlli_eng(form)
  {
  msg= "You have to authorize the transmission of your personal details!\n";
  if(!document.getElementById('autorizzazione').checked) {alert(msg); return false;}
  else {return true;}
     }