
    function show_me(date_server) {
        
        //document.getElementById("hehe").innerHTML = "...";
        
                //document.getElementById("fdf").innerHTML = document.getElementById("fdf").innerHTML + "<br />Test:" + date_server;

                document.getElementById("date_div").innerHTML = date_server;
                if(date_server == "viewBox3") javascript:animatedcollapse.toggle("box3");
                if(date_server == "viewBox2"){ 
                  javascript:animatedcollapse.toggle("box2");
                  date_server = "chat";
                  SetChatPosition();
                }
                if(date_server == "viewBox1") javascript:animatedcollapse.toggle("box1");
                
                if(date_server == "chat"){ 
                  start();
                }
                
                
                
                var splitDate = date_server.split("_");
                if(splitDate[0] == "setCookie"){ 
                    setCookie("cookie_user_id", splitDate[1], 30);   
                }
                
                if(splitDate[0] == "redirect"){ 
                    document.getElementById("web").innerHTML = splitDate[1];
                }
                
                
                
        }

        function get_start() {

                x_show_now(divStatusHidden('box2'), show_me);

                setTimeout("get_start()", 5000);
        }
        
        function divStatusHidden(divName){
        
            if (document.getElementById(divName).style.display == "block") return true;
            if (document.getElementById(divName).style.display == "none") return false;
        
        }
        
        function start(){
        
           x_view_form(view_form_back);

        }
        
        function view_form_back(date_server){
        
                document.getElementById("chat_history").innerHTML = date_server;
                //SetChatPosition();
                
        }
        
        
        function form_add() {
        
            		var line;
            		line = document.getElementById("line").value;
            		if (line == "") 
            			 return;
            		line = line.replace('ó', '%u00F3');
            		line = line.replace('Ó', '%u00D3');
            		sajax_request_type = "POST";
            		x_add_line(line, form_info);
            		document.getElementById("line").value = "";
            		
      	}
      	
      	function form_info(date_server) {
      	
      	        document.getElementById("chat_history").innerHTML = date_server;
      	        SetChatPosition();
      	         
      	}
      	
      	function setCookie(c_name,value,expiredays){
                var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);
                document.cookie=c_name+ "=" +escape(value)+
                ((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
        }
        
        function SetChatPosition(){  
      
               document.getElementById("chat_history").scrollTop = document.getElementById("chat_history").scrollHeight - 410;
       
        }
        
        function addHistory(url){
            x_add_history(url, none);
            //document.getElementById("testtt").innerHTML = "ee" + url;
        }
        
        function none(){
        
        }
        
        
        function setBoxStatus(status){
                var splitStatus = status.split("_");
                
                if(splitStatus[0] == "box1"){
                    if(divStatusHidden("box_form1")) x_set_box_status("box_1_false", none);
                    else x_set_box_status("box_1_true", none); 
                }
                
                if(splitStatus[0] == "box2"){ 
                    if(divStatusHidden("box_form2")) x_set_box_status("box_2_false", none);
                    else x_set_box_status("box_2_true", none); 
                }
                
                if(splitStatus[0] == "box3"){ 
                    if(divStatusHidden("box_form3")) x_set_box_status("box_3_false", none);
                    else x_set_box_status("box_3_true", none); 
                }  

            

        }
        
        function goUrl(a)
        {
          //alert('!');
          window.open('http://'+a,'','');
        } 
        
