
function Get_Cookie(name)
{
    var start = document.cookie.indexOf(name + "=");
    var len = start + name.length + 1;
    if (start == -1) return "";
    var end = document.cookie.indexOf(";", len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len, end));
}

function CheckLangCookie()
{
    var obj = document.getElementById('<%= txtCookies.ClientID %>');
    if (Get_Cookie('testCookie') != '')
    {
          if (obj)
                obj.value = 'true';
    }
    else
    {
          if (obj)
                obj.value = '';
    }
}

function _languagePostBack(val)
{
	if (typeof(__doPostBack) != 'undefined')
	{
		__doPostBack("changingLanguage", val);
		return false;
	}
	
	return true;
}

function HideShow(obj) 
{ 
    objekt = document.getElementById(obj);

    if (objekt.style.display=="none") 
         objekt.style.display="";
    else
         objekt.style.display="none";
} 
  
function OpenWindow(url)
{
    var x =
    window.open(url)
    x.focus
}
