function get_market_data(){


	var xmlhttp1;
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
  		xmlhttp1=new XMLHttpRequest();
  		}
	else
 	 {// code for IE6, IE5
  		xmlhttp1=new ActiveXObject("Microsoft.XMLHTTP");
  	 }
		xmlhttp1.onreadystatechange=function()
	  {
  		if (xmlhttp1.readyState==4 && xmlhttp1.status==200)
    		{
    document.getElementById('output2').innerHTML=xmlhttp1.responseText;

    }
  }

xmlhttp1.open("GET","yahoostock.php",true);
xmlhttp1.send();

}

function get_currency_data(){


	var xmlhttp2;
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
  		xmlhttp2=new XMLHttpRequest();
  		}
	else
 	 {// code for IE6, IE5
  		xmlhttp2=new ActiveXObject("Microsoft.XMLHTTP");
  	 }
		xmlhttp2.onreadystatechange=function()
	  {
  		if (xmlhttp2.readyState==4 && xmlhttp2.status==200)
    		{
    document.getElementById('currency').innerHTML=xmlhttp2.responseText;

    }
  }

xmlhttp2.open("GET","cur_yahoo_finance.php",true);
xmlhttp2.send();

}


