// JavaScript Document
//Bibliothèque Shopping17.fr
<!--
var infoShow;
function createInfoShow(urlInfo)
{
	infoShow = window.open('info.php' + urlInfo,'infoShow','scrollbars=yes,width=800,height=600,screenX=0,screenY=0,top=10,left=10');
}
function info(url)
{
	if(typeof(infoShow)!="undefined")
	{
		if(infoShow.closed!=true)
			infoShow.close();
	}
	var urlInfo  = '?info=' + url;
	createInfoShow(urlInfo);
}
function closeInfoShow()
{
	if(typeof(infoShow)!="undefined")
	{
		if(infoShow.closed!=true)
			infoShow.close();
	}
}
//-->
<!-- nbre caractères maxi
function CheckLen(Target,Nbre) {
	StrLen = Target.value.length
	if (StrLen > Nbre ) {
		Target.value = Target.value.substring(0,Nbre);
		CharsLeft = Nbre;
	}
	else {
		CharsLeft = StrLen;
	}
	var CharsLeft1 = Nbre - CharsLeft;
	document.form1.abd.value = CharsLeft1;
}
//-->
//barre de statuts vierge
window.defaultStatus = 'Shopping17.fr - Le sourire près de chez vous !'

<!--Alerte suppression-->
function supp(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(url_site) {
	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);"><img src="../images/go_fav.gif" alt="Ajouter à 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;
}
