function displayPopup2(xml){
if(xml!=null){
result=null;
if(window.ActiveXObject){
result=xml.getElementsByTagName("ipInChina")[0].text;
}else{
if(window.XMLHttpRequest){
result=xml.getElementsByTagName("ipInChina")[0].textContent;
}
}
	if(result!=null&&result=="yes")
	{insertCn();} 
	else
	{insertEn();} 

}
}
function requestHandler2(){
if(client.readyState==4&&client.status==200){
if(client.responseText!=null){
displayPopup2(client.responseXML);
}else{
displayPopup2(null);
}
}else{
if(client.readyState==4&&client.status!=200){
displayPopup2(null);
}
}
}
var client=null;
function getURL2(url){
if(window.ActiveXObject){
client=new ActiveXObject("Microsoft.XMLHTTP");
}else{
if(window.XMLHttpRequest){
client=new XMLHttpRequest();
}
}
client.onreadystatechange=requestHandler2;
client.open("GET",url,true);
client.send(null);
}
function insertCn(){
var str='| <span style="font-family:Arial, sans-serif; font-size:12px; color: rgb(153, 0, 0);"><strong>&#20379;&#24212;&#21830;:&nbsp;</strong></span><a href="https://cn.sellproducts.globalsources.com/RegisterSYP.jsp?Reg_path=eGSOLGlobalNav&source=eGSOLGlobalNav" class="topnav" style="font-size:12px;">&#27880;&#20876;</a> | <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Buyers:&nbsp; </strong></span><a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterGSOLUser&userTemplate=GSOLUSERMAG" class="topnav">Register</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=LoginFromReferer" class="topnav">Login</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="https://login.globalsources.com/sso/GeneralManager?action=UpdateProfile&ruleset=GSOLUSER&validate=false" class="topnav">User Profile</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/CART.GIF" width="15" height="11" align="absbottom" alt="Inquiry Basket Shopping Cart"> <a href="http://www.globalsources.com/gsol/GeneralManager?action=ReMap&where=GoInquiryBasket" class="topnav">Inquiry Basket</a>';
ABC.innerHTML=str;
}

function insertEn(){
var str='| <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Suppliers:&nbsp; </strong></span><a href="https://www.sellproducts.globalsources.com/RegisterSYP.jsp?Reg_path=eGSOLGlobalNav&source=eGSOLGlobalNav" class="topnav">Register</a> | <span style="font-family:Arial, sans-serif; font-size:11px; color: rgb(153, 0, 0);"><strong>Buyers:&nbsp; </strong></span><a href="https://login.globalsources.com/sso/GeneralManager?action=RegisterGSOLUser&userTemplate=GSOLUSERMAG" class="topnav">Register</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="http://www.globalsources.com/gsol/GeneralManager?&design=clean&language=en&page=LoginFromReferer" class="topnav">Login</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<a href="https://login.globalsources.com/sso/GeneralManager?action=UpdateProfile&ruleset=GSOLUSER&validate=false" class="topnav">User Profile</a>&nbsp;<font size="2">&#8226;</font>&nbsp;<img src="http://akamai.globalsources.com.edgesuite.net/f/593/3445/5d/static.globalsources.com/SITE/I/CART.GIF" width="15" height="11" align="absbottom" alt="Inquiry Basket Shopping Cart"> <a href="http://www.globalsources.com/gsol/GeneralManager?action=ReMap&where=GoInquiryBasket" class="topnav">Inquiry Basket</a>';
ABC.innerHTML=str;
}
