
function vote(s,subjectname,titlecontent,links,md,forumid)
{
	var photoxq = new Array();
	photoxq["s"] =s;						
	photoxq["channelname"] ="tuku"; 		
	photoxq["subjectname"] =subjectname;	
	photoxq["tukuid"] =forumid;				
	photoxq["newscontent"] =titlecontent;	
	photoxq["links"] =links;				
	photoxq["m"] = md;						
}

//投票弹出窗口
function newsxqvote(formname,item){
	var theform = document.getElementById(formname);
	var formaction = "http://survey.news.china.com/module/newsxq/poll.php";
	var targeturl = formaction;
	targeturl +="?s="+theform.s.value+"&";
	targeturl +="newsxqradio="+item+"&";;
	targeturl +="channelname="+theform.channelname.value+"&";
	targeturl +="subjectname="+theform.subjectname.value+"&";
	targeturl +="newsid="+theform.newsid.value+"&";
	targeturl +="newscontent="+theform.newscontent.value+"&";
	targeturl +="links="+theform.links.value+"&";
	targeturl +="m="+theform.m.value+"&";
	targeturl +="r="+((theform.r.value!="")?escape(theform.r.value):"");
	//targeturl +="&dbg=1";
	//alert(targeturl);return false;
	targetname ="viewtukuxqdetail",
	targetparam = "height=265,width=500,location=no,menubar=no,resizable=no,scrollbars=no,titlebar=no,toolbar=no";
	window.open(targeturl,targetname,targetparam);
}

//投票Form通用函数
function mknewsxqvote(formname,bkgcolor){
	var formstr = "";
	formstr +="<table cellspacing=\"0\" width=\"560\" align=\"center\" cellpadding=\"0\"><tbody><tr>";
	formstr +="<td><img src=\"http://image2.sina.com.cn/dy/moodcounter/news_xq_ws_030.gif\" alt=\"\" height=\"5\" width=\"560\"></td>";
	formstr +="	</tr>";
	formstr +="	</tbody></table>";
	formstr +="	<table align=\"center\" style=\"background: rgb("+bkgcolor+") none repeat scroll 0%;\" cellspacing=\"0\" width=\"560\"><tbody><tr valign=\"top\">";
	formstr +="<td align=\"center\" width=\"560\"><table align=\"center\" style=\"line-height: 23px;\" cellspacing=\"0\" width=\"520\"><tbody><tr align=\"center\" valign=\"top\">";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/admire.gif\" alt=\"佩服\" ><br>佩服<br><input name=\"newsxqradio\" value=\"0\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/smile.gif\" alt=\"微笑\" ><br>微笑<br><input name=\"newsxqradio\" value=\"1\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/sad.gif\" alt=\"难过\" ><br>难过<br><input name=\"newsxqradio\" value=\"2\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/angry.gif\" alt=\"愤怒\" ><br>愤怒<br><input name=\"newsxqradio\" value=\"3\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/pass.gif\" alt=\"路过\" ><br>路过<br><input name=\"newsxqradio\" value=\"4\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="<td style=\"font-size: 14px;\"><img src=\"http://news.china.com/zh_cn/survey/disgust.gif\" alt=\"恶心\" ><br>恶心<br><input name=\"newsxqradio\" value=\"5\" onclick=\"javascript:if(this.checked) newsxqvote('"+formname+"',this.value);this.checked=false;this.checked=false;return false;\" type=\"radio\"></td>";
	formstr +="</tr></tbody></table></td></tr></tbody></table>";
	formstr +="<table cellspacing=\"0\" width=\"560\" align=\"center\" cellpadding=\"0\"><tbody><tr>";
	formstr +="<td><img src=\"http://image2.sina.com.cn/dy/moodcounter/news_xq_ws_031.gif\" alt=\"\" height=\"5\" width=\"560\"></td>";
	formstr +="	</tr>";
	formstr +="	</tbody></table>";
	
	return formstr;
}