<!--

//----------------------------------------------------------------------

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";
img2	= new Image(124,25); img2.src	= "images/b_cosa_1.jpg";
img2_r 	= new Image(124,25); img2_r.src	= "images/b_cosa_2.jpg";
img3	= new Image(120,25); img3.src	= "images/b_servizio_1.jpg";
img3_r 	= new Image(120,25); img3_r.src	= "images/b_servizio_2.jpg";
img4	= new Image(125,25); img4.src	= "images/b_comunicazione_1.jpg";
img4_r 	= new Image(125,25); img4_r.src	= "images/b_comunicazione_2.jpg";
img5	= new Image(80,25); img5.src	= "images/b_progetti_1.jpg";
img5_r 	= new Image(80,25); img5_r.src	= "images/b_progetti_2.jpg";
img6	= new Image(61,25); img6.src	= "images/b_eventi_1.jpg";
img6_r 	= new Image(61,25); img6_r.src	= "images/b_eventi_2.jpg";
img7	= new Image(66,25); img7.src	= "images/b_utilita_1.jpg";
img7_r 	= new Image(66,25); img7_r.src	= "images/b_utilita_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');
}

// apertura di un link
function apriLink(link,target) {

}


// 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;
	}
}




//-->