function jsconfirm() {
return confirm("Effectuer cette modification ?") 
}

function plan(url_plan) {
window.open(url_plan,'Plan','width=640,height=550,resizable=yes,scrollbars=yes,titlebar=no');
}

function smiley(text) {
	var txtarea = document.ajout.message;
	text = ' ' + text + ' ';
	if (txtarea.createTextRange && txtarea.caretPos) {
		var caretPos = txtarea.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		txtarea.focus();
	} else {
		txtarea.value  += text;
		txtarea.focus();
	}
}



function popupphoto(id,width)
{
	var winl = (screen.width - width) / 2;
    var wint = (screen.height - 550) / 2;
    window.open("popupPhoto.php?id="+id+"","Erreur","width="+width+",height=550,top="+wint+",left="+winl+",resizeable=no");
}

function popupTexte(id)
{
	var winl = (screen.width - width) / 2;
    var wint = (screen.height - 550) / 2;
    window.open("popupPhoto.php?id="+id+"","Erreur","width="+width+",height=550,top="+wint+",left="+winl+",resizeable=no");
}

function popupMp3(id)
{
	var winl = (screen.width - width) / 2;
    var wint = (screen.height - 550) / 2;
    window.open("popupPhoto.php?id="+id+"","Erreur","width="+width+",height=550,top="+wint+",left="+winl+",resizeable=no");
}

function popupFlyer()
{
	window.open( "img/Flyer_iguane.jpg",'Flyer','width=400,height=564,resizable=no,scrollbars=yes,titlebar=no');
}


/* Fonction de redimensionnement de l'iframe */

var isIE= navigator.appName == "Microsoft Internet Explorer" ; /* IE */ 
var isNS= navigator.appName == "Netscape" ; /* Netscape, Mozilla Firefox */ 

function redimIframe( obj ){
with ( document.getElementById(obj.id) ) { 
		if ( isIE ) { 
			style.height= contentWindow.document.body.scrollHeight + 10; 
			scrolling= "no" ; 
		} 
		else if ( isNS ) { 
			style.height= contentDocument.body.offsetHeight + 10; 
			scrolling= "no" ; 
		} 
		else { 
			style.height= "100%" ; 
			scrolling= "auto" ; 
		} 
	} 
}