
var xmlHttp3;

function P_ID(p_id)
{ 
document.getElementById(product_whichElement).innerHTML = 'loading....';
//alert(document.getElementById(top_whichElement).innerHTML);
xmlHttp3=GetXmlHttpObject3();

if (xmlHttp3==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 
var url=product_whichLink;
url=url+"?p_id="+p_id;

xmlHttp3.onreadystatechange=stateChanged3;
xmlHttp3.open("GET",url,true);
xmlHttp3.send(null);
if (parseInt(p_id)>0 )
{
C_ID(p_id);//alert(url)//this is used to view the URL being sent to the query page.
}
}

function stateChanged3() 
{ 

if (xmlHttp3.readyState==4)
{ 

document.getElementById(product_whichElement).innerHTML=xmlHttp3.responseText;
}
}

function GetXmlHttpObject3()
{
var xmlHttp3=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp3=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp3=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp3=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp3;
}
