
function checkLogIn3() {
	var message='';
	var okay=0;
	if (document.LogIn3.hm_code.value==''||document.LogIn3.Kennwort.value==''){
		message='Es wurden nicht alle Felder ausgefüllt, Bitte holen Sie das nach.'
	}
	if (okay==0&&message=='') {
		document.LogIn3.submit();
	}else{
		errorlevel=0;
		showMes3(message);
	}
}

function showMes3(msg) {
	if (msg!='') {
		var m=document.getElementById('Mes3');
		var mtab=document.getElementById('MesTable');
		if (msg==''){
			m.innerHTML='&nbsp;';
			m.style.display='none';
		}else{
			var start=msg.search(/\([0-9]/);
			var ende=msg.search(/[0-9]\)/);
			var typo=Number(msg.substring(start+1, ende+1));
			while(msg.search(/\([0-9]\)/)!=-1) {
				msg=msg.replace(/\([0-9]\)/, " ");
			}
			//1..Hinweis 2..Hinweis mit Neue Suche  0..Fehler
			if (typo==1) {
					m.innerHTML='<DIV class="headklein">Hinweis:</DIV><DIV>'+msg+'</DIV>';
			}else if (typo==2) {
				m.innerHTML='<DIV class="headklein">Hinweis:</DIV><DIV>'+msg+'</DIV><DIV style="text-align: right;"><INPUT type="button" name="RESET" value="neue Suche" class="knob ks" onClick="location.href=\'http://'+window.location.host+'/index.asp?SessionId='+sessionID+'\';"></DIV>';
			}else{
				m.innerHTML='<DIV class="headklein">Achtung:</DIV>'+arrow+msg;
			}
			if (mtab) {
				mtab.className='addcolor2';
			}else{
				m.className='addcolor2';
			}
			m.style.display='inline';
		}
	}
}
