function ajouter(index,tint) {
	tmp=document.form_designation[index].value;
	tmp=parseInt(tmp)+parseInt(tint);
	tmp=(tmp<1)?0:tmp;
	tmp=(tmp>99)?99:tmp;
	document.form_designation[index].value=tmp;
	}
	
function retirer(index,tint) {
	tmp=document.form_designation[index].value;
	tmp=parseInt(tmp)-parseInt(tint);
	tmp=(tmp<1)?0:tmp;
	tmp=(tmp>99)?99:tmp;
	document.form_designation[index].value=tmp;
	}
	
function ajaxid(param, page, id) { 
	if(document.all) {
	var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
	} else {
	var XhrObj = new XMLHttpRequest();
	}
	var content = document.getElementById(id);
	XhrObj.open("POST", page);
	XhrObj.onreadystatechange = function() {
	if (XhrObj.readyState == 4 && XhrObj.status == 200) {
	if (XhrObj.responseText == "FIRST") {
	window.location.href = '/btsp_pays.htm';
	} else {
	content.innerHTML = XhrObj.responseText ;
	}
	} else {
	content.innerHTML = "<br /><br /><center><img style='vertical-align:middle;text-align:center;' src='/medias/images/loading.gif' alt='Chargement' /><br /></center><br /><br />";
	}
	}
	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	XhrObj.send(param);
	}
	
function goajax(id,session) {
	ajaxid('id='+id,'/etc/boutique.php?'+session,'content_cartsys');
	}
	
function detection_ie_mac() {
	if (navigator.appVersion.indexOf("Mac",0)>0) {
	if (navigator.appName.indexOf("Microsoft",0)>=0) {
	alert ("Désolé, votre Navigateur est non compatible\nSorry, Your Browser is not compatible\n"+navigator.userAgent);
	window.location.href = '/erreurs/erreurs.php?q=403';
	} } }
	
	detection_ie_mac();