
function getSubCategory(cat, subcat)
{
var randomnumber=Math.floor(Math.random()*1001);
dcsMultiTrack('DCS.dcsuri',topicPage+'.jsp?category='+cat+'&subcat='+subcat,'WT.ti','Click to subtopic from main page');
	
window.location = topicPage+".jsp?category="+cat+"&subcategory="+subcat+"&rand="+randomnumber;

}


function getLatestQuestions(_servlet) {
ajax =  new Ajax.Updater(
        'recent_questions',        // DIV id must be declared before the method was called
      _servlet+'&action=l&size=5',        // URL
        {  method:'get' , onComplete: showResponseLatest     });
}


function showResponseLatest(req)
{
var replaceText = req.responseText;
if ((req.responseText == null)|| (req.responseText == "")|| (req.responseText.length < 3))
	replaceText ="<span> &nbsp;</span>";
$('recent_questions').innerHTML = replaceText;
}
