var xmlHttp;

function showAll(index)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }
var url="showall.php";
url=url+"?id="+index;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

var loading1="<center><br/>Loading ReMixes......<br/><br/><img src='images/loding_1.gif'/><br/></center>";
var loading2="<center><br/>Please Wait......<br/><br/><img src='images/loding_1.gif'/><br/></center>";

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("Show_All").innerHTML=xmlHttp.responseText;
 } 
 else if (xmlHttp.readyState==2 || xmlHttp.readyState==3)
 {
	 document.getElementById("Show_All").innerHTML=loading2;
 }
 else if (xmlHttp.readyState==1)
 {
	 document.getElementById("Show_All").innerHTML=loading1;
 }
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
