/*
 * GoGogh - Online Technical Training
 *
 * js/log.js
 *
 * Javascript functions to record user activity.
 *
 */
 
/*
 * log()
 *
 * userid: ID of the current user
 * type: type of event (article, course, radio-listen, etc)
 * id: id of the event (ArticleID, CourseID, etc.)\
 *
 */
function log(userid, type, id) {
  new Ajax.Request('/includes/log_process.php', {
    method: 'get',
    parameters: { userid: userid, type: type, id: id },
    onSuccess: function(transport) {
      return true;
    }
  });
}
