<!--

    function showPoll(pollid,ansid,pollmode,response) {
        if(response!='') {
	    if(document.getElementById('poll'+pollid+'a')) {
//		document.getElementById('polldiv'+pollid).innerHTML=response;
		document.getElementById('poll'+pollid+'a').innerHTML=response;
		document.getElementById('poll'+pollid+'foot').innerHTML='&nbsp;';
		}
	    if(document.getElementById('archivepolldiv'+pollid)) {
		document.getElementById('archivepolldiv'+pollid).innerHTML=response
//		document.getElementById('archivepolldiv'+pollid).style.display='block'
//		resizediv();
		}
	    _resizeColumns();
            }
        else {
            if(pollid>0) {
		if((!isNaN(ansid))&&(pollmode=='vote')) {
		    pollmode+='&answerid='+ansid
		    }
		var paj=new _neoAjax('pollcallback');
                paj.postXML('user_includes/ajax/_ajax.php?module=poll&mode='+pollmode+'&pollid='+pollid,'module=poll');
                }
            }
	}
    
    function pollcallback(result) {
	if(result.getElementsByTagName('pollid')[0]) {
	    var show='<table width="90%" border="0" cellpadding="0" cellspacing="1" align="center">'
//	    show+='<tr><td><b>'+result.getElementsByTagName('question')[0].firstChild.data+'</b><br>&nbsp;</td></tr>'
	    var total=result.getElementsByTagName('total')[0].firstChild.data
	    total=total==0?1:total;
	    var largest=result.getElementsByTagName('largest')[0].firstChild.data
	    answers=result.getElementsByTagName('answer')
	    var caption
	    var sum
	    var thisuser
	    var first
	    var pollbg
	    for(var i=0;i<answers.length;i++) {
		caption=answers[i].getElementsByTagName('caption')[0].firstChild.data
		sum=answers[i].getElementsByTagName('sum')[0].firstChild.data
		thisuser=answers[i].getElementsByTagName('thisuser')[0].firstChild.data
		arany=Math.round(sum*100/total)
//		show+='<tr><td>'+caption+' ('+sum+'/'+total+' - '+arany+'%)</td></tr>'
		show+='<tr><td>'+caption+' ('+arany+'%)</td></tr>'
		show+='<tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">'
		first=Math.round(sum*100/total)
		pollbg='poll_bg'
		if(first==100) {
		    show+='<tr><td class="votebg"><img src="images/spacer.gif" border="0" width="1" height="3" alt="" /></td>'
		    }
		else if(first==0) {
		    show+='<tr height="3"><td><img src="images/spacer.gif" border="0" width="1" height="3"></td>'
		    }
		else {
		    show+='<tr height="3"><td width="'+first+'%" class="votebg"><img src="images/spacer.gif" border="0" width="1" height="3" alt="" /></td>'
		    show+='<td width="*"><img src="images/spacer.gif" border="0" width="1" height="3" alt="" /></td></tr>'
		    }
		show+='</table></td></tr>'
		}
	    show+='</table>'
            showPoll(result.getElementsByTagName('pollid')[0].firstChild.data,0,0,show)
	    }
        }

//-->
