function Login(form) {

	var pwrong = 0
	var username = form.username.value.toUpperCase();
	var password = form.password.value;
	var UN = username;
	
	if (username == "CURT" && password == '8015')	{
		var htsite = "../internt/internmeny.asp?un=" + username;
		window.location = htsite;
	}
	else if (username == "TEST" && password == '8015')	{
		var htsite = "../agentbokn/bokning.asp";
		window.location = htsite;
	}
	else if (username == "UH" && password == '3414')	{
		var htsite = "../ulvohotel/lunchlistaUH.asp?UN=" + UN;
		window.location = htsite;
	}
	else if (username == "LINDA" && password == '7818')	{
		var htsite = "../INTERNT/INTERNMENY.asp?un=" + username;
		window.location = htsite;
	}
	else if (username == "IRIS" && password == '8025')	{
		var htsite = "../INTERNT/INTERNMENY.htm";
		window.location = htsite;
	}
	else if (username == "QWQW" && password == '1323')	{
		username='PETER';
		var htsite = "../INTERNT/INTERNMENY.asp?un=" + username;
		window.location = htsite;
	}
	else if (username == "PASS" && password == '1925')	{
		var htsite = "../WAP/Pass_Rapport.asp";
		window.location = htsite;
	}
	else if (username == "STEN" && password == '6214')	{
		var htsite = "../HKC/mooring/mooring.asp?un=" + username;
		window.location = htsite;
	}
	else	{
		if(username=="" || password == "") 	{
			parent.location.href='http://www.hkship.se';
		} 
		teststrng=username+password;						//---Testa för SQL-injection--	
		for (i=0;i<teststrng.length;i++) {
			tst = teststrng.substr(i,1)
			if (tst == "'" || tst == ";" || tst == "-") {
				return false;
			}
		}
		var htsite = "../agentbokn/agentlogin.asp?Login="+username+"&ID="+password;
		window.location = htsite;
	}
}

function plac() {
	document.getElementById("username").select();
}
