//$Id: subscribe.js 618 2006-08-04 18:22:05Z star000s $
function subscribe(id, objType) {
   var url;
   var underscoreIndex = id.indexOf('_');
   var obj_id = id;
   if (underscoreIndex >= 1) {
      obj_id = id.substring(0,underscoreIndex);
   }
   if (objType == "E") {
      url  = 'http://' + location.hostname + '/subscribe.php?event_id=' + obj_id;
   }
   else if (objType == "V") {
      url  = 'http://' + location.hostname + '/subscribe.php?venue_id=' + obj_id;
   }
   else if (objType == "T") {
      url  = 'http://' + location.hostname + '/subscribe.php?tag_id=' + obj_id;
   }
   else if (objType == "L") {
      url  = 'http://' + location.hostname + '/subscribe.php?list_id=' + obj_id;
   }
   else if (objType == "G") {
      url  = 'http://' + location.hostname + '/subscribe.php?guide_id=' + obj_id;
   }
   else if (objType == "U") {
      url  = 'http://' + location.hostname + '/subscribe.php?user_id=' + obj_id;
   }
   loadDoc(url, "s_" + id);
}

