// JavaScript Document
//Bibliothèque lamedocaine.com
<!--
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
	if (d) {d.style.display='block';}
}
//-->
function ShowHide(id) {
	var e = document.getElementById(id);
	var dStyle = ((e.style.display == '' || e.style.display == 'none') ? 'block':'none');
	e.style.display = dStyle;
}
<!--Gestion popups
var infoShow;
function createInfoShow(urlInfo,width,height)
{
	infoShow = window.open('info.php' + urlInfo,'infoShow','scrollbars=yes,width=' + width + ',height=' + height + ',screenX=0,screenY=0,top=10,left=10');
}
function info(url,width,height)
{
	if(typeof(infoShow)!="undefined")
	{
		if(infoShow.closed!=true)
			infoShow.close();
	}
	var urlInfo  = '?info=' + url;
	createInfoShow(urlInfo,width,height);
}
function closeInfoShow()
{
	if(typeof(infoShow)!="undefined")
	{
		if(infoShow.closed!=true)
			infoShow.close();
	}
}
//-->
//barre de statuts vierge
window.defaultStatus = 'La Table Basque - Restaurant et produits du Pays Basque - 17000 LA ROCHELLE'
<!--Alerte suppression-->
function supp(texte,lien) {
	if (confirm(texte))
		window.location=lien;
}
<!--Alerte archivage-->
function archive(texte,lien) {
	if (confirm(texte))
		window.location=lien;
}
function carClavier(e) {
	if (window.event)
		// Pour IE Explorer
		return String.fromCharCode(window.event.keyCode);
	else
		// Pour Netscape
		return String.fromCharCode(e.which);
}

function testNum(e) {
	caractere = carClavier(e);
	if (caractere < "0" || caractere > "9") return false;
	else return true;
}

<!-- ajout favoris
function addFav() {
	if ((navigator.appName.search('Microsoft Internet Explorer') != -1)&&(navigator.userAgent.search('Opera') == -1))  { 
		url_site="http://www.web-13.com/democcaz/";
		titre_site = "! Solution WEB-13 !";
		document.write('<a href="#" onClick="window.external.AddFavorite(url_site,titre_site);return(false);">Ajouter ce site à vos favoris</a>')
	} 
	if ((navigator.appName.search('Microsoft Internet Explorer') != -1)&&(navigator.userAgent.search('Opera') != -1))  { 
		document.write('Ctrl+T pour ajouter à vos signets'); 
	} 
	if (navigator.appName == "Netscape")  { 
		document.write('Ctrl+D pour marquer cette page'); 
	} 
} 
//ajout favoris -->
function JumpSelect(targ,adresse,selObj,restore){ 
  eval(targ+".location='"+adresse+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
