function showKategori(str)//fungsi AJAX dimulai disini
			{ 
				var xhr; 
				try {  xhr = new ActiveXObject('Msxml2.XMLHTTP');   } // cek browser
				catch (e) 
				{
					try {   xhr = new ActiveXObject('Microsoft.XMLHTTP');    }
					catch (e2) 
					{
					  try {  xhr = new XMLHttpRequest();     }
					  catch (e3) {  xhr = false;   }
					}
				 }
			  
				xhr.onreadystatechange  = function()
				{ 
					 if(xhr.readyState  == 4)// jika terhubung dengan file tujuan
					 {
						  if(xhr.status  == 200) {//file tujuan sudah terbaca
							  document.getElementById("z").innerHTML=xhr.responseText;
						  }else{ 
							 document.getElementById("z").innerHTML="Error code " + xhr.status;//gagal
						  }
					 } else {
					 
						document.getElementById("z").innerHTML="<div style='width:300px' align=center><img src='images/loader.gif' alt='loading...' /></div>"; // jika belum terhubung dengan file tujuan akan muncul gambar loading
					 }
				}; 

							var url = "detailKategori.php";//GEtMenu akan menjadi $_GET["GetMenu"] di file tujuan
							url=url+"?cmd=detailKategori&q="+str
							url=url+"&sid="+Math.random()
							xhr.open("GET", url,  true); //file tujuan
							xhr.send(null);//fungsi untuk metode GET, perhatikan perbedaan dengan POST
						
			}
			
		