var xmlHttp
alert(str);
function show_price1(str)
{ 
xmlHttp=GetXmlHttpObject2();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 



if(xmlHttp.readyState==0 || xmlHttp.readyState==4)
  {
	
	  xmlHttp.open("GET",'get_price.php?q='+str,true);
	
	  
	
  }
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.send(null);

}
function stateChanged2() 
{
	xmlHttp.onreadystatechange=function()
 		{
			if (xmlHttp.readyState==4)
				{ 
				
				   document.getElementById("price1").innerHTML=xmlHttp.responseText;
				   
                  
				}
 		}
}

function GetXmlHttpObject2()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

