function checkabo() 
{
 pass = 1;
 alerte = "";
 with (document.envoi) 
 {
  if(name.value == "")               {alerte += "Remplir le champ Nom\n";       pass = 0;}
  if(street.value == "")             {alerte += "Remplir le champ Rue\n";       pass = 0;}
  if(zip.value == "")                {alerte += "Remplir le champ Code\n";      pass = 0;}
  if(city.value == "")               {alerte += "Remplir le champ Ville\n";     pass = 0;}
  if(country.value == "")            {alerte += "Remplir le champ Pays\n";      pass = 0;}
  if(phone.value == "")              {alerte += "Remplir le champ Telephone\n"; pass = 0;}
  if(email.value.indexOf("@") == -1) {alerte += "Remplir l'adresse email \n";   pass = 0;}
 }
 if(!pass) {alert(alerte);} else {document.envoi.submit();}
}


function checkepaper() 
{
 pass = 1;
 alerte = "";
 with (document.envoi) 
 {
  if(name.value == "")               {alerte += "Remplir le champ Nom\n";       pass = 0;}
  if(company.value == "")            {alerte += "Remplir le champ Societe\n";   pass = 0;}
  if(street.value == "")             {alerte += "Remplir le champ Rue\n";       pass = 0;}
  if(zip.value == "")                {alerte += "Remplir le champ Code\n";      pass = 0;}
  if(city.value == "")               {alerte += "Remplir le champ Ville\n";     pass = 0;}
  if(country.value == "")            {alerte += "Remplir le champ Pays\n";      pass = 0;}
  if(phone.value == "")              {alerte += "Remplir le champ Telephone\n"; pass = 0;}
  if(email.value.indexOf("@") == -1) {alerte += "Remplir l'adresse email \n";   pass = 0;}
 }
 if(!pass) {alert(alerte);} else {document.envoi.submit();}
}

showl = 10;

function show()
{
 document.getElementById('topbox').style.visibility = "visible";
 if(showl < 98)
 {
  if(document.all) 
  {
   document.getElementById('topbox').filters.alpha.opacity = showl;
  }
  else
  {
     document.getElementById('topbox').style.opacity = "0."+showl;
  }
  showl+=8;
  window.setTimeout("show()",1);
 }
 else
 {
  showl = 10; 
 }
}

function hidetopbox()
{
 document.getElementById('topbox').style.visibility = "hidden";
 if(document.all) 
 {
  document.getElementById('topbox').filters.alpha.opacity = "10";
 }
 else
 {
  document.getElementById('topbox').style.opacity = "0.1";
 }
}

run = 1;

osru = Array();
osru[1] = 0;
osru[2] = 0;
osru[3] = 0;
osru[4] = 0;

ouv = Array();
ouv[1] = 0;
ouv[2] = 0;
ouv[3] = 0;
ouv[4] = 0;

maxopen = Array();
maxopen[1] = 240;
maxopen[2] = 240;
maxopen[3] = 240;
maxopen[4] = 240;


function srub(num)
{
 if(osru[num] < 1 && run > 0)
 {
  clearTimeout(ouv[1]);
  clearTimeout(ouv[2]);
  clearTimeout(ouv[3]);
  clearTimeout(ouv[4]);
  run = 0;
  ouvre(num); 
 }
}


function ouvre(num)
{
 if(osru[num] < maxopen[num])
 {
  osru[num] += 10;
  document.getElementById('sr'+num).style.height = osru[num]+"px";
  for(i=1;i<5;i++)
  {
   if(i != num && osru[i] > 0)
   {
	osru[i] -= 10;
	document.getElementById('sr'+i).style.height = osru[i]+"px";
   }
  }
  ouv[num] = window.setTimeout("ouvre("+num+")",1);
 }
 else
 {
  run = 1; 
 }
}