/*	Blogs*/var blogCommentsDocsAjaxReq;var blogCommentsDocs = '';var blogCommentsStart = 1;var blogCommentsTotal = 0;var blogCommentsHTMLCount = 0;var blogCommentsHTML = '';var blogCommentsHTML2Count = 0;var blogCommentsHTML2 = '';function showblogCommentsDocuments() {	var url = '/' + dbname + '/ISBlogCommentsPublished?ReadViewEntries&start=' + '1' + '&count=' + '201' + '&restricttocategory=' + qsIndustrySector + '-' + qsISBlogName + '&outputformat=JSON' + '&ms='+ new Date().getTime();	blogCommentsDocsAjaxReq = createAJAXRequest(url, blogCommentsDocsResponseFunction);	blogCommentsDocsAjaxReq.send(null);	}function showcentralblogCommentsDocuments() {	var url = '/' + dbname + '/ISBlogCentralCommentsPublished?ReadViewEntries&start=' + '1' + '&count=' + '201' + '&outputformat=JSON' + '&ms='+ new Date().getTime();	blogCommentsDocsAjaxReq = createAJAXRequest(url, blogCommentsDocsResponseFunction);	blogCommentsDocsAjaxReq.send(null);	}function blogCommentsDocsResponseFunction() {	if (blogCommentsDocsAjaxReq.readyState === 4){		if (blogCommentsDocsAjaxReq.status === 200) {			eval("blogCommentsDocs = " + blogCommentsDocsAjaxReq.responseText );			outputblogCommentsDocuments();		} else {			// returned other than complete			alert("AJAX failed with error: \n" + blogCommentsDocsAjaxReq.status + " - " + blogCommentsDocsAjaxReq.statusText);		}	}	}function outputblogCommentsDocuments() {	if (typeof blogCommentsDocs != "object") {		alert("data not loaded [" + typeof blogCommentsDocs + "]")		return;	}		blogCommentsTotal = parseInt(blogCommentsDocs['@toplevelentries']);		if (typeof blogCommentsDocs.viewentry != "undefined") {		for (var i = 0; i < blogCommentsDocs.viewentry.length; i++) {			addblogCommentsHTML(i);		}	}	outputblogCommentsHTML();}function addblogCommentsHTML(i) {	var html = '';	var blogheading = getViewColData(blogCommentsDocs.viewentry[i], "threadTitle");	if (blogheading == '')		blogheading = getViewColData(blogCommentsDocs.viewentry[i], "BlogName");	var linkText = getViewColData(blogCommentsDocs.viewentry[i], "NomAuthor") + ' on ' + blogheading;			html += '<a href="javascript:getURL(' + "'" + getViewColData (blogCommentsDocs.viewentry[i], 'alink') + '&src=is' + '#' + getViewColData(blogCommentsDocs.viewentry[i], "UNID") + "'" +');void(0)">';	html += '<p class="BHRecentPost" style="margin-bottom:5px;">';	html += linkText;	html += '</p>';	html += '</a>';		if (blogCommentsHTMLCount++ < 9) {		blogCommentsHTML += html;	} else {		if (blogCommentsHTML2Count == 0) {			blogCommentsHTML += '<div id="moreRecentComments">';			blogCommentsHTML += '<a href="javascript:showMoreComments(); void(0);">';			blogCommentsHTML += '<span class="ISMoreNews" style="font-weight:normal;">';			blogCommentsHTML += 'MORE RECENT COMMENTS';			blogCommentsHTML += '</span>';			blogCommentsHTML += '</a>';			blogCommentsHTML += '</div>';		}				if (blogCommentsHTML2Count++ < 11)			blogCommentsHTML2 += html;	}	}function outputblogCommentsHTML() {	var tArea = document.getElementById("blogCommentsOutput");	tArea.innerHTML = blogCommentsHTML;		tArea = document.getElementById("blogCommentsOutput2");	tArea.innerHTML = blogCommentsHTML2;}