function appendStart(level, maxLevels){
	var html = getInnerHtml(level, maxLevels);	
	document.write(html);
}

function getInnerHtml(level, maxLevels){
	var maxLevel = maxLevels;
	var panelWidth;
	var startWidth;
	
	if(level == '--') {
		level = 0;	
	}
	
	if(maxLevel==null){
		maxLevel = 5;
	}
	
	
	panelWidth = maxLevel* 15;
	startWidth = panelWidth * (level/maxLevel);
	
	var html = "<span title='" + level +"' style=\"display:block;float:left; width:" + panelWidth + "px;height:13px;background:url('/poll/templates/default/images/star_1_14x12.gif');font-size:5px;text-align:left;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;\">";
	html += "   <span style=\"width:" + startWidth + "px;height:13px;background:url('/poll/templates/default/images/star_3_14x12.gif');font-size:5px;display:block;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;\"></span></span>";	
	return html;
}
