// ** Copyright Misi.se

function ValidCheck() {
		if (document.LoginCheck.username.value == "") {
			alert('You forgot your username!');
			document.LoginCheck.username.focus(); return false;
		}

		if (document.LoginCheck.password.value.length == "") {
			alert('You forgot your password!');
			document.LoginCheck.password.focus(); return false;
		}
}

function NewWindow(mypage, myname, w, h, scroll) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// ** Copyright Misi.se