//Kontrollerar om anv\u00E4ndaren till\u00E5ter cookie.function keypressed(){ 	if(event.keyCode=='13'){		LoginAsUser()	} }function IsCookieAllowed(){	SetCookie("CT", "ON");	if(!GetCookie("CT"))	{		top.location = "/cookiemsg.htm";		return false;	}	else	{		DeleteCookie("CT"); 		return true;	}}function SetUser(){	document.LOGIN.login.value = document.USER.login.value;}function SetPwd(){	document.LOGIN.password.value = document.USER.password.value;}function LoginAsUser(){ 	SetUser();	SetPwd();	if( !IsCookieAllowed() )	{		alert("Din webl\u00E4sare till\u00E5ter inte cookies. "+			"Du kommer inte att kunna logga in i applikationen");		return;	}	if( document.USER.login.value.length==0 )	{		alert("Anv\u00E4ndarnamn saknas.");		document.USER.login.focus(); return;	}	if( document.USER.password.value.length==0 )	{		alert("L\u00F6senord saknas.");		document.USER.password.focus(); return;	}//	setTimeout('Clean();',2000);	document.LOGIN.submit();}function LoginAsGuest(){	if(!IsCookieAllowed())		return false;	else	{		var postlogin = document.GUESTLOGIN;		postlogin.action='http://lyftdon.nea.se/logon.asp';		postlogin.FORCE.value = Math.random();		postlogin.submit();	}}function Clean(){	document.USER.login.value = '';	document.USER.password.value = '';}
