<!--

// bottoni header
img1	= new Image(85,18); img1.src	= "images/b_hp1.jpg";
img1_r 	= new Image(85,18); img1_r.src	= "images/b_hp2.jpg";


function imgOn(imgX){
	document.images [imgX].src = eval(imgX + "_r.src");
}

function imgOff(imgX){
	document.images [imgX].src = eval(imgX + ".src");
}

function showDiv(tabName) {
	hiddenDiv("divAzienda");
	hiddenDiv("divEsposizioni");
	hiddenDiv("divGalleria");
	hiddenDiv("divProdotti");
//	hiddenDiv("divPensieri");
	hiddenDiv("divTV");
	if (tabName) {
		document.all[tabName].style.display = "block";
	}
}

function hiddenDiv(tabName) {
	if (tabName) {
		document.all[tabName].style.display = "none";
	}
}

function vediGrande(prodotto) {hrefloc = location
	winCoin=window.open ("", "Foto_Grande", "toolbar=no,directories=no,menubar=no,scrollbars=yes,width=740,height=600");
	winCoin.document.write ("<html><head><base href=" + hrefloc + "><title></title>");
	winCoin.document.write ("<body onLoad='self.focus()' background='../images/s_main.jpg'>");
	winCoin.document.write ("<center><img src='" + prodotto + "' border='0'><p>");
	winCoin.document.write ("<form><input type='button' value='chiudi questa finestra' onClick=window.close()>");
	winCoin.document.write ("</form></center></body></html>");
	winCoin.document.close ();
}

function vediStampaGrande(articolo) {hrefloc = location
	winCoin=window.open ("", "Articolo_Grande", "toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=740,height=600");
	winCoin.document.write ("<html><head><base href=" + hrefloc + "><title></title>");
	winCoin.document.write ("<body onLoad='self.focus()' bgcolor='#FFFFFF'>");
	winCoin.document.write ("<center><img src='" + articolo + "' border='0'><p>");
	winCoin.document.write ("<form><input type='button' value='chiudi questa finestra' onClick=window.close()>");
	winCoin.document.write ("</form></center></body></html>");
	winCoin.document.close ();
}


function vediFoto(foto,w,h) {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='#FFFFFF'>");
	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 ();
}


function checkFormContatti() {
	var errore = '';
	if (!((document.modulo.nome.value) || (document.form.ditta.value))) {
		errore = '\n - il Nome o la Società';
	}
	if (!(document.modulo.tel.value)) {
		errore = errore + '\n - il Telefono';
	}
	if (errore) {
		alert('ATTENZIONE !!!\nti sei dimenticato di compilare i seguenti dati:' + errore);
		return false;
	}
	else {
		return checkPrivacy();
	}
}


function checkPrivacy() {
	if (!(document.modulo.privacy[0].checked)) {
		alert('ATTENZIONE !!!\nse non si consente al trattamento dei dati personali secondo la legge 196/03, non è possibile proseguire.');
		return false;
	}
}


// -->
