//--> Return TRUE pour activer le blocage de erreur de script javascript
function NoError()
{
	return true;
}

//--> Afficher dans la barre de status
function AfficheStatus(text){
		window.status = text;
}

//--> Afficher le span namelist
function ouvrir_client(namelist, ok)
{
	if(ok == 1)
	{
		document.getElementById(namelist).style.display = "block";
	}else
	{
		document.getElementById(namelist).style.display = "none";
	}
}





//--> Ouvrir le popup pour afficher l'images
function popup_img(img, maxi) {
	titre="Le Printemps des potiers.com";
	largeur = 400;
	hauteur = 400;
	var winl = (screen.width - largeur) / 2;
	var wint = (screen.height - hauteur) / 2;
	w=open("",'image','width='+largeur+',height='+hauteur+',top='+wint+',left='+winl+',toolbar=no,scrollbars=no,resizable=no');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	if(maxi != '' && maxi != 0)
	{
		w.document.write("<SCRIPT language='javascript'>function fermerwindows(){setTimeout('window.close()',1000)}</"+"SCRIPT>");
		w.document.write("<center><a href='"+maxi+"' target='_blank' onclick='fermerwindows()'>Image Taille maxi</a></center>");
		w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width,document.images[0].height+200); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
		w.document.write("</HEAD><BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
		w.document.write("<a href='"+maxi+"' target='_blank' onclick='fermerwindows()'><IMG src='"+img+"' border=0 TITLE='Image!'></a>");
	}else
	{
		w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width,document.images[0].height+100); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
		w.document.write("</HEAD><BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
		w.document.write("<IMG src='"+img+"' border=0 TITLE='Image!'>");
	}
	w.document.write("<br><center><font size='1'><a href='javascript:window.opener.focus; window.close();'>Fermer</a></font></center>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}






//--> Appel de la function pour bloquer le erreur
window.onerror=NoError;

//--> Affiche une message par défaut dans la barre de status
window.defaultStatus = "Liste de mariage";



// Placer les autres code Javascript ICI