function getCurrentURLAndConvertToChinese() {
	var dURL = window.location.href;
	//var dURL = "http://www.mgrc.com.my/press%20release/news_synamatix_06082008.shtml";//	
	var _loc = dURL.indexOf("mgrc.com.my/");
	var theURL = dURL.substring(_loc+12);
	//alert(theURL);
	if(dURL.indexOf('press%20release')!=-1){
		_loc = dURL.indexOf("mgrc.com.my/");
		theURL = dURL.substring(_loc+12);
		theURL = "showPressRelease.shtml?" + unescape(theURL);
		//alert(theURL);
	}
	else if(dURL.indexOf('genomics_news')!=-1){
		_loc = dURL.indexOf("mgrc.com.my/");
		theURL = dURL.substring(_loc+12);
		//theURL = "showGenomicsNews.shtml?" + unescape(theURL);
		theURL = unescape(theURL);
		//alert(theURL);		
	}
	window.location.href = "http://www.xn--1bs9yl1av25o.com/" + theURL;
	
	return window.location.href;
}

//function for convert to CN lang for old genomic news 2007 to 2009

function getCurrentURLAndConvertToChinese_oldgenomicNews07_09() {
	var dURL = window.location.href;
	//var dURL = "http://www.mgrc.com.my/press%20release/news_synamatix_06082008.shtml";//	
	var _loc = dURL.indexOf("mgrc.com.my/");
	var theURL = dURL.substring(_loc+12);
	//alert(theURL);
	if(dURL.indexOf('press%20release')!=-1){
		_loc = dURL.indexOf("mgrc.com.my/");
		theURL = dURL.substring(_loc+12);
		theURL = "showPressRelease.shtml?" + unescape(theURL);
		//alert(theURL);
	}
	else if(dURL.indexOf('genomics_news')!=-1){
		_loc = dURL.indexOf("mgrc.com.my/");
		theURL = dURL.substring(_loc+12);
		//theURL = "showGenomicsNews.shtml?" + unescape(theURL);
		theURL = unescape(theURL);
		//alert(theURL);		
	}
	window.location.href = "http://www.xn--1bs9yl1av25o.com/showGenomicsNews.shtml?" + theURL;
	
	return window.location.href;
}
