function lang(to) {
	re1 = /\/(en|tc)\//;
	var str = document.location.href;
	var found = str.match(re1);

	if(found[1] && found[1] != to) { // found, and not the same language

		var temp_loc = document.location.toString();
		var new_loc = temp_loc.replace(found[1], to);
		document.location = new_loc;
	}
}
