<html dir = rtl>
<head>
<title> </title>
<meta HTTP-EQUIV="Content-language" CONTENT="ar">
<script type="text/javascript">
function CheckForm(String)
{
var pNames = [ "sName", "sAge", "sAddress"];
for (var i = 0; i < 4;i++)
{
if (Infi[i].value == "")
document.getElementById(pNames[i]).innerHTML = 'عفواً لاتوجد قيمة في الحقل';
}
}
</script>
</head>
<body>
<form name = "Info" method = "set" action = "#">
<table border = "0" width = "80%" align = "center">
<tr>
<td align = "left"> الاســــــــــــــــم: </td>
<td > <input type="text" name = "CurName" size = "31"> <p id = "sName" style = "display: inline"> </p> </td>
</tr>
<tr>
<td align = "left"> العــــــــــــــــمر :</td>
<td> <input type = "text" name = "CurAge" size = "10"> <p id = "sAge" style = "display: inline"> </p> </td>
</tr>
<tr>
<td align = "left"> العنـــــــــــــوان :</td>
<td> <input type = "text" name = "CurAddress" size = "45"> <p id = "sAddress" style = "display: inline"> </p> </td>
</tr>
<tr>
<td align = "left"> الحالــــــــــــــــة :</td>
<td> <input type = "radio" name = "Mar" > متزوج<input type = "radio" name = "Sin" checked="yes"> أعزب </td>
</tr>
<tr>
<td colspan = 2 align = center> <button type = "button" onclick = "CheckForm(); return false;">ارسال </button> <button type = "reset">مسح</button> </td>
</tr>
</table>
</form>
</body>
</html>
フォームボックスが空かどうかを確認したいのですが、いろいろ試してみましたが、何もうまくいきませんでした。誰か助けてください。下手な英語でごめんなさい