// <!--
function langChk() {
	// gets the current page
	var URL = unescape(location.href);
	var xstart = URL.lastIndexOf("/") + 1;
	var xend = URL.length;
	var currentPage = URL.substring(xstart,xend);	
	var url_query = "";
	if(URL.indexOf("?")!=-1) {
		url_query = URL.substring(URL.lastIndexOf("?"),URL.length);
	}
	var LANGID = readCookie('LANGID');
	if (LANGID == 8) LANGID = 9;
	if (null != LANGID & LANGID > 1) {
		thisURL = 'job_search_' + LANGID + '.html' + url_query;
		if (currentPage != thisURL)
		{
			location.href = thisURL;
			location.replace(thisURL);
		}
	} 
}
// -->