// JavaScript Document
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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+='- Il campo '+nm+' deve contenere un indirizzo email valido.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- Il campo '+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+='- Il campo '+nm+' deve contenere un numero compreso fra '+min+' e '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- Il campo '+nm+' è obbligatorio.\n'; }
  } if (errors) alert('Hai commesso i seguenti errori:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function plugNS(){var b=1;var o=0;var p=new Array("Shockwave Flash","Shockwave for Director","RealPlayer","QuickTime","VivoActive","LiveAudio","VRML","Dynamic HTML Binding","Windows Media Services");var np=navigator.plugins;for(var x=0;x<p.length;x++){for(var i=0;i<np.length;i++)if(np[i].name.indexOf(p[x])>=0)o|=b;b*=2;}return o;}

function plugIE(){if(!document.body)document.write('<body>');var db=document.body;var o=0;var b=1;var p=new Array("D27CDB6E-AE6D-11CF-96B8-444553540000","2A202491-F00D-11CF-87CC-0020AFEECF20","23064720-C4F8-11D1-994D-00C04F98BBC9","","","","90A7533D-88FE-11D0-9DBE-0000C0411FC3","9381D8F2-0288-11D0-9501-00AA00B911A5","22D6F312-B0F6-11D0-94AB-0080C74C7E95"
);db.addBehavior("#default#clientcaps");for(var i=0;i<p.length;i++){if(p[i])if(db.isComponentInstalled("{"+p[i]+"}","componentid"))o|=b;b*=2;}return o;}

function webstats4u(id,options){var n=navigator;var ver=n.appVersion;var d=document;var verIE=parseInt(ver.substring(ver.indexOf("MSIE")+5,ver.indexOf("MSIE")+6));if(verIE>0)ver=verIE;else ver=parseInt(ver);var u="http://m1.webstats4u.com/n?id="+id;var r;if(options&1)r=d.referrer;else r=top.document.referrer;if(!(options&2)){var rc=r;var i=rc.indexOf('?');if(i>=0)rc=rc.substring(0,i);i=rc.lastIndexOf('/');if(i>=0)rc=rc.substring(0,i+1);var l=''+d.location;if(l.indexOf(rc)==0)r='';}if(r&&(r!=d.location))u+="&r="+escape(r);if((n.appName=="Netscape"&&ver>=3))u+="&p="+plugNS();if(verIE>=5&&n.appVersion.indexOf('Win')>=0&&n.userAgent.indexOf('Opera')<0)u+="&p="+plugIE();if(ver>=4){var s=screen;var w=s.width;var h=s.height;var c=s.colorDepth;if(w)u+="&w="+w;if(h)u+="&h="+h;if(c)u+="&c="+c;}u+="&v=1";d.write('<a target=_blank href="http://www.webstats4u.com/stats?'+id+'"><img src="" border=0 width=1 height=1 alt=""></a>');}

function nedstatbasic(id,options){webstats4u(id,options);}

 webstats4u("ADnZzgRAsLCjZnP3eckAVbwLceQQ", 0);
 
// -->

