function plotTideLocationHandler()
{
  //alert('plotTideLocationHandler');
  // Make sure the request is loaded (readyState = 4)
  if (req.readyState == 4)
  {
    // Make sure the status is "OK"
    if (req.status == 200)
    {
      showWait('hidden');
      waitflag = false;
      var notes = req.responseXML.getElementsByTagName('note');
      //alert('selectDateHandler(): 200 - notes.length = ' + notes.length);
      var noteNode = notes.item(0);
      filename = noteNode.firstChild.nodeValue;
      //alert('filename = ' + filename);
      if (filename != "error")
      {
        filename = '/myocean/SCB/data/images/tide/output/' + filename + '.jpg';
        //alert('filename = ' + filename);
        showSubImage(filename, 'visible');
      }
      else
      {
        alert('Can not get info from the selected location');
      }
    }
  }
}


