var xmlhttp10 , xmlhttp2;
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;
}

function setCurrency(currency)
{
xmlhttp10=getxmlhttpobject()

window.location.reload();

var query="currency_val="+currency+"&currency="+currency;

xmlhttp10.onreadystatechange=function(){
if (xmlhttp10.readyState==4)
 {
  //document.getElementById('test').innerHTML=xmlhttp10.responseText;
  }
 }
 
xmlhttp10.open("GET","action_page.php?action=set_currency&"+query,true)
xmlhttp10.send(null)

}

