function go()
{
  set_title( document.getElementById('my_text').value );
}


function push()
{
  tmp = findSWF("chart");
  
  // pass in:
  //   the data set to add the value to
  //   the value
  //   the new x axis label
  x = tmp.push_value(
    0,
    document.getElementById('my_val').value,
    document.getElementById('my_label').value );
}

function msg()
{
  tmp = findSWF("chart");
  x = tmp.show_message(
    document.getElementById('my_msg').value );
}

function msg_hide()
{
  tmp = findSWF("chart");
  x = tmp.hide_message();
}

function pop()
{
  tmp = findSWF("chart");
  
  // which data set you want to delete a value from
  x = tmp.delete_value(0);
}

function set_title(str) {
  tmp = findSWF("chart");
  x = tmp.set_title(str);
}


function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window["ie_" + movieName];
  } else {
    return document[movieName];
  }
}
