<SCRIPT language=JavaScript> <!-- var maxChecked = 3; //¼±Åð¡´ÉÇÑ Ã¼Å©¹Ú½º °¹¼ö var totalChecked = 0; // ¼³Á¤ ³¡ function CountChecked(field) { if (field.checked) totalChecked += 1; else totalChecked -= 1; if (totalChecked > maxChecked) { alert ("ÃÖ´ë 3°³ ±îÁö¸¸ °¡´ÉÇÕ´Ï´Ù."); field.checked = false; totalChecked -= 1; } } function ResetCount(){ totalChecked = 0; } //--> </SCRIPT> üũ¹Ú½º¸¦ <script>document.write(maxChecked);</script>¸¸ ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù. <FORM action=# method=post name=Check> <INPUT name=Ants onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Bald onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Beards onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Bed onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Chins onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Flowers onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Flying onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Purple onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Teeth onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Thinking onclick=CountChecked(this) type=checkbox>http://www.xtx.kr<BR> <INPUT name=Vegetables onclick=CountChecked(this) type=checkbox>http://www.xtx.kr <BR> <INPUT name=Fear onclick=CountChecked(this) type=checkbox>http://www.xtx.kr <BR> <INPUT name=Everything onclick=CountChecked(this) type=checkbox>http://www.xtx.kr <BR><BR> <INPUT type=submit value=Submit> <INPUT onclick=ResetCount() type=reset value=Reset> </FORM>