

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){

 }
 window.setTimeout("visua()",1000);
}


function Transpose(String){
var email ='gegwear.it@info'
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;
}

var highlightcolor="#F4B741"

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 MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' deve contenere un indirizzo email.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' deve contenere un numero.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' è richiesto.\n'; }
  } if (errors) alert('Attenzione:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function geg1(effettoMini,effettoZoom)
	{
	document.write('<a href="javascript:geg2(\''+effettoZoom+'\')"><img src="'+effettoMini+'" hspace=0 vspace=0 border=0  alt="Clicca qui per ingrandire "></a>');
	}
function geg2(effetto)
	{
	i1 = new Image;
	i1.src = effetto;
	LeftPosition = (screen.width) ? (screen.width-500)/2 : 0;
TopPosition = (screen.height) ? (screen.height-350)/2 : 0;
	html = '<html>\n<head>\n<title>G & G - Ingrandimento</title>\n</head>\n<body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0>\n<center><img src="'+effetto+'" border=0 name=imageTest onload="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></center>\n</body>\n</html>';
	popupImage = window.open('','_blank','left='+LeftPosition+',top='+TopPosition+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	};
	 function pp1() {
   var w = 450;
   var h = 634;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("images/certitex.jpg","titolo","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l );
 }
  function pp2() {
   var w = 418;
   var h = 591;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("images/inet.gif","titolo","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
 //-->
