\
我来评分(请您参与评分,体现您的观点)
\
共 '+x+' 个人评分, 平均分 '+y+' , 总得分 '+s+'
\
');
for(var i=0;i<=l;i++) document.write('');
document.write(' \
\
');
document.getelementbyid(id).onclick=function (){
for(var i=0;i<=l;i++) if(document.getelementbyid('sint'+i).checked)break;
if(i>l){alert('你还没选取分数');return;}
ajax.get(url[1]+i,function (obj){
if((''+obj.responsetext).indexof("havescore")!=-1){
alert('你已经评过分啦');
}else{
document.getelementbyid('mark_b4').innerhtml="评分成功!";
alert('感谢你的参与!');
}
});
this.disabled=true;
}
if(new date().togmtstring()!=new date(document.lastmodified).togmtstring()) return ajax.get(url[0],function (obj){
var a=obj.responsetext
try{
a.replace(/\[(\d+),(\d+),(\d+)\]/i,function ($0,d,t,s){
var x=parseint(d),y=(math.round(parseint(s) / x * 100) / 100) || 0;
document.getelementbyid('mark_b1').innerhtml=x;
document.getelementbyid('mark_b2').innerhtml=y;
document.getelementbyid('mark_b3').innerhtml=s;
});
}catch(ig){}
});
}
function showpf()
{document.getelementbyid('seacmsvpf1').style.display="none";document.getelementbyid('seacmsvpf2').style.display="inline";}
function markscore1(vd,d,t,s,l,ac){
var alt=['很差','较差','还行','推荐','力荐'],src=['/'+sitepath+'pic/star0.gif','/'+sitepath+'pic/star1.gif'],url=ac=='news' ? ["/"+sitepath+"include/ajax.php?id="+vd+"&action=newsscore","/"+sitepath+"include/ajax.php?id="+vd+"&action=scorenews&score="] : ["/"+sitepath+"include/ajax.php?id="+vd+"&action=videoscore","/"+sitepath+"include/ajax.php?id="+vd+"&action=score&score="],
x=d,y=(math.round(s / x * 100) / 100) || 0,id='star'+(new date()).gettime();
document.write('