Can you try putting the onsubmit code in an seperate function
form runat="server" onsubmit="Form1_onsubmit()" id="Default">
function Form1_onsubmit()
{
var _frmObj = document.getElementById('Default');
_frmObj.style.cursor = 'wait';
ShowXHideY('PleaseWait', 'MainTable');
}
Ganesh Ranganathan
[Please mark the post as answer if you find it helpful]