var xmlHttp
function g_gr()
{
xmlHttp=GetXmlHttpObject();

if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }


sel=document.f3.goods_group.selectedIndex;
str=parseInt(document.f3.goods_group.options[sel].value);
if (str !=0)
 {
var url="ajax/f_search.php";
url=url+"?id="+str;
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
 }
}



function stateChanged2()
{
if (xmlHttp.readyState==4)
 {
  c = xmlHttp.responseText;
  document.getElementById("c_series").innerHTML=c;

 }
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

