<!--
function anyCheck() {

var total = 0;
var total2 = 0;
var flag = true;

var max = document.form1.count.value;
var range = 7
for (var idx = 1; idx < range; idx++) {


if (eval("document.form1.check" + idx +".checked") == true) {

    total += 1;
   if (total  != 1 ){
		alert("最受歡迎新人,男歌星只可選一位");
		flag=false;

	}
	
	}

}

for (var idx = range ; idx <= max ; idx++) {
//alert(idx + "max=" + max);

if (eval("document.form1.check" + idx +".checked") == true) {
    total2 += 1;
   if (total2 != 1){
		alert("最受歡迎新人,女歌星只可選一位");
		flag=false;

	}
	
	}

}
   if (flag==true)
   {
		document.form1.submit();
	}

}
//-->