<!--

//----------------------------------------------------------------------
/*
img1	= new Image(83,25); img1.src	= "images/b_chi_1.jpg";
img1_r 	= new Image(83,25); img1_r.src	= "images/b_chi_2.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;
	}
}




//-->
