function printPicture(tmp, w, h)
{
	document.write('<img src="'+tmp+'" border=0 onLoad="verifLength(this, '+w+', '+h+');" onError="isImageNewsVerif(this);" />');
}

/*************************************************************************************/
/*isImageNewsVerif*/
/*Fonction qui verifie l'image passee en parametre, si elle nest pas chargee, elle est consideree comme inexistante et remplacee par nada.gif*/
/************************************************************************************/
function isImageNewsVerif(img)
{
	var srcNada = "../../pressrel/public_html/network/images/web/nada.gif";
	img.src=srcNada;
	img.width=1;
	img.height=1;
	setTimeout("25");
}

function verifLength(img, largeur, hauteur)
{
	if (img.width > largeur)
		img.width=largeur;
	if (img.height > hauteur)
		img.height=hauteur;
}
