// JavaScript Document
function 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=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showHideLayers() { //v6.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}
function Scroll() {
 var wndo = new dw_scrollObj('wn', 'lyr1');
 wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
 dw_scrollObj.GeckoTableBugFix('wn'); 
}
function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}
function feld() {
if((document.form1.name.value=="") | (document.form1.email.value==""))
{
alert ("Bitte alle mit einem * gekennzeichneten Felder ausfuellen");
document.form1.name.focus();
return false;
}
}
function campo() {
if((document.form1.name.value=="") | (document.form1.email.value==""))
{
alert ("Tutti i campo segnalati con una * sono obbligatori.");
document.form1.name.focus();
return false;
}
}
function field() {
if((document.form1.name.value=="") | (document.form1.email.value==""))
{
alert ("Please fill in all fields marked with an *");
document.form1.name.focus();
return false;
}
}