<!--
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;

// INIZIO MOSTRA MESSAGGIO NELLA STATUS BAR
function dm(msgStr) {
	document.returnValue = false;
	if (document.images) {
		window.status = msgStr;
		document.returnValue = true;
	}
}
function dmim(msgStr) {
	document.returnValue = false;
	if (showMsg) {
		window.status = msgStr;
		document.returnValue = true;
	}
}
// FINE MOSTRA MESSAGGIO NELLA STATUS BAR

// INIZIO APRI URL IN POPUP
function apri(desktopURL,name,w,h){
    desktop = window.open(desktopURL, name,'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no'+',width='+w+',height='+h);
}
// FINE APRI URL IN POPUP

// INIZIO CONVALIDA FORM AREA RISERVATA
function elabora_form_blog() {
var mese = document.form_mesi.mese.value
if (mese == ""){
  window.alert ('Selezionare una opzione')
  return false
}
document.form_mesi.submit()
}
// FINE CONVALIDA FORM AREA RISERVATA

// INIZIO CONVALIDA FORM AREA RISERVATA
function elabora_form_inscommento_blog() {
var commento = document.ins_commento_blog.commento.value
if (commento == ""){
  window.alert ('è necessario scrivere un commento')
  return false
}
document.ins_commento_blog.submit()
}
// FINE CONVALIDA FORM AREA RISERVATA

// INIZIO CONVALIDA FORM AREA RISERVATA
function elabora() {
var utente = document.area_riservata.userid.value
if (utente == ""){
  window.alert ('Valorizzare il campo USERID')
  return false
}
var pwd = document.area_riservata.password.value
if (pwd == ""){
  window.alert ('Valorizzare il campo PASSWORD')
  return false
}
document.area_riservata.submit()
}
// FINE CONVALIDA FORM AREA RISERVATA

// INIZIO CONVALIDA FORM AREA RISERVATA
function elabora_form_iscrizione() {
var nick = document.iscrizione.nickname.value
if (nick == ""){
  window.alert ('Valorizzare il campo Nickname')
  return false
}
var pwd = document.iscrizione.pwd.value
if (pwd == ""){
  window.alert ('Valorizzare il campo Password')
  return false
}
var pwd2 = document.iscrizione.pwd2.value
if (pwd2 == ""){
  window.alert ('Valorizzare il campo Ripeti la Password')
  return false
}
if (pwd!=pwd2){
  window.alert ('I due campi password non sono uguali. Inserire la stessa password in entrambi')
  return false
}
document.iscrizione.submit()
}
// FINE CONVALIDA FORM AREA RISERVATA


// INIZIO SUBMIT ALLA PRESSIONE DEL TASTO INVIO
function tastopremuto(e) {
var tasto = event.keyCode;
if (tasto == 13) {
elabora_form_blog()
//document.area_riservata.onsubmit()
}
}
// FINE SUBMIT ALLA PRESSIONE DEL TASTO INVIO

-->
