// JavaScript Document
function chang_lang(strLocation,strMode)
{
	//default get_var to chang : lang=strMode
	strLocation=strLocation.toString();
	strMode=strMode.toString();
	strLocation=strLocation.replace('&lang='+strLocation.charAt(strLocation.indexOf('&lang=')+6)+strLocation.charAt(strLocation.indexOf('&lang=')+7),'');
	strLocation=strLocation.replace('lang='+strLocation.charAt(strLocation.indexOf('lang=')+5)+strLocation.charAt(strLocation.indexOf('lang=')+6),'');
	if(strLocation.indexOf('?')>-1)
	{
		strLocation+='&lang='+strMode;
	}
	else
	{
		strLocation+='?lang='+strMode;
	}
	return strLocation;
}