var bloghome = "MyBlogHome";
var ViewPost = "ViewPost";

function ccBlogsMember(userId) {
  var url =  isNaN(userId) ? "q?pg=member&u="+userId : "PageServlet?pg=member&userId="+userId;
  openWin("member" + (new Date()).getTime(),url,550, 460, "resizable=yes,scrollbars=yes,status=yes");
}

function returnIndex() {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome;
}

function returnIndexByUserId(userId) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&userId=" + userId;
}

function returnIndexByUserIdAndContext(userId,ctx) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&userId=" + userId + "&cx=" + ctx;
}

function returnIndexByBlogId(blogId) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&blogId=" + blogId;
}

function returnIndexByBlogIdAndContext(blogId,ctx) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&blogId=" + blogId + "&cx=" + ctx;
}

function returnIndexByBlogIdAndCategoryId(blogId,categoryId,ctx) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&blogId=" + blogId + "&cx=" + ctx + "&categoryId=" + categoryId;
}

function returnIndexByBlogIdAndDay(blogId,day,ctx) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + bloghome + "&blogId=" + blogId + "&cx=" + ctx + "&day=" + day;
}

function returnBlogTagListByPersonal(tagId,ctx,campusId,domainType,instanceId,blogId) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + blogTagPage + "&cx=" + ctx + "&tagId=" + tagId + "&campusId=" + campusId + "&domainType=" + domainType + "&instanceId=" + instanceId + "&blogId=" + blogId;
}

function returnBlogTagListByCommunity(tagId,ctx,campusId,domainType,instanceId) {
  location.href = BLOG_URL_UTIL.getURL() + "Blogs-BlogsTagListSearchList&tagId=" + tagId + "&campusId=" + campusId + "&domainType=" + domainType + "&instanceId=" + instanceId;
}

function returnBlogTagListByCampus(tagId,ctx,campusId) {
  location.href = BLOG_URL_UTIL.getURL() + "Blogs-BlogsTagListSearchList&tagId=" + tagId + "&campusId=" + campusId;
}

function returnViewPostByBlogEntryId(blogEntryId,ctx) {
  location.href = "PageServlet?pg=" + PersonalBlogsPg + "&tg=" + PersonalBlogsTgPfx + ViewPost + "&cx=" + ctx + "&blogEntryId=" + blogEntryId;
}