<script type="text/javascript">

var chart = new BFCChart("bfcChart", 501, 400, 500);
chart.createChart();

 </script>
<input type='text' value='5 Minute' onclick='chart.timeFrame_set("5-Minute");' />