function checkForm_search(obj) {
	if (obj.searchText.value.length<2) {
		alert('Du måste ange en längre söktext.'); obj.searchText.focus(); return false;
	} else {
		return true;
	}
}
function checkForm_login(obj) {
	if (obj.loginName.value.indexOf('@')<1 | obj.loginName.value.indexOf('.')<1) {
		alert('Du måste ange din e-postadress.'); obj.loginName.focus(); return false;
	} else if (obj.loginPwd.value.length<3) {
		alert('Du måste ange ditt lösenord.'); obj.loginPwd.focus(); return false;
	} else {
		return true;
	}
}
function sendInternalMail(domain, toWho) {
	document.write('<a href="mailto:'+toWho+'@'+domain+'" title="Skicka e-post till '+toWho+'@'+domain+'" alt="Skicka e-post till '+toWho+'@'+domain+'">'+toWho+'@'+domain+'</a>');
}
