function accueil()
{
 window.location.href='index.php';
}
function equipe()
{
 window.location.href='equipe.php';
}
function contact()
{
 window.location.href='contact.php';
}
function compte()
{
 window.location.href='compte.php';
}
function newc()
{
 window.location.href='new.php';
}
function pass()
{
 window.location.href='pass.php';
}
function perso_photo()
{
 window.location.href='./photo.php';
}
function perso_forum()
{
 window.location.href='./forum/index.php';
}
function image()
{
 window.location.href='projet.php?p=image';
}
function fichier()
{
 window.location.href='projet.php?p=fichier';
}
function forum()
{
 window.location.href='projet.php?p=forum';
}
function portail()
{
 window.location.href='projet.php?p=portail';
}
function r_mail()
{
 window.location.href='projet.php?p=mail';
}
function check_mdp()
{
 var mdp1;
 var mdp2;
 var message;
 mdp1 =  document.forms['login'].mdp1.value;
 mdp2 =  document.forms['login'].mdp2.value;

 if( mdp1 == mdp2 && mdp1.length>=6)document.forms['login'].bouton.disabled=false;
 else{
 	message="";
    if( mdp1 != mdp2)  message+=" Erreur : les mots de passes ne sont pas identiques";
    if( mdp1 != mdp2 && mdp1.length<6)message+="<br>";
    if( mdp1.length<6)  message+=" Erreur : votre mot de passe doit faire au moins 6 caractères";

    document.all["infoplus"].innerHTML=message;
 }
}