<!--
var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
// INIZIO VISUALIZZAZIONE DEI PULSANTI IN POSIZIONE ON
if (document.images) {
	I_home = new Image(50, 23);I_home.src = './images/home_off.gif';
	I_home_on = new Image(50, 23);I_home_on.src = './images/home_on.gif';
	I_mark = new Image(50, 23);I_mark.src = './images/marketing_off.gif';
	I_mark_on = new Image(50, 23);I_mark_on.src = './images/marketing_on.gif';
	I_elec = new Image(50, 23);I_elec.src = './images/electronics_off.gif';
	I_elec_on = new Image(50, 23);I_elec_on.src = './images/electronics_on.gif';
	I_tel = new Image(50, 23);I_tel.src = './images/telecomuncaz_off.gif';
	I_tel_on = new Image(50, 23);I_tel_on.src = './images/telecomuncaz_on.gif';
}
function di(id,name){
	if (document.images) {document.images[id].src=eval(name+".src"); }
}
// FINE VISUALIZZAZIONE DEI PULSANTI IN POSIZIONE ON

// INIZIO GESTIONE BANNER
function loadpage() {
	browver= parseInt(navigator.appVersion);
	browtype = navigator.appName;
	browsertype = "old";
	if (browtype == "Netscape" && !(browver < 3)) {
		browsertype = "new";
	}
	if (browtype == "Microsoft Internet Explorer" && !(browver < 4)) {
		browsertype = "new";
	}
	if (browsertype == "new") {
		thetimer = setTimeout("changeimage()", 2000); //5000
		banneradcode = 0;
		listofimages = new Array(3);
		listofimages[0] = new Image(410,50)
		listofimages[0].src = "./banner_A-0.gif"
    		listofimages[1] = new Image(410,50)
		listofimages[1].src = "./banner_A-1.gif"
		listofimages[2] = new Image(410,50)
		listofimages[2].src = "./banner_A-2.gif"
	}
}
function changeimage(){
	if (browsertype == "new") {
		banneradcode = banneradcode + 1
		if (banneradcode == "3") { //modificare questo numero se cambia il numero dei banner
			banneradcode = 0
		}
		imagesource = "./banner_A-" + banneradcode + ".gif"
		window.document.bannerad.src = imagesource
		thetimer = setTimeout("changeimage()", 2000); //10000
	}
	else if (browsertype == "old") {
	}
}
function changepage() {
	if (browsertype == "new") {
		if (banneradcode == 0) {
		//inserire qui il codice da eseguire al click sull'immagine
		}
		else if (banneradcode == 1) {
		//inserire qui il codice da eseguire al click sull'immagine
		}
		else if (banneradcode == 2) {
		//inserire qui il codice da eseguire al click sull'immagine
		}
	}
	else if (browsertype == "old") {
		//inserire qui il codice da eseguire al click sull'immagine
	}
}
// FINE GESTIONE BANNER

// 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() {
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()
}

function nuovoblog() {
var tit = document.newblog.titolo.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.newblog.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.newblog.submit()
}

function nuovoart() {
var tit = document.newart.titolo.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.newart.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.newart.submit()
}

function nuovorec() {
var tit = document.newrec.titolo.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.newrect.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.newrec.submit()
}

function nuovoute() {
var nick = document.newute.nickname.value
if (nick == ""){
  window.alert ('Valorizzare il campo Nickname')
  return false
}
var pass = document.newute.pwd.value
if (pass == ""){
  window.alert ('Valorizzare il campo Password')
  return false
}
var nome = document.newute.nome.value
if (nome == ""){
  window.alert ('Valorizzare il campo Nome')
  return false
}
var Cogn = document.newute.cognome.value
if (Cogn == ""){
  window.alert ('Valorizzare il campo Cognome')
  return false
}
var mail = document.newute.mail.value
if (mail == ""){
  window.alert ('Valorizzare il campo Mail')
  return false
}
document.newute.submit()
}

function mod_blog() {
var nick = document.newute.nickname.value
if (nick == ""){
  window.alert ('Valorizzare il campo Nickname')
  return false
}
var pass = document.newute.pwd.value
if (pass == ""){
  window.alert ('Valorizzare il campo Password')
  return false
}
var nome = document.newute.nome.value
if (nome == ""){
  window.alert ('Valorizzare il campo Nome')
  return false
}
var Cogn = document.newute.cognome.value
if (Cogn == ""){
  window.alert ('Valorizzare il campo Cognome')
  return false
}
var mail = document.newute.mail.value
if (mail == ""){
  window.alert ('Valorizzare il campo Mail')
  return false
}
document.modblog.submit()
}


function mod_ute() {
var nick = document.modute.nick.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.modute.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.modute.submit()
}


function mod_art() {
var tit = document.modmod_recg.titolo.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.modmod_rec.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.modmod_recg.submit()
}

function mod_rec() {
var tit = document.mod_rec.titolo.value
if (tit == ""){
  window.alert ('Valorizzare il campo Titolo')
  return false
}
var test = document.mod_rec.testo.value
if (test == ""){
  window.alert ('Valorizzare il campo Testo')
  return false
}
document.mod_rec.submit()
}

// FINE CONVALIDA FORM AREA RISERVATA

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

-->

