function imprim(type)
	{
	var strChUserAgent = navigator.userAgent;
	var intSplitStart = strChUserAgent.indexOf("(",0);
	var intSplitEnd = strChUserAgent.indexOf(")",0);
	var strChStart = strChUserAgent.substring(0,intSplitStart);
	var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
	var strChEnd = strChUserAgent.substring(strChEnd); 
	
	if(strChMid.indexOf("MSIE 6") != -1 || strChMid.indexOf("MSIE 7") != -1 || strChMid.indexOf("MSIE 8") != -1)
		{
		//IE6
		if(type=='') window.open('imprim.php', 'Impression', config='height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
		else window.open('imprim-dif.php', 'Impression', config='height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
		}
	else
		{
		//Les autres
		if(type=='') document.getElementById('fim').src='imprim.php';
		else document.getElementById('fim').src='imprim-dif.php';
		}
	}
	
function impressione()
	 {
	var strChUserAgent = navigator.userAgent;
	var intSplitStart = strChUserAgent.indexOf("(",0);
	var intSplitEnd = strChUserAgent.indexOf(")",0);
	var strChStart = strChUserAgent.substring(0,intSplitStart);
	var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
	var strChEnd = strChUserAgent.substring(strChEnd); 

	if(strChMid.indexOf("MSIE 6") != -1 || strChMid.indexOf("MSIE 7") != -1 || strChMid.indexOf("MSIE 8") != -1)
		{
		//IE6
		 window.print();
		 window.close();
		}
	else
		{
		//Les autres
		 window.print();
		}
	 }
	 
function imprim_dyn(type,id)
	 {
	 if(type=='ent') window.open('imp-ent.php?id=' + id, 'Impression', config='height=100, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no');
	 }	 
	 
	 
	 
	 
	 
	 