function langOk(uLang)
{
	var cLang=getCookie('korgLang')
	if (cLang!="no-cookie")
	{
		if (cLang!=uLang)
		{
			//alert("!")
			document.location.href=document.location.href
		}
	}
	else
	{
		//alert("In order to use the language feature of this site,\nYou have to enable the cookies in your browser")
	}
}
function langOkWeb(uLang)
{
	var cLang=getCookie('korgLangWeb')
	if (cLang!="no-cookie")
	{
		if (cLang!=uLang)
		{
			//alert("!")
			document.location.href=document.location.href
		}
	}
	else
	{
		//alert("In order to use the language feature of this site,\nYou have to enable the cookies in your browser")
	}
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return "no-cookie";
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}