function frmContatti_validation() {
	var verify = true;
	with (document.frmContatti) {
		if ((nominativo.value == "") ||
			(email.value == "") || 
			(indirizzo.value == "") ||
			(citta.value == "") ||
			(cap.value == "") || 
			(messaggio.value == "")) {
			verify = false;
			alert("Dati non validi");
		}
	}
	return verify;
}

function frmOrdine_validation() {
	var verify = true;
	with (document.frmOrdine) {
		if ((nominativo.value == "") || 
		   (p_iva.value == "" && c_fiscale.value == "") ||
			(email.value == "") || 
			(indirizzo.value == "") || 
			(citta.value == "") || 
			(cap.value == "") || 
			(telefono.value == "")) {
			verify = false;
			alert("Dati non validi");
		}
	}
	return verify;
}

function OpenWindow(file) {
	window.open(file,"Foto","menubar=0,scrollbars=0,statusbar=0,width=520,height=400");
}

function Zoom(file,w,h) {
	window.open(file,"Foto","menubar=0,scrollbars=0,statusbar=0,width=" + w + ",height=" + h);
}


/*  
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
Script featured at SimplytheBest.net http://simplythebest.net/scripts/
*/
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");