﻿    
   
	
   function initArray(n) {
			  this.length = n;
			  for (var i =1; i <= n; i++) {
				this[i] = ' '
			  }
        }

        slide = new initArray(3)
        slide[0]=" ..:: CONG TY TNHH QUANG CAO TRE NGHE AN ::.. "               

        var text = slide[0] + " "
        var str = " " 
        var leftmsg = "" 
        var nextmsg = 0

        function setMessage() {            
            if (str.length == 1) {
                while (text.substring(0, 1) == " ") {
                    leftmsg += str
                    str = text.substring(0, 1)
                    text = text.substring(1, text.length) 
                    }

                leftmsg += str            
                str = text.substring(0, 1)
                text = text.substring(1, text.length) 

                for (var x = 0; x < 120; x++) {
                str = " " + str
                }
            }
            else {
                str = str.substring(10, str.length)
            }
            window.status = leftmsg + str
            if (text == "") {
                str = " "
                nextmsg++
                if (nextmsg > slide.length) {
                    nextmsg = 0
                }
                text = slide[nextmsg] + " "
                leftmsg = ""  
                setTimeout('setMessage()',1000)
                }

            else {
                setTimeout('setMessage()',3)
            }
        }
                                               
        setMessage();
        
        
        
        
        function OpenWindowLink_3T(windowURL){
             if(windowURL!="")
	            {
	            try{
		            var windowConfig = 'toolbar=yes, ';
    	            //Menu
		            windowConfig += 'menubar=yes, ';
    	            //Scrollbars
	                windowConfig += 'scrollbars=yes, ';
    	            //Resizable
		            windowConfig += 'resizable=yes, ';
    	            //Address Bar
	                windowConfig += 'location=yes, ';
		            //Favorites
		            windowConfig += 'directories=yes, ';
		            //Statusbar
		            windowConfig += 'status=yes, ';
		            //windowConfig += 'left=0, ';
		            //windowConfig += 'top=0, ';
		            windowConfig += 'height=400px' + window.screen.height + ', ';
		            windowConfig += 'width=600px' + 
		            window.screen.width+ ', ';
		            window.open(windowURL, "_blank", config = windowConfig);
	                }catch(e){}
                }
             }
             
             function OpenWindowSendmail_3T() {
              window.open("Sendmail.aspx","smallWindow","width=430,height=450,left=250,top=148"); 
            }
    