function writediv(texte)
			{
				document.getElementById('page').innerHTML = texte;
			}
			
function writediv2(texte)
			{
				document.getElementById('erreur').innerHTML = texte;
			}
function file(fichier)
			{
				if(window.XMLHttpRequest) // FIREFOX
					xhr_object = new XMLHttpRequest();
				else if(window.ActiveXObject) // IE
					xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
				else
					return(false);
				xhr_object.open("GET", fichier, false);
				xhr_object.send(null);
				if(xhr_object.readyState == 4) return(xhr_object.responseText);
					else return(false);
			}
function file2(fichier)
			{
				if(window.XMLHttpRequest) // FIREFOX
					xhr_object = new XMLHttpRequest();
				else if(window.ActiveXObject) // IE
					xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
				else
					return(false);
				xhr_object.open("GET", fichier, false);
				xhr_object.send(null);
				if(xhr_object.readyState == 4) return(xhr_object.responseText);
					else return(false);
			}			
function rubrique(id)
			{
				if(id==0)
				{
					texte=file('vision.php');
					writediv(texte);
				}
				if(id==1)
				{
					texte=file('forum.php');
					writediv(texte);
				}
				
				if(id==2)
				{
					texte=file('inscription2.php');
					writediv(texte);
				}
				if(id==3)
				{
					texte=file('partenaires.php');
					writediv(texte);
				}
				if(id==4)
				{
					texte=file('faq.php');
					writediv(texte);
				}
				
				if(id==5)
				{
					texte=file('mission.php');
					writediv(texte);
				}
				
				if(id==6)
				{
					texte=file('membre.php');
					writediv(texte);
				}
				
				if(id==7)
				{
					texte=file('telechargement.php');
					writediv(texte);
				}
				
					if(id==8)
				{
					texte=file('espaceclients.php');
					writediv(texte);
				}
				
				if(id==9)
				{
					texte=file('support.php');
					writediv(texte);
				}
				
				if(id==10)
				{
					texte=file('sup.php');
					writediv(texte);
				}
				
				
				if(id==11)
				{
					texte=file('mission.php');
					writediv(texte);
				}
				if(id==12)
				{
					texte=file('inform.php');
					writediv(texte);
				}
				
				if(id==13)
				{
					texte=file('inform2.php');
					writediv(texte);
				}
				if(id==14)
				{
					texte=file('inform3.php');
					writediv(texte);
				}
				
				if(id==15)
				{
					texte=file('diag.php');
					writediv(texte);
				}
				
				if(id==16)
				{
					texte=file('noyau.php');
					writediv(texte);
				}
				
				if(id==17)
				{
					texte=file('noyau2.php');
					writediv(texte);
				}
				
				if(id==18)
				{
					texte=file('noyau3.php');
					writediv(texte);
				}
				
				
					if(id==19)
				{
					texte=file('commander.php');
					writediv(texte);
				}
				
					if(id==20)
				{
					texte=file('tarifaire.php');
					writediv(texte);
				}
				
				if(id==21)
				{
					texte=file('module.php');
					writediv(texte);
				}
				
				if(id==22)
				{
					texte=file('fonction.php');
					writediv(texte);
				}
				
				if(id==23)
				{
					texte=file('def.php');
					writediv(texte);
				}
				
				if(id==24)
				{
					texte=file('suggestions.php');
					writediv(texte);
				}
				if(id==25)
				{
					texte=file('leclub.php');
					writediv(texte);
				}
				
				if(id==26)
				{
					texte=file('licence.php');
					writediv(texte);
				}
				
					if(id==27)
				{
					texte=file('trans.php');
					writediv(texte);
				}
				
				
				if(id==28)
				{
					texte=file('noyau4.php');
					writediv(texte);
				}
				
				if(id==29)
				{
					texte=file('noyau5.php');
					writediv(texte);
				}
				
				if(id==30)
				{
					texte=file('noyau6.php');
					writediv(texte);
				}
				
				if(id==31)
				{
					texte=file('noyau7.php');
					writediv(texte);
				}
				
				if(id==32)
				{
					texte=file('noyau8.php');
					writediv(texte);
				}
				if(id==33)
				{
					texte=file('version.php');
					writediv(texte);
				}
				
				if(id==34)
				{
					texte=file('assist.php');
					writediv(texte);
				}
				if(id==35)
				{
					texte=file('support.php');
					writediv(texte);
				}
				
				if(id==36)
				{
					texte=file('contacts.php');
					writediv(texte);
				}
				if(id==37)
				{
					texte=file('licencedef.php');
					writediv(texte);
				}
				
			}
			
			
function identifier(id){
            window.open('identification.php?id='+id,'new','width=350,height=200');
            }
function telecharger(id){
                if(texte2 = file2('telecharger.php?id='+id))
				{
					writediv(texte2);
				}
}
			
function verifier(id){
           login=document.identification.login.value;
           pwd=document.identification.pwd.value;
           texte=file('verifier.php?login='+login+'&pwd'+pwd+'&id='+id);
           if(texte==0){
			writediv2("Identification incorrecte. Vous devez vous inscrire d'abord.");
			/*rubrique(1);*/
		   }
		   else{
                telecharger(id);					   
		}
}

function affiche_detail(id)
			{
				if(texte = file('detail.php?id='+id))
				{
					writediv2(texte);
				}
				
			}

