function showGraphTab(selectedTab, stockSymbol)
{
	resetGraphTabs();
	tabId=selectedTab + "_graphTab";
	x=document.getElementById(tabId);
	if (x) {x.className = "selectedGraphTab"}
	
document.getElementById('price_graph').src='/graph_price.php?t='+selectedTab+'&s='+stockSymbol;
	
document.getElementById('volume_graph').src='/graph_volume.php?t='+selectedTab+'&s='+stockSymbol;
	return true;
}

function resetGraphTabs()
{
  x=document.getElementById("1day_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("5day_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("1month_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("3month_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("6month_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("1year_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("2year_graphTab");
	if (x) {x.className="graphTab"}
  x=document.getElementById("3year_graphTab");
	if (x) {x.className="graphTab"}
	return true;
}
