// JavaScript Document

gg = new
Array('Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato');
ms = new
Array('Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre');
function visua()
{
 var ora = new Date();
 var aa = ora.getDate();
 var mm = ora.getMonth();
 var yy = ora.getFullYear();
 var oo = ora.getHours();
 var mn = ora.getMinutes();
 var sec = ora.getSeconds();
 var dd = ora.getDay();
 var aa2  = ((aa < 10) ? "0" : "");
 var oo2  = ((oo < 10) ? "0" : "");
 var mn2  = ((mn < 10) ? ":0" : ":");
 var sec2  = ((sec < 10) ? ":0" : ":");
 var Data = aa2 + aa +" "+ ms[mm]  + " " + yy;
 var hh = oo + mn2 + mn + sec2 + sec;
  var amopm="  "
 if (oo>12){
 amopm="  " }
 if(document.all){
 document.all.primo.innerHTML =  gg[dd] + " - " + Data + " - " + hh + " " +amopm+"";
 }
 else if(document.getElementById){
 document.getElementById('primo').innerHTML  = gg[dd] + " - " + Data + " - " + hh + " " +amopm+"";
 }
 else if(document.layers){
 document.layers['primo'].document.write('<p id="primo" style="position:absolute; font-family:Verdana; font-size:8pt; font-weight:bold; color:#FFFFFF">Con Netscape: '+gg[dd] + " - " + Data + " - " + hh+ " " +amopm+'</p>');
 document.layers['primo'].document.close()
 }
 window.setTimeout("visua()",1000);
}

 <!--
 function chessa() {
   var w = 450;
   var h = 300;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("privacy.htm","titolo","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
 //-->
 
 <!--
var highlightcolor="#DCDA88"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function verifica(){

email="";
datipersonali="";

if(document.TheForm.email.value==""){
email="Inserisca un indirizzo E-Mail\n";
}else if(document.TheForm.email.value.lastIndexOf("@")==-1 || document.TheForm.email.value.lastIndexOf(".")==-1){
email="Inserisca una E-Mail valida\n";
}

if(document.TheForm.datipersonali.checked==false){
datipersonali="Non ha acconsentito al trattamento dei dati personali\n";
}

error="I campo sottostanti sono obbligatori\n";
if((email!="")||(datipersonali!="")){
alert(error+datipersonali+email)
return false;
}
}

//-->


<!--

function popWinOpen(str) // funzione chiamata dal Ticker (Banners.txt)


{searchWin=window.open(str,'popWinOpen','scrollbars=yes,resizable=no,status=no,location=no,toolbar=no');


}
//-->
// Prelevato su http://www.web-link.it

function Transpose(Url){
var email =Url
var TempBefore = '';
var TempAfter = '';
var NewString = '';
var Start = 0;
var WhereHash = email.indexOf ('@');
for (Count = 1; Count <= WhereHash; Count ++){
TempBefore += email.substring (Start, Count);
Start++
}
Start = WhereHash;
Start ++
WhereHash +=2;
for (Count = WhereHash; Count <=email.length; Count++){
TempAfter +=email.substring (Start, Count)
Start++
}
NewString = TempAfter +'@' + TempBefore;
parent.location = 'mailto:'+NewString;
}
// -->
function verifica(){
nome="";
cognome="";
messaggio="";
email="";
datipersonali="";

if(document.TheForm.email.value==""){
email="Inserisca un indirizzo E-Mail\n";
}else if(document.TheForm.email.value.lastIndexOf("@")==-1 || document.TheForm.email.value.lastIndexOf(".")==-1){
email="Inserisca una E-Mail valida\n";
}
if(document.TheForm.nome.value=="  [ NOME ]"){
nome="Inserisca il suo nome\n";
}
if(document.TheForm.cognome.value=="  [ COGNOME ]"){
cognome="Inserisca il suo cognome\n";
}
if(document.TheForm.messaggio.value=="  [ MESSAGGIO ]"){
messaggio="Inserisca il suo messaggio\n";
}
if(document.TheForm.datipersonali.checked==false){
datipersonali="Non ha acconsentito al trattamento dei dati personali\n";
}

error="I campo sottostanti sono obbligatori\n";
if((email!="")||(datipersonali!="")||(nome!="")||(cognome!="")||(messaggio!="")){
alert(error+datipersonali+email+nome+cognome+messaggio)
return false;
}
}