function list_item_name(list_id, item_id){
  return list_id + "_" + item_id
} // list_item_name

function remove_from_list(list_id, item_id){
  $(list_item_name(list_id, item_id)).remove();
} // remove_from_list

function clear_input(element, has_been_cleared) {
  if(!has_been_cleared) {
    element.value = '';
  } // if 
  return true;
} // clear_input


var CommentCookie = {
setCookie:
  function(name, value) {
    cookieString = name + "=" + value + "; path=/";
    document.cookie = cookieString;
  },

setCommentCookie: 
  function(comment, postId) {
    CommentCookie.setCookie("DTCBlogComment", comment);
    CommentCookie.setCookie("DTCBlogCommentPostId", postId) 
  }
};


