this is a part of javascript
after page being loaded window.onload will be called..
window.onload = init;
function init() {
document.getElementById('loading').style.display='none';
}
function loginSubmit(){
document.getElementById('button').style.display='none';
document.getElementById('loading').style.display='block';
document.forms["login"].submit();
}