function show(id){ document.getElementById(id).style.display='block'; } function hide(id){ document.getElementById(id).style.display='none'; } var $j= jQuery.noConflict(); $j(document).ready(function(){ $j("input.mdp1").focus(focusPass) }); function focusPass(){ if(($j(this).val()=="Mot de passe")&&($j(this).attr("type")=="text")){ $j(this).before(''); $j("input#mdp0").focus() $j("input#mdp0").blur(blurPass) $j(this).remove() } } function blurPass(){ if(($j(this).val()=="")&&($j(this).attr("type")=="password")){ $j(this).before(''); $j("input#mdp1").focus(focusPass) $j(this).remove() } }