// $Id: dblclick_add.js,v 1.2 2007/08/20 12:55:20 cknudsen Exp $
// Function that will send user to the add event page.  This is typically
// invoked as the ondblclick event handler.
function dblclick_add ( date, name, hour, minute )
{
  minute = ( typeof(minute) != 'undefined' ) ? minute : 0;
  if ( hour ) {
    time = "&hour=" + hour + "&minute=" + minute;
  } else {
    time = "";
    //time = "&duration=1440";
  }
  var url = 'edit_entry.php?date=' + date
    + '&defusers=' + name + time;
  window.location.href = url;
}
