function printMe() {
	var opts = 'scrollbars=yes,resizable=yes,menubar=no,status=yes';
	var w = (screen.width - 20)*0.75;
	var h = (screen.height - 100);
	var pw = window.open('print.html','pwin','width='+w+',height='+h+',top=5,left=5,'+opts);
}
function loadPrint(url) {
	document.body.innerHTML = opener.document.getElementById("printContent").innerHTML;
	document.body.innerHTML += "<div id=\"printInfos\">Page imprimée de l'Intranet Onippam : "+url+"</div>";
	window.print();
}
function sendMe() {
	var opts = 'scrollbars=no,resizable=no,menubar=no,status=no';
	var w = 420;
	var h = 300;
	var t = (screen.height - h)/2;
	var l = (screen.width - w)/2;
	var pw = window.open('send.php','swin','width='+w+',height='+h+',top='+t+',left='+l+','+opts);
}
function resetf(f) {
	f.raz.value = "reset";
	f.submit();
}
function golink(id) {
	if(id && !isNaN(id)) {
		window.open('pop_lien.php?id='+id,'lien','top=10,left=10,width=600,height=600,scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,status=yes');
	}
}
function picsearch(e) {
	sf = document.searchform;
	sf.style.cssText = e ? "display:block" : "display:none";
}
function pw(u) {
	var opts = 'scrollbars=yes,resizable=yes,menubar=yes,status=yes';
	var w = 700;
	var h = 600;
	var t = (screen.height - h)/2;
	var l = (screen.width - w)/2;
	var pw = window.open(u,'ppw','width='+w+',height='+h+',top=50,left='+l+','+opts);
}
function popwin(url,name,w,h,optionlist,align)
{
	if(align == "center")
	{
		t = ((screen.height-h)/2);
		l = ((screen.width-w)/2);
		optionlist += (optionlist != "" ? "," : "")+"top="+t+",left="+l;
	}
	optionlist = optionlist != "" ? ","+optionlist : "";
	eval(name+" = window.open('"+url+"','"+name+"','width="+w+",height="+h+optionlist+"');");
	eval(name+".focus();");
}
function pop_implantation(id)
{
	if(id) {
		popwin('pop_implantation.php?id='+id,'pop',400,500,'scrollbars=yes,location=no,menubar=no,resizable=yes','center');
	}
}
function afficheMaxi(chemin)
{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>| Lemmy | Media | L O A D I N G  Article... Please wait !</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}