\
我来评分(请您参与评分,体现您的观点)
\
共 '+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('