function startVote(){
	
	var len = frmVote.vi_id.length;
	var hasChecked = false;
	for(var i=0;i<len;i++){
		if(frmVote.vi_id[i].checked) hasChecked=true;
	}
	if(!hasChecked){
		alert("必须选择一个投票选项！");
		frmVote.vi_id[0].focus();
		return;
	}
	
	var w = 566;
	var h = 480;
	var newwindow=window.open("","StartVote","width="+w+",height="+h+",resizable=yes,scrollbars=1");
	newwindow.moveTo((window.screen.width-w)/2,(window.screen.height-h)/2);
	newwindow.focus();
	frmVote.act_type.value="start";
	frmVote.action="vote.jsp";
	frmVote.target="StartVote";
	frmVote.submit();
}

function showTheVote(){
	var w = 566;
	var h = 480;
	var newwindow=window.open("","StartVote","width="+w+",height="+h+",resizable=yes,scrollbars=1");
	newwindow.moveTo((window.screen.width-w)/2,(window.screen.height-h)/2);
	newwindow.focus();
	frmVote.act_type.value="show";
	frmVote.action="vote.jsp";
	frmVote.target="StartVote";
	frmVote.submit();
}