Javascript hide element on click

<script language="javascript"><br></br>
function hidelogin() {<br></br>
var ele = document.getElementById('loginform');<br></br>
var text = document.getElementById('login');<br></br>
ele.style.Display = "none";<br></br>
text.innerHTML="Please wait while we process your request";<br></br>
setTimeout(function(){tout("login")},500);<br></br>
clearTimeout();<br></br>
}<br></br>
function tout(div)<br></br>
{<br></br>
div = document.getElementById('login');<br></br>
div.innerHTML="Done";<br></br>
}<br></br>
</script>```
`<input type="button" value="Enter" onclick="hidelogin();">`