// JavaScript Document
//Bibliothèque maestral.fr
<!--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
window.defaultStatus = 'maestral.fr - Le 1er réseau français des magasins et ateliers spécialistes des instruments à vent'
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;
}

function JumpSelect(targ,adresse,selObj,restore){ 
  eval(targ+".location='"+adresse+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
