function test_ent()
{
var objet=document.formulaire.Cetification2 ;
var Nombre=objet.length;
document.formulaire.cert.value="";
for (i=0;i<Nombre;i++)
{
document.formulaire.cert.value+=(i==0)?objet.options[i].value:';'+objet.options[i].value;
}
            document.formulaire.pwd.value=getPassword();
           // document.formulaire.submit();
}
/*************************************************************************************/
function test_ent1()
{
var objet0=document.formulaire.exp1 ;
var objet1=document.formulaire.cib1 ;
var objet2=document.formulaire.men1 ;
var objet3=document.formulaire.ban1 ;
var Nombre0=objet0.length;
var Nombre1=objet1.length;
var Nombre2=objet2.length;
var Nombre3=objet3.length;
document.formulaire.expt.value="";
document.formulaire.cible.value="";
document.formulaire.menace.value="";
document.formulaire.banque.value="";
for (i=0;i<Nombre0;i++)
{
document.formulaire.expt.value+=(i==0)?objet0.options[i].value:';'+objet0.options[i].value;
}
for (i=0;i<Nombre1;i++)
{
document.formulaire.cible.value+=(i==0)?objet1.options[i].value:';'+objet1.options[i].value;
}
for (i=0;i<Nombre2;i++)
{
document.formulaire.menace.value+=(i==0)?objet2.options[i].value:';'+objet2.options[i].value;
}
for (i=0;i<Nombre3;i++)
{
document.formulaire.banque.value+=(i==0)?objet3.options[i].value:';'+objet3.options[i].value;
}

          //document.formulaire.submit();
}
/*************************************************************************************/
function getRandomNum(lbound, ubound) {
return (Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
function getRandomChar(number, upper) {
var numberChars = "0123456789";
var upperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var charSet ="";
if (number == true)
charSet += numberChars;
if (upper == true)
charSet += upperChars;
return charSet.charAt(getRandomNum(0, charSet.length));
}
/*************************************************************************************/
function getPassword() {
var rc = "";
if (length > 0)
rc = rc + getRandomChar(1,  1);
for (var idx = 1; idx < 7; ++idx) {
rc = rc + getRandomChar(1, 1);
}
return rc;
}
/*************************************************************************************/
function go(){
var  tlien="";
var debut = 0;
var i = 0;
var b = 0;
tlien = '"'+window.location+'"';
debut = tlien.length;
var j = tlien.length;
var car1="";
for(i=0;i<debut;i++)
{
  car1 = tlien.charAt(i);
   if(car1 == "?")
    {
		 j = i;
		 b = 1;
    	 break;
    }
}
if(b==1){car1=tlien.substr(1,j-1);}else{car1=tlien.substr(1,debut-2);}
	window.location = car1+"?sect1="+document.sdh0.secteur1.value;
}
/*************************************************************************************/
function go1(){
var  tlien="";
var debut = 0;
var i = 0;
var b = 0;
tlien = '"'+window.location+'"';
debut = tlien.length;
var j = tlien.length;
var car1="";
for(i=0;i<debut;i++)
{
  car1 = tlien.charAt(i);
   if(car1 == "?")
    {
		 j = i;
		 b = 1;
    	 break;
    }
}
if(b==1){car1=tlien.substr(1,j-1);}else{car1=tlien.substr(1,debut-2);}
	window.location = car1+"?sect2="+document.sdh1.secteur2.value;
}
//////////////////////////////////******************************************////////////////////////////
function test_act()
{
var objet=document.sdh1.lbranche2 ;
var Nombre=objet.length;
document.sdh1.branche2.value="";
for (i = 0; i < Nombre; i++)
  {
    if(objet.options[i].selected == true)
         {
              document.sdh1.branche2.value+=objet.options[i].value;
			  document.sdh1.branche2.value+=";";
         }
  }
            document.sdh1.submit();
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*************************************************************************************/
function go_thm(){
var  tlien="";
var debut = 0;
var i = 0;
var b = 0;
tlien = '"'+window.location+'"';
debut = tlien.length;
var j = tlien.length;
var car1="";
for(i=0;i<debut;i++)
{
  car1 = tlien.charAt(i);
   if(car1 == "?")
    {
		 j = i;
		 b = 1;
    	 break;
    }
}
if(b==1){car1=tlien.substr(1,j-1);}else{car1=tlien.substr(1,debut-2);}
	window.location = car1+"?thm="+document.formulaire.themes.value;
}
/******************************************************************************************/
function go01(){
var  tlien="";
var debut = 0;
tlien = '"'+window.location+'"';
//var cl = document.recherche.client;
debut = tlien.length;
var car1="";
var test=0;
for(i=0;i<debut;i++)
{
  car1 = tlien.charAt(i);
  if(car1 == "&")
    {j=i;
	test=1;
     break;
    }
}
if (test==1){
car1=tlien.substr(1,j-1)+"&sect1=";
window.location=car1+document.sdh0.secteur1.value;
}
else
{
window.location = window.location+"&sect1="+document.sdh0.secteur1.value;
}
}
/*******************************************************************************************************/
function groupe()
{
var objet=document.formulaire.listes ;
var Nombre=objet.length;
document.formulaire.liste.value="";
for (i=0;i<Nombre;i++)
{
var bob = document.formulaire.liste.value+=(i==0)?objet.options[i].value:';'+objet.options[i].value;
}
document.formulaire.submit();
}