I'm wondering why this doesn't work - theres just a long pause while the submit takes place - and how can I get the desired effect? An input button calls this onClick.
function doSaveDocument()
{
toggleBox('waitingbox', 'on');
document.bgform.submit();
toggleBox('waitingbox', 'off');
}