function check(form)
{
var pamas = document.getElementsByName("投票项的NAME值")
var count = 0
for (i=0i<pamas.lengthi++){
if(pamas[i].checked == true){
count++
}
}
if(count!=5)
{
alert("必须同时选择5个人才能进行投票!")
form.name.focus()
return false
}
</script>
function check(form)
{
var pamas = document.getElementsByName("投票项的NAME值")
var count = 0
for (i=0i<pamas.lengthi++){
if(pamas[i].checked == true){
count++
}
}
if(count!=5)
{
alert("必须同时选择5个人才能进行投票!")
form.name.focus()
return false
}
</script>