function amiClick() {
	window.open('ami.html','nom','toolbar=0,menubar=0,location=0,width=391,height=350,top=200,left=300,resizable=yes,statusbar=no')
}

function reservationClick() {
	window.open('reservation.php','Réservation','toolbar=0,menubar=0,location=0,width=610,height=420,top=200,left=300,resizable=yes,statusbar=no')
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
function winOpenImg(title,img,width,height) {
	msg=window.open("","msg","height="+height+",width="+width+",left=100,top=100");
	msg.document.write("<html><title>"+title+"</title>");
	msg.document.write("<body bottommargin='0' topmargin='0' leftmargin='0' rightmargin='0' bgcolor='white'>");
	msg.document.write("<img src='img/"+img+"' border='1' onClick=window.close()>");
	msg.document.write("</body></html>");
}

browserName=navigator.appName;
browserVersion=navigator.appVersion;
explorerVersion=parseFloat(browserVersion.substring(browserVersion.indexOf('MSIE ')+5));
explorerOk=(browserName=="Microsoft Internet Explorer" && explorerVersion >=5);
netscapeVersion=parseFloat(browserVersion);
netscapeOk=(browserName=="Netscape" && netscapeVersion >=4);
function printClick() {
	if (explorerOk || netscapeOk)
		print()
	else
		alert("Cette fonction nécessite Microsoft Internet Explorer 5 ou Netscape Navigator 4");
}

function ctrlFocus(obj) {
	if (obj.value==obj.defaultValue) {
		obj.value="";
		return true;
	}
}

function ctrlBlur(obj) {
	if (obj.value=="") {
		obj.value=obj.defaultValue;
		return true;
	}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}