Hi,

We got this script in class today and we have to debug it. I have no idea what's wrong with it. Any help would be greatly appreciated:
PHP Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
    var 
delayAA 150;
    var 
messageAA "Type your message here.";
    var 
timerAA 0;
    var 
alignRightAA 0;
    while (
alignRightAA++<120)messageAA " " messageAA;
    function 
BannerAA()
    {
window.status=messageAA.substring(timerAA++,messageAA.length);
    if (
timerAA == messageAA.lengthtimerAA 0;
    
setTimeOut("BannerAA()"delayAA;}
    
BannerAA();
    
//-->
</SCRIPT> 
It's supposed to display scrolling text in the status bar.