function Visualisateur(url)
{
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-347;
opentop = (EcranHaut/2)-296;
window.open('./html/image.php?url='+url,'visualisateur','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=1, copyhistory=0, menuBar=0, width=694, height=592, top='+opentop+', left='+openleft);
}

function download(type, id)
{
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-250;
opentop = (EcranHaut/2)-120;
window.open('./download.php?type='+type+'&id='+id,'downloads','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=500, height=240, top='+opentop+', left='+openleft);
}

function Comments(data){
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-240;
opentop = (EcranHaut/2)-160;
window.open('html/news/ajouter.php?id_news='+data,'Commentaires','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width=480,height=320, top='+opentop+', left='+openleft);
}

function Print(id){
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-375;
opentop = (EcranHaut/2)-225;
window.open('./html/tutoriaux/print.php?id='+id,'imprimer','toolbar=0, location=0, directories=0, status=1, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=750, height=450, top='+opentop+', left='+openleft);
}

function OpenSondages(){
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-265;
opentop = (EcranHaut/2)-190;
window.open('./html/sondage/index.php','sondages','toolbar=0, location=0, directories=0, status=1, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=530, height=380, top='+opentop+', left='+openleft);
}

function Textureview(url)
{
EcranHaut = screen.height;
EcranLarg = screen.width;
openleft = (EcranLarg/2)-300;
opentop = (EcranHaut/2)-300;
urlf = "http://ftp.outsize.org/unrealdesign/TexturesPhotosGalerie/"+url;
window.open('./html/image.php?url='+urlf+'&pre=texture','visualisateur','toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=1, copyhistory=0, menuBar=0, width=350, height=350, top='+opentop+', left='+openleft);
}

function Rebour() //Fonction pour faire un compte à rebours
{
	if (document.getElementById)
	{
		i+=1;
		DinaHeure = ((count*100) - i);
		sec = Math.floor(DinaHeure/100);
		dix = DinaHeure - (sec*100);
		document.getElementById("comptarebour").innerHTML=sec+'\'';
		if(dix<10)
			dix = '0'+dix;
		document.getElementById("comptarebourm").innerHTML=dix;
	}
	setTimeout("Rebour()", 1)
}

function Rebour2() //Fonction pour faire un compte à rebours
{
	if (document.getElementById)
	{
		i+=1;
		DinaHeure = ((count*100) - i);
		Cjours = Math.floor((DinaHeure/100)/(3600*24));
		Cheure = Math.floor((DinaHeure - (Cjours*3600*24*100))/(100*3600));
		Cmin = Math.floor((DinaHeure - ((Cjours*3600*24*100)+Cheure*3600*100))/(100*60));
		Csec = Math.floor((DinaHeure - ((Cjours*3600*24*100)+(Cheure*3600*100)+(Cmin*60*100)))/(100));
		Cdix = Math.floor((DinaHeure - ((Cjours*3600*24*100)+(Cheure*3600*100)+(Cmin*60*100)+(Csec*100))));
		document.getElementById("comptarebour").innerHTML= Cjours+'j '+Cheure+'h '+Cmin+'m '+Csec+'s '+Cdix;
	}
	setTimeout("Rebour2()", 1)
}