if (typeof OV == "undefined" || !OV) {
    var OV = {};
}

OV.commentTab = {};

OV.commentTab.updateCount = function() {
	var question_id = YAHOO.util.Dom.get("tab_question").value;
	var cObj = YAHOO.util.Connect.asyncRequest('GET', '/comments/count?question_id=' + question_id, OV.commentTab.updateCountCallback);
}

OV.commentTab.updateCountCallback = {
	success: function(o) {
	  var el = YAHOO.util.Dom.get("user_comments_tab");
    	  el.innerHTML = el.innerHTML + " (" + o.responseText + ")";
	},
	  failure: function(o) {
	}
}
