/* - - - - - - - - - - - - - - - - - - - - - - -
 JavaScript
 vendredi 27 février 2009 16:43:23
 HAPedit 3.1.11.111
 - - - - - - - - - - - - - - - - - - - - - - - */
function swap_java(nom)
{
if (document.getElementById(nom).style.display == 'none')
   {
   document.getElementById(nom).style.display = 'block';
   }
   else
   {
   document.getElementById(nom).style.display = 'none';
   }
   return false;
}


function swap_java2(nom,vitesse)
{
if (document.getElementById(nom).style.display == 'none')
   {
   Effect.SlideDown(nom,{ duration: vitesse });
   }
   else
   {
   /*document.getElementById(nom).style.display = 'none';*/
   Effect.SlideUp(nom,{ duration: vitesse });
   }
   return false;
}

function swap_java3(nom,vitesse,bouton,im1,im2)
{
if (document.getElementById(nom).style.display == 'none')
   {
   document.getElementById(bouton).src = im2;
   Effect.SlideDown(nom,{ duration: vitesse });
   }
   else
   {
   document.getElementById(bouton).src= im1;
   Effect.SlideUp(nom,{ duration: vitesse });
   }
   return false;
}

function f2(champ){
if (champ.id==champ.value)
{
champ.value='';
}
elseif(champ.value=='')
{
champ.style.color='#BABABA';
champ.value=champ.id;
}
}

function f3(champ)
{
if (champ.value==champ.id) {champ.style.color='#BABABA';} else {champ.style.color='#000000';}
if (champ.value=='') {champ.style.color='#BABABA';champ.value=champ.id;}
}
function f4(champ)
{
if (champ.id==champ.value)
{
champ.value='';
champ.style.color='#000000';
}
}

function chge_pwd()
{
    if (document.getElementById('pwd_input').value=='Password')
    {
        document.getElementById('pwd_input_span').innerHTML = '<input type="password" id="pwd_input" style="width:110px;height:12px;font-size:10px;" onblur="chge_pwd2();" name="password" />';
        setTimeout("document.getElementById('pwd_input').focus();", 10);
    }
}
function chge_pwd2()
{
    if (document.getElementById('pwd_input').value=='')
    {
        document.getElementById('pwd_input_span').innerHTML = '<input type="text" id="pwd_input" style="width:110px;height:12px;font-size:10px;" value="Password" onfocus="chge_pwd();" />';
    }
}

function chge_pwd_small()
{
    if (document.getElementById('pwd_small_input').value=='Password')
    {
        document.getElementById('pwd_small_input_span').innerHTML = '<input type="password" id="pwd_small_input" style="width:200px;font-size:12px;" onblur="chge_pwd2_small();" name="password" />';
        setTimeout("document.getElementById('pwd_small_input').focus();", 10);
    }
}
function chge_pwd2_small()
{
    if (document.getElementById('pwd_small_input').value=='')
    {
        document.getElementById('pwd_small_input_span').innerHTML = '<input type="text" id="pwd_small_input" style="width:200px;font-size:12px;" value="Password" onfocus="chge_pwd_small();" />';
    }
}


function EcrireCookie(nom, valeur)
{
var argv=EcrireCookie.arguments;
var argc=EcrireCookie.arguments.length;
var expires=(argc > 2) ? argv[2] : null;
var path=(argc > 3) ? argv[3] : null;
var domain=(argc > 4) ? argv[4] : null;
var secure=(argc > 5) ? argv[5] : false;
document.cookie=nom+"="+escape(valeur)+
((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((path==null) ? "" : ("; path="+path))+
((domain==null) ? "" : ("; domain="+domain))+
((secure==true) ? "; secure" : "");
}

