Problem in disabling Buttons
Here is my code. I'm not able to disable the button. What could be the problem?
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="Error.jsp" %>
<HTML>
<HEAD>
<TITLE>Guest Houses of DOS</TITLE>
<LINK REL="STYLESHEET" TYPE="TEXT/CSS" HREF="trm.css">
<%@ include file="StdValidations.js" %>
<script>
function EnterTo()
{
document.LoginForm.submit1.disabled="true";
document.LoginForm.submit();
}
function ClearFields()
{
document.LoginForm.LoginName.value = "";
document.LoginForm.Password1.value = "";
}
</script>
</HEAD>
<center>
<BODY>
<form name = "LoginForm" action = "UserAdmin.jsp" method="post">
<table width="80%" bgcolor="#B6C7E5">
<tr valign="top">
<td align="center">
<table>
<tr>
<td>
<img src="Images/Title.gif" >
</td>
</tr>
<tr>
<td align="center">
<P >
Login Name : <INPUT id=text1 name=LoginName>
</P>
<P>
Password : <INPUT id="Password1" name="Password" type="Password">
</P>
<INPUT name="submit1" type="submit" value="Login" onClick="EnterTo()" >
<INPUT name="reset1" type="reset" value="Cancel" class="Button" onClick="ClearFields()" >
</td>
</tr>
</table>
</td>
<td " align="center">
<img src="Images/guesthouse.jpg" align="right">
</td>
</tr>
</table>
<table width="80%" bgcolor="#B6C7E5">
<tr >
<td align=right>
<b>-- Powered By INSES,ISRO-HQ,Bangalore</b>
</td>
</tr>
<tr>
<td align=right>
<b>For suggestions<img src="Images/em1.jpg"></b>
</td>
</tr>
</table>

