// javascript
// bibliotheque 13ord
<!--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();
	}
}
//-->
//insertion smileys
function insereChaine(txt) {
	ajtTexte(txt, "txt");
}   
function ajtTexte(txt,id) {
	var obj = document.getElementById(id), sel;
  	obj.focus();
  	if(document.selection && document.selection.createRange) {
  		sel = document.selection.createRange(); 
  		if (sel.parentElement()==obj)//si sel est dans obj
		sel.text = sel.text+txt; 
  	}
 	else if(String(typeof obj.selectionStart)!="undefined") {
 		sel = obj.selectionStart;
 		obj.value = (obj.value).substring(0,sel) +
									  		txt + 
		(obj.value).substring(sel,obj.value.length);
 	}
 	else obj.value+=txt;
  	obj.focus();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!-- ajout favoris
nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
{
if (nav == "Mic" && ver >= 4)
{
url_site="http://www.13ord.com/";
titre_site = "! 13ord.com Sauvons les Ordinosaures !";
document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site,titre_site);return(false);">Ajout favoris</A>')
}
else
{
document.write('Marquer cette page Ctrl+D')
}
}
//ajout favoris -->
function JumpSelect(targ,adresse,selObj,restore){ 
  eval(targ+".location='"+adresse+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
<!-- Hide the script from old browsers 
function a(txt) {
	self.status = txt
}
function b() {
	self.status = ""
}
// --End Hiding Here -->
<!-- saisie nbres uniquement
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;
}
<!--Alerte suppression-->
function supp(texte,lien) {
	if (confirm(texte))
		window.location=lien;
}

//-->