<!--
var win = null;
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);

function branche(site, titre, w, h, sb, tb, rz){
	l = (screen.width) ? (screen.width-w)/2 : 0;
	t = (screen.height) ? (screen.height-h)/2 : 0;
	s = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars='+sb+',toolbar='+tb+',resizable='+rz
	win = window.open(site,titre,s)
	if(win.window.focus){win.window.focus();}
}

function impPage(){
	if (pr) // NS4, IE5
	{
		if (window.print)
			window.print();
		else
			alert("Desole, votre navigateur n'est pas configure pour lancer une edition.");
	}
	else 
		if (da && !mac)
			vbPrintPage()
		else
			alert("Desole, votre navigateur n'est pas configure pour lancer une edition.");
	return false;
}

if (da && !pr && !mac) with (document) {
	writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
	writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
	writeln('Sub window_onunload');
	writeln('  On Error Resume Next');
	writeln('  Set WB = nothing');
	writeln('End Sub');
	writeln('Sub vbPrintPage');
	writeln('  OLECMDID_PRINT = 6');
	writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
	writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
	writeln('  On Error Resume Next');
	writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
	writeln('End Sub');
	writeln('<' + '/SCRIPT>');
}
// -->
