
var tPwd=null,nPwd=0;var isIndex=true;var abonneTools=null;function initSem(){resizeWindow();window.onresize=resizeWindow;if(abonneTools)abonneTools.init();}
function resizeWindow(){var ih=iHeight();var h=ih-$('sem-droite').offsetTop-$('sem-infos').offsetTop-40;if(h<111)
h=111;$('sem-infos-content').style.height=h+'px';if($('sem-editorial')){h=ih-$('sem-gauche').offsetTop-$('sem-editorial').offsetTop-16;if(h<60)
h=60;$('sem-editorial-content').style.height=h+'px';}
h=ih-$('sem-centre').offsetTop-14;if(h<391)
h=391;$('sem-centre').style.height=h+'px';}
function identSem(frm){var parametres=getFormValues(frm);if((parametres.login!='')||parametres.logoff!=''){if(parametres.login!='')parametres.ident=true;var myAjax=new Ajax.Request('/ident.php',{method:'post',asynchronous:true,parameters:$H(parametres).toQueryString()});}
return false;}
function badPasswd(){$('sem-msg-bad-passwd').innerHTML="<b>Nom d'utilisateur ou mot de passe invalide !</b>";tPwd=setTimeout("showBadPasswd()",50);window.document.frmIdent.login.select();window.document.frmIdent.login.focus();window.document.frmIdent.password.value='';}
function showBadPasswd(){var c=$('sem-abonne').getElementsByTagName('div')[0].getElementsByTagName('div')[0];if(++nPwd%2!=0){c.attributes['class'].value='dialog-content-warning';}else{c.attributes['class'].value='dialog-content';}
if(nPwd<8){tPwd=setTimeout("showBadPasswd()",80);}else{tPwd=null;nPwd=0;}}