	function CheckDigit(e,tipo)
	{
		//alert(obj.value);
		var cod = null;
		// browser sniffer
		if(window.event) {  // for IE, e.keyCode or window.event.keyCode can be used
			cod = e.keyCode;
		}
		else if(e.which) { // netscape or Firefox
			cod = e.which;
		}
			
		//alert(cod);
		
		if (cod == 39 && e.which) {//Firefox
			e.preventDefault();
			return false;
		}
		else if (cod == 39 && window.event) {//IE
			e.returnValue = false;
			return false;
		}


		if (tipo == "pass")
			return true
		
		if (cod == 13 && tipo == 'invia') {	// NO return e invia il form
			document.getElementById("FormArea").submit();
			return;
		}

		if (cod == 13 && tipo == 'tab')	{ // return con funzione di tab
			document.getElementById("passw").focus();
			return;
		}

		if (cod == 8 || cod == null)  //OK se tab o delete
			return true;
	}

	function GoForm() {
		//alert("L'Area Riservata è in costruzione...");
		//return false;
		document.getElementById("FormArea").submit();
	}

	function GoArchivio() {		
		location.href = "archivio.asp";
	}
	


	function StatusBar(pval) {
		window.status = pval;
	}

	function Freccia(iobj) {
		iobj.style.cursor = 'pointer';
	}
