function pwdCheck() {

var url="http://giga24sur24.e-monsite.com/rubrique,liste-connectes-24h-24,54963.html"

var xhr_object = null;
if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest();
else
if (window.ActiveXObject) xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
xhr_object.open("GET", url, true);
if (xhr_object.overrideMimeType) { 
//FF & Chrome 
xhr_object.overrideMimeType('text/html; charset=iso-8859-1'); 
}
else { 

xhr_object.setRequestHeader("Content-type", "text/html; charset=iso-8859-1"); 
} 
xhr_object.onreadystatechange = function(){
if ( xhr_object.readyState == 4 )
{
var contenu=xhr_object.responseText
analyse(contenu)
}
}
xhr_object.send(null);
}

function analyse(contenu) {
var long=contenu.length;
var index1=contenu.indexOf('"essai"');
var contenu=contenu.substring(index1,long);
var index1=contenu.indexOf('>')+ 1;
if (document.getElementById('password').pwd.value==contenu.substring(index1,contenu.indexOf('<'))) {
document.getElementById('password').style.display="none";
document.getElementById('menug').style.display="none";
document.getElementById('menud').style.display="none";
document.getElementById('contenu').innerHTML="<iframe frameborder=\"NO\" height=\"800\" scrolling=\"auto\" src=\"http:\/\/sd-2.archive-host.com\/membres\/up\/80151059551188735\/Giga_en_Image\/index.html\" width=\"100%\"><\/iframe>"
}
else {
alert("Le mot de passe est faut !!!")
}
}
