if ($('loadIndicator') && Element.visible('loadIndicator')) { Element.hide('loadIndicator'); } if (Element.visible(('messageBox'))) { Element.hide('messageBox'); } $('messageBox').className = 'errorMsgBox'; $('messageBox').innerHTML = ''; Effect.Appear('messageBox', { duration: 0.3 }); if (MsgTimeout) { clearTimeout(MsgTimeout); } MsgTimeout = setTimeout(function() { Effect.Fade('messageBox', { duration: 0.3 }); }, 8000);