new Ajax.PeriodicalUpdater('vesseldetails', '/common/xmlvessellist.php',
  {
    method: 'get',
    frequency: 120,
    decay: 0
  });

new Ajax.PeriodicalUpdater('recentcomments', '/common/getrecentcomments.php',
  {
    method: 'get',
    frequency: 300,
    decay: 0
  });
  new Ajax.PeriodicalUpdater('recentphotos', '/common/getrecentphotos.php',
  {
    method: 'get',
    frequency: 600,
    decay: 0
  });
  
  function getResults() {
     //alert('clicked');
     $('sresults').innerHTML = "Searching...";
     Element.show('searchresultstitle');
     Element.show('results');
     var url = '/common/mmsiquery.php';
     var pars = "field="+escape($F('field'))+"&lookfor="+escape($F('lookfor'));
     var target = 'sresults';
     var myajax = new Ajax.Updater(target, url, {method: 'get', parameters: pars});
  };
  function closeSearch() {
     Effect.DropOut('results');
     Effect.DropOut('searchresultstitle');     
  };  