function setImageExists(id,src) {
	var img = new Image();
	img.onload = function () {
		document.images[id].src = src;
	};
	img.onerror = function () {
		// do something if images doesn't exist.
	}
	img.src = src;
}

function LookImprimante(Imp){
	var pathUrl = '/public/images/imprimantes/';
	if (Imp){		
		setImageExists('ImgImprimante',pathUrl + Imp +'.jpg');
	}else{
		document.getElementById('ImgImprimante').src=pathUrl + 'Vide.gif';
	}
	
}
