window.location.replace("http://www.exhibandvoyeur.fr/forumV2");

onload=redirect;

function redirect()
{
	window.location.replace("http://www.exhibandvoyeur.fr/forumV2");
}

function getXhr(){
	var xhr = null; 
	if(window.XMLHttpRequest) // Firefox et autres
		xhr = new XMLHttpRequest(); 
	else if(window.ActiveXObject){ // Internet Explorer 
		try {
			xhr = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	else { // XMLHttpRequest non supporté par le navigateur 
		alert("Veuillez activer le javascript pour une navigation optimale"); 
		xhr = false; 
	} 
       return xhr;
}

function affiche_chat()
{
	var xhr = getXhr();
	xhr.onreadystatechange = function(){
		if(xhr.readyState == 4 && xhr.status == 200){
			var affichemp = xhr.responseText;
			document.getElementById('lechat').innerHTML =affichemp;

		}
	}
	
	document.getElementById('lechat').innerHTML ='<font color="black" style="font-size:11px;">Récupération des <br />informations du server<br /> de chat...</font>';
	xhr.open("GET","./ajax/lechat.php",true);
	//xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhr.send(null);
}

function derniers_album()
{
	var xhr = getXhr();
	xhr.onreadystatechange = function(){
		if(xhr.readyState == 4 && xhr.status == 200){
			var affichemp = xhr.responseText;
			document.getElementById('divalbum').innerHTML =affichemp;

		}
	}
	
	document.getElementById('divalbum').innerHTML ='<font color="#000000">Chargement des albums...</font>';
	xhr.open("GET","./ajax/dernier_album.php",true);
	//xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	xhr.send(null);
}
