function openWindow(url, name) {
  popupWin = window.open(url, name, 'menubar,toolbar,status,scrollbars,resizable,dependent,width=400,height=400,left=100,top=100')
}

on=new Image(10,10); off=new Image(10,10);
on.src="../img/on.gif"; off.src="../img/off.gif";

function blank() {
}
 
function laysho(lay) {
 if (document.layers) {
         if (document.layers[lay].visibility='hide') {
   document.layers[lay].visibility='show';
   document.layers["default"].visibility='hide';
   }
 } else {
  if (document.all[lay].style.visibility='hidden') {
   document.all[lay].style.visibility='visible';
   document.all["default"].style.visibility='hidden';
   }
 }
}
 
function layhid(lay) {
 if (document.layers) {
         if (document.layers[lay].visibility='show') {
   document.layers[lay].visibility='hide';
   document.layers["default"].visibility='show';
   }
 } else {
  if (document.all[lay].style.visibility='visible') {
   document.all[lay].style.visibility='hidden';
   document.all["default"].style.visibility='visible';
   }
 }
}

<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><!--
function form2_Validator(theForm)
{

  if (theForm.title.value == "")
  {
    alert("Tapez une valeur pour le champ \"Title\".");
    theForm.title.focus();
    return (false);
  }

  if (theForm.title.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"Title\".");
    theForm.title.focus();
    return (false);
  }

  if (theForm.name.value == "")
  {
    alert("Tapez une valeur pour le champ \"Name\".");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"Name\".");
    theForm.name.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("Tapez une valeur pour le champ \"Company name\".");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"Company name\".");
    theForm.company.focus();
    return (false);
  }

  if (theForm.address.value == "")
  {
    alert("Tapez une valeur pour le champ \" Address\".");
    theForm.address.focus();
    return (false);
  }

  if (theForm.address.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \" Address\".");
    theForm.address.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Tapez une valeur pour le champ \"City\".");
    theForm.city.focus();
    return (false);
  }

  if (theForm.city.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"City\".");
    theForm.city.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Tapez une valeur pour le champ \"Country\".");
    theForm.country.focus();
    return (false);
  }

  if (theForm.country.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"Country\".");
    theForm.country.focus();
    return (false);
  }

  if (theForm.telephone.value == "")
  {
    alert("Tapez une valeur pour le champ \"Telephone\".");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length < 8)
  {
    alert("Tapez au moins 8 caractères dans le champ \"Telephone\".");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.telephone.value.length > 15)
  {
    alert("Tapez au plus 15 caractères dans le champ \"Telephone\".");
    theForm.telephone.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.telephone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Ne tapez que  chiffre caractères dans le champ \"Telephone\".");
    theForm.telephone.focus();
    return (false);
  }

  if (theForm.fax.value == "")
  {
    alert("Tapez une valeur pour le champ \"Fax\".");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.fax.value.length < 8)
  {
    alert("Tapez au moins 8 caractères dans le champ \"Fax\".");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.fax.value.length > 15)
  {
    alert("Tapez au plus 15 caractères dans le champ \"Fax\".");
    theForm.fax.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.fax.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Ne tapez que  chiffre caractères dans le champ \"Fax\".");
    theForm.fax.focus();
    return (false);
  }

  if (theForm.Email.value == "")
  {
    alert("Tapez une valeur pour le champ \"Title\".");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length > 256)
  {
    alert("Tapez au plus 256 caractères dans le champ \"Title\".");
    theForm.Email.focus();
    return (false);
  }
  return (true);
}
//-->
