<SCRIPT language="JavaScript">
function CheckForm(theForm) {
var name_name = new Array("name", "company", "grade"); var name_title = new Array("¼º¸í", "»óÈ£", "Á÷Ã¥");
for(var i in name_name){ //¹è¿ÀÇ ±æÀ̸¸Å ·çÇÁ¸¦ µ·´Ù if (document.getElementById(name_name[i]).value == ""){ alert(name_title[i] + "À» ÀÔ·ÂÇϼ¼¿ä."); document.getElementById(name_name[i]).focus(); return (false); }
} for(var i = 1; i < 27; i++)
{ if(document.getElementById("q"+ i).value == ""){ alert("¼³¹®Á¶»ç´Â ¸ðµÎ ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù"); document.getElementById("q" + i).focus(); return (false); } } }
</SCRIPT>
<BODY> <center> <table width="650" border="0" cellpadding="0" cellspacing="0"> <form action="" method=post name=register onsubmit="return CheckForm(this)"> <input type=text name=name> <input type=text name=company> <input type=text name=grade> <input type=text name=q1> <input type=text name=q2> <input type=text name=q3> <input type=text name=q4> <input type=text name=q5> <input type=text name=q6> <input type=text name=q7> <input type=text name=q8> <input type=submit value='Å×½ºÆ®Çغ¸Àå'> </form>
|