<script Language="Javascript">
document.write('<st'+'yle>'); document.write('td {font-size:12px; font-family:±¼¸²; text-decoration:none; }'); document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}'); document.write('A:hover {text-decoration:none; color:ff9900}'); document.write('font { font-size: 9pt; }'); document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}'); document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}'); document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}'); document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color: #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }'); document.write('</st'+'yle>');
function check_text() { var f=document.cnjform; first_text=f.cnj_text.value.substring(0,1); // ù±ÛÀÚ È®ÀÎ º¯¼ö
if (f.cnj_text.value =="") { alert("³»¿ëÀ» ÀÔ·ÂÇϽʽÿÀ"); f.cnj_text.focus(); return false; }
if ((first_text < "0" || "9" < first_text)){ alert("¹®ÀÚÀÔ´Ï´Ù"); return false; } else { alert("¼ýÀÚÀÔ´Ï´Ù"); return false; }
} </script>
<center> <form name="cnjform" action="../cgi/js/form-test.php3"> ÅؽºÆ® Çʵ忡 ù±ÛÀÚ°¡ ¹®ÀÚÀÎÁö ¼ýÀÚÀÎÁö üũ<br><br> <input type="text" name="cnj_text" size="12" class="cnj_input"> <input type="button" value="È®ÀÎ" onclick="check_text();" class="cnj_input"> </form> </center>
<!-- Script Size : 2.242 Bytes -->
|