// JavaScript Document
var xmlHttp
function getCurrency(str)
{	
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	var url="currency.php?p="+str	
	xmlHttp.onreadystatechange=CurrencySymbol
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function CurrencySymbol() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		var Response = xmlHttp.responseText;			
		if(Response != '')
		{
			document.location.reload();
			//document.getElementById("div_Charges").innerHTML = Response ;		
		}
		//else
		//{
			//document.getElementById("div_Charges").innerHTML = "" ;
		//}
	}
	
}

/****************************************************************************************/
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;
}
/****************************************************************************************/
