function pollCheck() { var maxNum = document.frmPoll.answer.length var total = 0; for( i = 0; i < maxNum; i++ ) { if( frmPoll.answer[i].checked == true ) { total = total + 1 ans = frmPoll.answer[i].value; } } if( total == 0 ) { alert("Ç׸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä."); return false; } document.frmPoll.ans.value = ans; document.frmPoll.submit(); } poll_str = ""; poll_str += ""; poll_str += "
"; poll_str += "