function getHTTPRequestObjecct()
{
    var xmlhttp=false;
    try
    {
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    {
        try 
        {
            xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(E)
        {
           xmlhttp=false; 
        }
    }
    if(!xmlhttp)
    {
        xmlhttp=new XMLHttpRequest();
    }
    return xmlhttp;
}
function GetTEXT(strTag)
{
    var id=0;
    var strUrl=location.href.toLowerCase();
    if(strUrl.indexOf('news/')>=0)
    { 
        id=1;
    }
    if(strUrl.indexOf('fuwu/')>=0)
    { 
        id=2;
    }
    if(strUrl.indexOf('prodlist')>=0 || strUrl.indexOf('prodmessage.aspx')>=0)
    { 
        id=3;
    }
    if(id!=0)
    {
        var xmlhttp=getHTTPRequestObjecct();
        if(xmlhttp)  
        {
            var url = "/js/GetLeft.aspx?typeID="+id;
            xmlhttp.open("GET",url,true);
            xmlhttp.onreadystatechange =function()
            {
                if (xmlhttp.readyState == 4 && xmlhttp.status==200)
                {   
                    var result=xmlhttp.responseText;
                    if(result!="")
                    {
                        document.getElementById(strTag).innerHTML=result;
                     }
                }     
            }
            xmlhttp.send(null);    
        }
     }
    //document.getElementById(strTag).innerHTML=id;
}
function SetSameHeigth() 

{ 

// get a reference to the three DIVS that make up the columns 

var leftCol = window.document.getElementById('ALeft'); 

var rightCol = window.document.getElementById('ARight'); 

// calculate the max height 

var hLeftCol = leftCol.offsetHeight; 

var hRightCol = rightCol.offsetHeight; 

var maxHeight = Math.max(hLeftCol, hRightCol); 

// set the height of all 3 DIVS to the max height 

leftCol.style.height = maxHeight + 'px'; 

rightCol.style.height = maxHeight + 'px'; 

// Show the footer 

}
function SetSameHeigthToNews() 

{ 

// get a reference to the three DIVS that make up the columns 

var leftCol = window.document.getElementById('Left'); 

var rightCol = window.document.getElementById('NRight'); 

// calculate the max height 

var hLeftCol = leftCol.offsetHeight; 

var hRightCol = rightCol.offsetHeight; 

var maxHeight = Math.max(hLeftCol, hRightCol); 

// set the height of all 3 DIVS to the max height 

leftCol.style.height = maxHeight + 'px'; 

rightCol.style.height = maxHeight + 'px'; 

// Show the footer 

}
function SetSameHeigthToManage() 

{ 

// get a reference to the three DIVS that make up the columns 

var leftCol = window.document.getElementById('MSLeft'); 

var rightCol = window.document.getElementById('MSRight'); 

// calculate the max height 

var hLeftCol = leftCol.offsetHeight; 

var hRightCol = rightCol.offsetHeight; 

var maxHeight = Math.max(hLeftCol, hRightCol); 

// set the height of all 3 DIVS to the max height 

leftCol.style.height = maxHeight + 'px'; 

rightCol.style.height = maxHeight + 'px'; 

// Show the footer 

}   
function SetSameHeigthToJob() 

{ 

// get a reference to the three DIVS that make up the columns 

var leftCol = window.document.getElementById('JobLeft'); 

var rightCol = window.document.getElementById('JobRight'); 

// calculate the max height 

var hLeftCol = leftCol.offsetHeight; 

var hRightCol = rightCol.offsetHeight; 

var maxHeight = Math.max(hLeftCol, hRightCol); 

// set the height of all 3 DIVS to the max height 

leftCol.style.height = maxHeight + 'px'; 

rightCol.style.height = maxHeight + 'px'; 

// Show the footer 

}

