function deadlink(id) {mag=open('pop_deadlink.php?id='+id,'mag','width=350,height=400,status=no,scrollbars=YES,menubar=no,toolbar=no,location=no');}

function suppc(n) {mag=open('pop_supp.php?cat='+n+'&t=c','mag','width=500,height=300,status=no,scrollbars=YES,menubar=no,toolbar=no,location=no');}

function validc(n) {mag=open('pop_valid.php?cat='+n+'&t=c','mag','width=500,height=300,status=no,scrollbars=no,menubar=no,toolbar=no,location=no');} 

function supps(id) {mag=open('pop_supp.php?id='+id+'&t=s','mag','width=500,height=300,status=no,scrollbars=YES,menubar=no,toolbar=no,location=no');}

function valids(id,prov) {mag=open('pop_valid.php?id='+id+'&t=s&prov='+prov,'mag','width=500,height=300,status=no,scrollbars=no,menubar=no,toolbar=no,location=no');} 

function suppcom(id,id_site,SESSID) {mag=open('../pop_supp.php?id='+id+'&id_site='+id_site+'&t=com','mag','width=500,height=300,status=no,scrollbars=YES,menubar=no,toolbar=no,location=no');}

browserName=navigator.appName;
browserVer =parseInt(navigator.appVersion);
browserOk  =(browserName == "Netscape" && browserVer >= 3) || (browserVer >= 4);
function aff(id,theURL,winName,features) {
	document.getElementById(id).innerHTML="- Vu";
    parentWin=window;
    newWin=window.open(theURL,winName,features);
    if(browserOk){newWin.parentWin=parentWin;}
}

function SelAll (form){
for (var i=0;i<form.elements.length;i++){
	var e = form.elements[i];
 	e.checked = 1;
 	}
}

function UnSelAll (form){
for (var i=0;i<form.elements.length;i++){
 	var e = form.elements[i];
	e.checked = 0;
 	}
}

function CheckSel(msg){
for (var i=0;i<document.formu.elements.length;i++)
 	if (document.formu.elements[i].checked==1) return true;			
if (msg!="") alert (msg);
return false;
}

function form_del(err_mess){
if (CheckSel("")){
	centrePop("poplist",400,450);
	document.formu.target="poplist";
	document.formu.action = "pop_supp.php";
	}
}

function form_move(err_mess){
if (CheckSel("")){
	centrePop("poplist",400,450);
	document.formu.target="poplist";
	document.formu.action = "pop_move.php";
	}
}

function form_valid(err_mess){
if (CheckSel("")){
	centrePop("poplist",400,450);
	document.formu.target="poplist";
	document.formu.action = "pop_valid.php";
	}
}

function centrePop(name,largeur,hauteur) {
      var gauche = (screen.width - largeur)/2;
      var haut =  (screen.height - hauteur)/2;
      window.open("",name,"width="+largeur
         +",height="+hauteur+",left="+gauche
         +",top="+haut);
}

function logSAA(id) {
  document.getElementById(id).innerHTML="- Vu";
  z = new Image();
  z.src = 'pop_out.php?url_id=' + id;
}

<!--
img_extension = ".jpg";
function DisplayIMG() {
for (var i=1;i<=6;i++){
	var sec= "0"+Math.round(Math.random()*10);
	var img_name = "../img/" + i + "/" + sec + img_extension;
	var img="image" + i; // ici nom de l'image a charger
	document.images[img].src=img_name;
	}
}
