// acces_client DHTML

function ScanCookie(variable)
{
 cook=document.cookie;
 variable+="=";
 place=cook.indexOf(variable,0);
 if(place<=-1) return("0");
 else
 {
  end=cook.indexOf(";",place)
  if(end<=-1) return(unescape(cook.substring(place+variable.length,cook.length)));
  else return(unescape(cook.substring(place+variable.length,end)));
 }
}

function Entrer()
{
 document.cookie="accesclientok=oui;path=/;";
 if(document.getElementById) document.getElementById("acces_client").style.display='none'
 top.location.href=location.href;
}

function affiche_acces() {
	if(ScanCookie("disclaimerok")==0)
	{
	 document.write("<div id=acces_client><div id=acces_client-fond></div><div id=acces_client-conteneur>");
	 document.write("<div id=acces_client-cadre>");
	 document.write("<div style='text-align:right;align:right;'><a href='index.php' style='font-size:11px;color:#787878;'>FERMER X</a></div>");
	 document.write("<h1>Accès Client</h1>");
	 document.write("<div class=fond><form id='acces' named='acces' metho='post' action='acces.php'><table width='350' border='0' align='right' style='padding-top: 35px ;' ><tr><td style='padding: 5px; text-align:right;'><label>Identifiant</label></td><td style='padding:5px; text-align:left;'><input type='text' value='' name='identifiant' /></td></tr><tr><td style='padding: 5px; text-align:right;'><label>Mot de passe</label></td><td style='padding: 5px; text-align:left;'><input type='text' value='' name='motdepasse' /></td></tr><tr><td></td><td style='padding: 5px; text-align:left;'> <input type='submit' id='LOGIN' class='BT_login' value='LOGIN' /></td></tr></table></form></div>");
	 document.write("<br><br><a href='oubli.php' class='ableu11'>Mot de passe oublié ?</a>");
	 document.write("<br>Vous &ecirc;tes client et vous n’avez pas d'identifiant ?");
	 document.write("<br><a href='contact.php' class='agris11'>Contactez-nous</a>");
	 document.write("</div>");
	 document.write("</div></div>");
	 document.write('<style>embed,object,select,iframe { display:none; visibility:hidden }</style>');
	}
}
