
		function noaffiche(){
		document.getElementById('div1').style.display = 'none';
		document.getElementById('div2').style.display = 'none';
		document.getElementById('divP').style.display = 'block';
		}
		function affiche(){
		document.getElementById('div1').style.display = 'block';
		document.getElementById('div2').style.display = 'block';
		document.getElementById('divP').style.display = 'none';
		}



	function getserverresponse2(strURL,type,param) {
					var inst = '';

					inst = 'var xmlHttpReq'+type+'=false;';
					eval(inst) ;
					var self = this;
					// Mozilla/Safari
					if (window.XMLHttpRequest) 
					{
						self.eval('xmlHttpReq'+type+'= new XMLHttpRequest()');
					}
					// IE
					else if (window.ActiveXObject) {
						self.eval('xmlHttpReq'+type+'= new ActiveXObject("Microsoft.XMLHTTP")') ;
					}
					self.eval('xmlHttpReq'+type).open('POST', strURL, true);
					//alert(strURL);
					self.eval('xmlHttpReq'+type).setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					self.eval('xmlHttpReq'+type).onreadystatechange = function()
					{
						if (self.eval('xmlHttpReq'+type).readyState == 4) 
						{
							var gridcontent;
									if(type==1){
										retour = self.eval('xmlHttpReq'+type).responseText;
									//	alert(retour);
										document.getElementById('menu_prod').innerHTML = retour;
												}
										if(type==2){
										retour = self.eval('xmlHttpReq'+type).responseText;
									//	alert(retour);
										document.getElementById('contenu_prod').innerHTML = retour;
												}
					}
					 }
					self.eval('xmlHttpReq'+type).send(strURL);
	}
function charge_menu_prod(div,div2){
			url = "http://www.atbcorporate.com.tn/detail_produits/"+div2+"/"+div+".html";
		//	getserverresponse2(url,1);
			
           ht ="<iframe id='id_iframe1' name='id_iframe1'  scrolling='no' frameborder='0' width='739' height='490' src="+url+"></iframe >";
		 document.getElementById('menu_prod').innerHTML = ht;
		
}
function charge_sous_menu_prod_gisr(div,div2){
		document.getElementById('div1').style.display = 'block';
		document.getElementById('div2').style.display = 'block';
		document.getElementById('divP').style.display = 'none';
			url = "http://www.atbcorporate.com.tn/detail_produits/"+div2+"/"+div+".html";
				
			
				//getserverresponse2(url,2);
				
           ht ="<iframe id='id_iframe' onLoad='actu_iframe();' scrolling='no' frameborder='0' width='732' height='490' src="+url+"></iframe >";
		 document.getElementById('contenu_prod').innerHTML = ht;
		
		
}



function charge_sous_menu_prod_gisr2(div,div2,taille){
		document.getElementById('div1').style.display = 'block';
		document.getElementById('div2').style.display = 'block';
		document.getElementById('divP').style.display = 'none';
			url = "http://www.atbcorporate.com.tn/detail_produits/"+div2+"/"+div+".html";
				
			
				//getserverresponse2(url,2);
				
           ht ="<iframe id='id_iframe' onLoad='actu_iframe2("+taille+");' scrolling='no' frameborder='0' width='732' height='490' src="+url+"></iframe >";
		 document.getElementById('contenu_prod').innerHTML = ht;
		
		
}
function page_vide(div){
			url = "http://www.atbcorporate.com.tn/detail_produits/compte_produits/"+div+".html";
			getserverresponse2(url,2);
		
}
 function actu_iframe2(taille){
 x = taille ;
 alert(x);
document.getElementById("id_iframe").height =x ; //window.parent.document.getElementById("id_iframe" ).contentDocument.body.scrollHeight;
 
}
 function prod(url){
 x = url ;
document.location =x ; //window.parent.document.getElementById("id_iframe" ).contentDocument.body.scrollHeight;
 
}


