var xmlhttp;

 function get_subcat(str)                                  //
	{															    //	
	xmlhttp=getObject();								        //		
	if(xmlhttp==null)										    //
	{														    //	
	alert('object not created')
	}

 	var url="get_subcat.php?str="+str
	
  xmlhttp.onreadystatechange=stateChanged_subcat;
  xmlhttp.open('get',url,true)
  xmlhttp.send(null)
 }


function stateChanged_subcat() 
{ 
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
 { 
 document.getElementById("subcat").innerHTML = xmlhttp.responseText
 } 
}

////////////////////////////////////////////////////////////////////

																	//		
function get_product(str)                                             //
{															        //	
	xmlhttp=getObject();								            //		
	if(xmlhttp==null)										        //
	{														        //	
	alert('object not created')
	}

 	var url="get_product.php?str="+str
	
  xmlhttp.onreadystatechange=stateChanged_product;
  xmlhttp.open('get',url,true)
  xmlhttp.send(null)
 }


function stateChanged_product() 
{ 
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
 { 
 document.getElementById("proid").innerHTML = xmlhttp.responseText
 } 
}





function get_subcat1(str)                                  //
	{															    //	
	xmlhttp=getObject();								        //		
	if(xmlhttp==null)										    //
	{														    //	
	alert('object not created')
	}

 	var url="get_subcat1.php?str="+str
	
	
  xmlhttp.onreadystatechange=stateChanged_subcat1;
  xmlhttp.open('get',url,true)
  xmlhttp.send(null)
 }


function stateChanged_subcat1() 
{ 
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
 { 
 document.getElementById("subcat").innerHTML = xmlhttp.responseText
 } 
}

////////////////////////////////////////////////////////////////////

																	//		
function get_product1(str)                                             //
{															        //	
	xmlhttp=getObject();								            //		
	if(xmlhttp==null)										        //
	{														        //	
	alert('object not created')
	}

 	var url="get_product1.php?str="+str
	
  xmlhttp.onreadystatechange=stateChanged_product1;
  xmlhttp.open('get',url,true)
  xmlhttp.send(null)
 }


function stateChanged_product1() 
{ 
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
 { 
 document.getElementById("proid").innerHTML = xmlhttp.responseText
 } 
}



function get_state(str)                                             //
{															        //	
	xmlhttp=getObject();								            //		
	if(xmlhttp==null)										        //
	{														        //	
	alert('object not created')
	}

 	var url="get_state.php?str="+str
	
  xmlhttp.onreadystatechange=stateChanged_state;
  xmlhttp.open('get',url,true)
  xmlhttp.send(null)
 }


function stateChanged_state() 
{ 
if (xmlhttp.readyState==4 || xmlhttp.readyState=="complete")
 { 
 document.getElementById("state").innerHTML = xmlhttp.responseText
 } 
}


function getObject(handler)
{
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;
}


