
		function SetCB1()
		{
			//document.forms[0].WhatIsWanted[0].checked = true;
			cb = document.getElementById("rbt1").checked = true;
		}
				
		function IsIE()
		{
			//Gibt true zurück, wenn der IE genutzt wird, ansonsten falsch
			if(navigator.appName == "Microsoft Internet Explorer")
			{
				return(true);
			}
			else
			{
				return(false);
			}
		}
		
		function PrepareKeydown()
		{
			if(IsIE())
			{
				//Keine weiteren Aktionen erforderlich
			}
			else
			{
				//Getestet mit Mozilla und Opera 7.52
				document.captureEvents(Event.KEYDOWN);
				document.getElementById("tbPassword").onkeydown = login;
			}
		}
		
		function InitPage()
		{
			PrepareKeydown();
			try
			{
				document.getElementById("tbUser").focus();
				SetCB1();
			}
			catch(e) {}
		}
		
		function login(e)
		{
			if(IsIE())
			{
				//Internet Explorer
				if(event.keyCode==13)
				{
					__doPostBack('LKBWeiter','');
				}	
			}
			else
			{
				//Other (Mozilla, Opera)
				if(e.which == 13)
				{
					__doPostBack('LKBWeiter',"");
				}
			}
		}
		
		function CheckKommentarLength(source, args)
		{
			var kommentar = args.Value;
			if(kommentar.length <= 500)
			{
				args.IsValid = true;
			}
			else
			{
				args.IsValid = false;
			}
		}
