/**
 * @author mrKelly
 */

/* step 1 */

function changeVoteDescription( divID, cnt, fullDesc ){
    /* set the viewable text description */
    var dvID = $("#"+divID);
    var cntShow  = cnt;
    var txt = escape(fullDesc);
    var aTag = "<a onclick=\"javascript:showAllVoteDescription('" + divID + "','" + txt + "');\" style ='cursor: pointer;'>[Read More]</a>";
    if(txt.length > cntShow) dvID.html(unescape(txt).substring(0,cntShow)+"... " +aTag);
}

function showAllVoteDescription ( divID, fullDesc ){
	var dvID = $("#"+divID);
	var txt = unescape(fullDesc);
    dvID.html( txt);
}

