ÿþ<html> <head> <meta content="text/html; charset=windows-1255" http-equiv="Content-Type"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Language" content="he"> <link rel="stylesheet" href="style.css" type="text/css"> <script type="text/javascript" src="form.js"></script> </head> <script language=JavaScript src=shablon.js> </script> <script language=JavaScript > <!-- function isDigit(s) { for(i=0;i<10;i++) { ss=""+i; if (s.indexOf(ss)>=0) return true; } return false; } function isOnlyDigit(s) { var sss; for (j=0; j<s.length; j++) { sss=s.charAt(j); if (!isDigit(sss)) return false; } return true; } function checkForm() { var N=4 var errors; var f = document.forms[0]; errors = new Array(N); for (var i=0; i < N; i++) errors[i]=false; f.nm.style.color= "#000000"; f.eml.style.color= "#000000"; f.fml.style.color= "#000000"; f.tel.style.color= "#000000"; if (isEmpty(f.nm.value) || f.nm.value=="???") { f.nm.value="???"; f.nm.style.color= "#FF0000"; errors[0] = true; } else if (isDigit(f.nm.value)) { f.nm.style.color= "#FF0000"; errors[0] = true; } if (isEmpty(f.fml.value) || f.fml.value=="???") { f.fml.value="???"; f.fml.style.color= "#FF0000"; errors[1] = true; } else if (isDigit(f.fml.value)) { f.fml.style.color= "#FF0000"; errors[1] = true; } if (isEmpty(f.eml.value) || f.eml.value=="???") { f.eml.value="???"; f.eml.style.color= "#FF0000"; errors[2] = true; } else if (!isMail(f.eml.value)) { f.eml.style.color= "#FF0000"; errors[2] = true; } if (isEmpty(f.tel.value) || f.tel.value=="???") { f.tel.value="???"; f.tel.style.color= "#FF0000"; errors[3] = true; } for (i=0; i < N; i++) if (errors[i]) { alert ("àÐ êÑÓÕç éÕÑ Ðê ÔàêÕàÙÝ éÔÛàáê"); return false; } return true; } --> </script> <!--place for text --> <P>&nbsp; <FORM method=POST action="http://ukamina.com/othello/join.php3" onSubmit="return checkForm();"> <TABLE align=center border=0 cellpodding=5> <TR> <TD>1. éÝ äèØÙ</TD> <TD width=15></TD> <TD><input type=text size=20 id=nm name=nm onClick="this.style.color= '#000000';"></TD> </TR> <TR> <TD>2.éÝ Þéä×Ô</TD> <TD></TD> <TD><input type=text size=20 id=fml name=fml onClick="this.style.color= '#000000';"></TD> </TR> <TR> <TD>3.ÓÕÐè ÐÜçØèÕàÙ</TD> <TD></TD> <TD><input type=text size=20 id=eml name=eml onClick="this.style.color= '#000000';"></TD> </TR> <TR> <TD>4.ØÜäÕß</TD> <TD></TD> <TD><input type=text size=20 id=tel name=tel onClick="this.style.color= '#000000';"></TD> </TR> <TR> <TD colspan=3 align=center><P>&nbsp;<br> <input type=submit value="éÜ×">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=reset value="Þ×ç"> </TD> </TR> </TABLE> </FORM> </TD></TR> </table> </body> </html>