var xmlHttp

function showPrice(str, str2, str3)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX - Price details will not be visible");
  		return;
  	} 
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET","getprice.asp?price="+str+"&currency="+str2+"&exchange="+str3,true);
	xmlHttp.send(null);
}

function stateChanged()
{
	if (xmlHttp.readyState==4)
	{
		document.getElementById("txtPrice").innerHTML=xmlHttp.responseText;
	}
}
function showPrice1(str, str2, str3)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX - Price details will not be visible");
  		return;
  	} 
	xmlHttp.onreadystatechange=stateChanged1;
	xmlHttp.open("GET","getprice.asp?price="+str+"&currency="+str2+"&exchange="+str3,true);
	xmlHttp.send(null);
}

function stateChanged1()
{
	if (xmlHttp.readyState==4)
	{
		document.getElementById("txtPrice1").innerHTML=xmlHttp.responseText;
	}
}
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;
}