
exp2weeks = new Date(); exp2weeks.setTime(exp2weeks.getTime() + (14 *24*60*60*1000));

function SetCookie(name, value, expires)
{	
	document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString()));
}

function SwitchLanguage(toLang)
{
	SetCookie('language', toLang, exp2weeks);

	url = window.location.href;
	
	reg = '/' + weboffice_language + './g';
	
	window.location.replace(url.replace(eval(reg), toLang + '.'));
}

function Goto(url, target)
{
	window.open(url , target, 'menubar=1,location=1,resizable=1,scrollbars=1,status=1,toolbar=1,titlebar=1screenX=1,screenY=1,height=400,width=750,left=1,top=1');	
}

