// chart control functions ///////////////////////////////////
      // set zoom
      function setZoom(from, to){
         var from = document.getElementById("from").value;
         var to = document.getElementById("to").value;  
         flashMovie.setZoom(from, to); 
      }  
      // show all (zoom to default)
      function showAll(){
         flashMovie.showAll(); 
      }
      // export image
      function exportImage() {
         flashMovie.exportImage('export.php'); // it is not required to pass filename here if you set it in settings file) 
      }
      
      // functions called from flash /////////////////////////////////////////
      // this function is called then chart is finished
      function amChartInited(chart_id){
          flashMovie = document.getElementById("amline"); 
                     
      }      
      // return param     
      function amReturnParam(chart_id, param){
                     
      }      
      // return data 
      function amReturnData(chart_id, param){
               
      }      
      // get zoom
      function amGetZoom(chart_id, from, to){
          document.getElementById("from").value = from;
          document.getElementById("to").value = to;
      } 
      // this function is called then user selects graph by clicking on it           
      function amGraphSelect(chart_id, index, title){
          
      }
      // this function is called then user deselects graph by clicking on it           
      function amGraphDeselect(chart_id, index, title){
          
      }   
      // this function is called then user hides graph by clicking on the legend key           
      function amGraphHide(chart_id, index, title){
          
      }
      // this function is called then user shows hidden graph by clicking the legend key           
      function amGraphShow(chart_id, index, title){
          
      } 
      // this function is called when indicator position changes           
      function amRolledOverSeries(series){
          
      }
      // this function is called when user clicks on plot area             
      function amClickedOnSeries(series){
          
      }
      // this function is called when user clicks on bullet (only if this bullet has url attribute or clickable_bullets is set to true in graph configuration)            
      function amClickedOnBullet(graph_index, value, series, url, description){
          
      }          
      // this function is called when user rolls over the bullet (only if this bullet has url attribute or clickable_bullets is set to true in graph configuration)             
      function amRolledOverBullet(graph_index, value, series, url, description){
          
      }  
      // error 
      /*function amError(chart_id, message){
          alert(message);
      }*/                  
   // ]]>