var net4 = (document.layers) ? true:false;
var net6 = ((navigator.appName.indexOf("Net") != -1) && !net4);
var ie5 = (document.getElementById && !net6) ? true:false;
var ie4 = (document.all && !document.getElementById) ? true:false;
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var dom = (document.getElementById) ? true:false;

function vaiSelect(which){
	self.location.href = which;
}

function vaiSelectConsiag(which){
	self.location.href = which;
}

function vaiSelectFiloDiretto(which){
	self.location.href = '/root/ser_filodir.asp?idoff='+which;
}

function controllaMail(which){
	ok = true	
	if (!which.oggettoMail.value) {
		alert("Riempire il campo Oggetto")	
		which.oggettoMail.focus()	
		ok = false
		return false
	}
	if (!which.testoMail.value) {
		alert("Riempire il campo Testo")	
		which.testoMail.focus()	
		ok = false
		return false
	}
	if (!which.mittMail.value) {
		alert("Riempire il campo Email Mittente")	
		which.mittMail.focus()	
		ok = false
		return false
	}	
	if (ok) {
	
	which.submit();	
	}
}
