function display_msg(seed)
{
        var msg1  = "Hoi Dong Huong Quang Nam Da Nang ";
        var msg2  = "Han hoan chao mung cac ban ..." ;
        var msg3  = "Tieng noi cua nguoi dong huong xu Quang Nam Da Nang ...";
        var msg4  = "Que huong cua dia linh nhan kiet ..., que huong cua song Hang pho Hoi ...";
        var msg=msg1+msg2+msg3+msg4;
        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 openNewWindow(fileName,windowName,theWidth,theHeight) {
        if (windowName == "newMessageWindow") 
        {
                //generate random window ID

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

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

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

