    function displaySubMenu() {
       var subMenu = document.getElementById('subMenus');
       subMenu.style.display = "block";
    }
    function hideSubMenu() {
       var subMenu = document.getElementById('subMenus');
       subMenu.style.display = "none";
    }
	function Pause(obj,iMinSecond){
		if (window.eventList==null) window.eventList=new Array();
		var ind=-1;
		for (var i=0;i<window.eventList.length;i++){
			if (window.eventList[i]==null) {
			   window.eventList[i]=obj;
			   ind=i;
			   break;
			}
		}
		
		if (ind==-1){
			ind=window.eventList.length;
			window.eventList[ind]=obj;
		}
		
		setTimeout("GoOn(" + ind + ")",iMinSecond);
	}
	
	function GoOn(ind){
		var obj=window.eventList[ind];
		window.eventList[ind]=null;
		if (obj.NextStep) obj.NextStep();
		else obj();
	}
	function fermerFenetre(){
		var infos;
		infos=document.getElementById('infosPop');
		infos.style.display="none";	
	}
	function popConfirmeWindow(data,delais,top,next){
		var infos;
		infos=document.getElementById('infosPop');
		infos.style.display="inline";
		infos.style.top=top+"px";
		var sysInfos;
		sysInfos=document.getElementById('afficheInfos');
		sysInfos.innerHTML="<p>"+data+"</p>";
		Pause(this,delais);
		if(next==1){
			this.NextStep=function(){
				fermerFenetre();
			}				
		}
	
	}
	function fermerConfirmFenetre(){
		var infos;
		infos=document.getElementById('confirmPop');
		infos.style.display="none";	
	}
	function popConfirme(data,delais,top){
		var infos;
		infos=document.getElementById('confirmPop');
		infos.style.display="inline";
		infos.style.top=top+"px";
		var sysInfos;
		sysInfos=document.getElementById('afficheConfirmInfos');
		sysInfos.innerHTML="<p>"+data+"</p>";
		Pause(this,delais);
	
	}
	function excuterFonction(){
	
			//var infos;
			//infos=document.getElementById('option').value;
			
			//if(infos==1){
				changerResto();
			//}else if(infos=2){
				
			//}
			fermerConfirmFenetre();

	}
	function calcul_qte(operation,id)
	 {
	 	var qte=document.getElementById("qantite"+id).value;
	 	if(isNaN(qte)){
	 		document.getElementById("qantite"+id).value=1;
	 		return;
	 	}
	 	if (operation==1){ qte++;}
	 	else if (operation==0){
	 		qte--;
	 	}
	 	if (qte<1){qte=1; }
	 	if (qte>100){
	 		qte=100;
	 	}
	 	document.getElementById("qantite"+id).value=qte;
	 }
	 function corregerQte(id)
	 {
	 	var qte=document.getElementById("qantite"+id).value;
	 	if(isNaN(qte)){
	 		document.getElementById("qantite"+id).value=1;
	 	}
	 	if (qte<1){qte=1; }
	 	if (qte>100){
	 		qte=100;
	 	}
	 	document.getElementById("qantite"+id).value=qte;
	 }
	 

