<!--

//----------------------------------------------------------------------


img1ita		= new Image(134,22); img1ita.src	= "images/b_home1_ita.jpg";
img1ita_r 	= new Image(134,22); img1ita_r.src	= "images/b_home2_ita.jpg";
img2ita		= new Image(134,22); img2ita.src	= "images/b_gomm1_ita.jpg";
img2ita_r 	= new Image(134,22); img2ita_r.src	= "images/b_gomm2_ita.jpg";
img3ita		= new Image(134,22); img3ita.src	= "images/b_metl1_ita.jpg";
img3ita_r 	= new Image(134,22); img3ita_r.src	= "images/b_metl2_ita.jpg";
img4ita		= new Image(134,22); img4ita.src	= "images/b_spez1_ita.jpg";
img4ita_r 	= new Image(134,22); img4ita_r.src	= "images/b_spez2_ita.jpg";
img5ita		= new Image(134,22); img5ita.src	= "images/b_enrg1_ita.jpg";
img5ita_r 	= new Image(134,22); img5ita_r.src	= "images/b_enrg2_ita.jpg";
img6ita		= new Image(134,22); img6ita.src	= "images/b_cont1_ita.jpg";
img6ita_r 	= new Image(134,22); img6ita_r.src	= "images/b_cont2_ita.jpg";
img7ita		= new Image(134,22); img7ita.src	= "images/b_zucc1_ita.jpg";
img7ita_r 	= new Image(134,22); img7ita_r.src	= "images/b_zucc2_ita.jpg";

img1eng		= new Image(134,22); img1eng.src	= "images/b_home1_ita.jpg";
img1eng_r 	= new Image(134,22); img1eng_r.src	= "images/b_home2_ita.jpg";
img2eng		= new Image(134,22); img2eng.src	= "images/b_gomm1_ita.jpg";
img2eng_r 	= new Image(134,22); img2eng_r.src	= "images/b_gomm2_ita.jpg";
img3eng		= new Image(134,22); img3eng.src	= "images/b_metl1_ita.jpg";
img3eng_r 	= new Image(134,22); img3eng_r.src	= "images/b_metl2_ita.jpg";
img4eng		= new Image(134,22); img4eng.src	= "images/b_spez1_ita.jpg";
img4eng_r 	= new Image(134,22); img4eng_r.src	= "images/b_spez2_ita.jpg";
img5eng		= new Image(134,22); img5eng.src	= "images/b_enrg1_ita.jpg";
img5eng_r 	= new Image(134,22); img5eng_r.src	= "images/b_enrg2_ita.jpg";
img6eng		= new Image(134,22); img6eng.src	= "images/b_cont1_ita.jpg";
img6eng_r 	= new Image(134,22); img6eng_r.src	= "images/b_cont2_ita.jpg";
img7eng		= new Image(134,22); img7eng.src	= "images/b_zucc1_ita.jpg";
img7eng_r 	= new Image(134,22); img7eng_r.src	= "images/b_zucc2_ita.jpg";



function imgOn(imgX) {
	document.images [imgX].src = eval(imgX + "_r.src");
}

function imgOff(imgX) {
	document.images [imgX].src = eval(imgX + ".src");
}

function showObj(tabName) {
	if (tabName) {
		if(document.getElementById) {
			document.getElementById(tabName).style.display = "block";
		}
		else if(document.all) {
			document.all[tabName].style.display = "block";
		}
	}
}

function hiddenObj(tabName) {
	if (tabName) {
		if(document.getElementById) {
			document.getElementById(tabName).style.display = "none";
		}
		else if(document.all) {
			document.all[tabName].style.display = "none";
		}
	}
}

function vediFoto(foto,w,h) {
	if (w=="") {w=600;}
	if (h=="") {h=600;}
	hrefloc = location
	winCat=window.open ("", "Foto_Grande", "toolbar=no,directories=no,menubar=no,scrollbars=yes,width="+ w +",height="+ h );
	winCat.document.write ("<html><head><base href=" + hrefloc + "><title></title>");
	winCat.document.write ("<body onLoad='self.focus()' bgcolor='#000000'>");
	winCat.document.write ("<p align='center'><img src='" + foto + "' border='0'></p>");
	winCat.document.write ("<form><p align='center'><input type='button' value='chiudi' onClick='window.close()' style='font-family: verdana, arial; font-size: 10px;'></p>");
	winCat.document.write ("</form></body></html>");
	winCat.document.close ();
}

// per aprire un link, anche di file, in un pop-up
function apri(url,popWidth,popHeight) {
	if (popWidth=="") {popWidth=400;}
	if (popHeight=="") {popHeight=400;}
//	newin = window.open('','page','scrollbars=yes,resizable=yes, width='+ popWidth +',height='+ popHeight +',status=no,location=no,toolbar=no');
//	newin.close();
	newin = window.open(url,'page','scrollbars=yes,resizable=yes, width='+ popWidth +',height='+ popHeight +',status=no,location=no,toolbar=no');
}


// funzione di pulitura di campo text. funzionamento: pulisciCampo(this)
function pulisciCampo(obj) {
	obj.value = "";
}

function ColoraSfondo(obj,colore) {
  obj.style.backgroundColor = '#'+ colore;
}


function mesgProv1() {
	alert('sezione in fase di attivazione.');
}


// funzione di controllo dati di accesso all'area riservata [box]
function ckformAreaRis() {
	if ((!document.arearis.user.value)||(!document.arearis.pass.value)) {
		alert('Dati non completi.\nInserire username e password per poter proseguire');
		return false;
	}
	else {
		return true;
	}
}




//-->
