﻿
  function textBlur(ctl)
    {
//        document.getElementById("search_result").style.display="none";
        if(ctl.value == "" || ctl.value == null)
        {
            ctl.value = ctl.title; 
        }  
        searchKey = "";
        setTimeout("document.getElementById('search_back').style.display='none';",500);
    }
    function clicktext(url)
    {
        searchKey = "";
        window.open(url);
        //document.getElementById("search_result").style.display="none";
    }
//    var searchKey;
    function testchange(txtID)
    {
//        var bug=document.getElementById("txtbug");
        var textbox = document.getElementById(txtID);
//        bug.innerHTML=searchKey+"---"+textbox.value;
        if( /[^\x00-\xff]/g.test(textbox.value))
        {
//           searchKey=textbox.value;
           _Update("/Search.ashx?key="+escape(textbox.value), "search_result","search_back");

        }
        if(textbox.value == "" || textbox.value == null)
           document.getElementById("search_back").style.display="none"; 
    }
    function xx(){  
    var container1=document.getElementById("contain_company");  
    container1.appendChild(container1.firstChild);  
    container1.appendChild(container1.firstChild);  
    container1.appendChild(container1.firstChild);  
    var container2=document.getElementById("contain_sale"); 
    container2.appendChild(container2.children.item(10)); 
    container2.appendChild(container2.children.item(10));  
     container2.appendChild(container2.children.item(10));
     container2.appendChild(container2.children.item(10));
     var container3=document.getElementById("contain_comment");
     //alert(container3.childNodes[0].childNodes[2].innerHTML);
     //alert(container3.childNodes[0].tagName);
     container3.childNodes[0].appendChild(container3.childNodes[0].childNodes[2]);
}  
setInterval("xx()",3000);  
