// JavaScript Document

function VisibleFolder(itemid) //function pour rentre la boite visible
{
var Obj = document.getElementById(itemid); // racourci 

if (Obj.style.display == 'none' ||  Obj.style.display == '') // si le div est invisible
{Obj.style.display = 'block';// lui donner les styles suivants
Obj.style.padding = '0px';
Obj.style.color = 'black';
} else //sinon
{Obj.style.display = 'none';} //rendre invisible
}


function AJAX()	{
var xmlHttp=null;
try	{
xmlHttp=new XMLHttpRequest();
}catch (e)	{
try	{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}catch (e)	{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}



//Renvoie &agrave; la page affiche.php qui elle retourne la liste des fichiers et dossiers qui se trouvent dans le dossier qui a &eacute;t&eacute; cliqu&eacute;

function requete(itemid)	{
xmlHttp = AJAX();
xmlHttp.onreadystatechange=function()	{
if(xmlHttp.readyState==4)	{
document.getElementById(itemid).innerHTML=xmlHttp.responseText;
}
}
url = "primary_junior/"+itemid+".php";
xmlHttp.open("GET", url, true);
xmlHttp.send(null);


}



function popUp(page,PWidth,PHeight,id) {

 eval("designerwiz"+id+"=window.open('"+page+"','designerwiz25','toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=0,width="+PWidth+",height="+PHeight+"')")

eval;("wiz"+id+".window.moveTo((screen.width/2)-(PWidth/2),(screen.height/2)-(PHeight/2))")

}




