function display_msg(seed)
{
        var msg1  = "Welcome to the UCLA Systems and Integrative ";
        var msg2  = "Biology Training Program (SIBTP) ... " ;
        var msg=msg1+msg2;
        var out = " ";
        var c   = 1;

        if (seed > 100) {
                seed--;
                var command="display_msg(" + seed + ")";
                timerTwo=window.setTimeout(command,75);
        }
        else if (seed <= 100 && seed > 0) {
                for (c=0 ; c < seed ; c++) {
                        out+=" ";
                }
                out+=msg;
                seed--;
                var command="display_msg(" + seed + ")";
                    window.status=out;
                timerTwo=window.setTimeout(command,75);
        }
        else if (seed <= 0) {
                if (-seed < msg.length) {
                        out+=msg.substring(-seed,msg.length);
                        seed--;
                        var command="display_msg(" + seed + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(command,75);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("display_msg(100)",45);
                }
        }
}
function newwin(fileName,windowName,theWidth,theHeight) {
        if (windowName == "newMessageWindow") 
        {
                //generate random window ID

                 windowName = new String(Math.round(Math.random() * 100000));

        }
        window.open(fileName,windowName,"toolbar=1,location=1,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight)
}

function ChangeImgOn(imgNum,imgSrc)
 {
document.images[imgNum].src = imgSrc;
}
