/**
* CVSINFO:
* $Header: /CVSROOT/slh3/login/login.js,v 2.2 2005/05/27 14:43:58 jw Exp $
*
*Filedependencies
*Usage: depend (fileskin|lang) absolut_filename
*/

function startuweb(js_location){
	var temp=navigator.appName;
	var high=screen.availHeight;
	var wide=screen.availWidth;
	if(temp=="Netscape Navigator" || temp=="Netscape"){
		var resizeable=1;
		var js_parameter=",outerwidth="+wide+",outerheight="+high;
	}
	else{
		var resizeable=1;
		var js_parameter=",width="+(wide-3)+",height="+(high-23);
	}
	uwebfenster = window.open(js_location,"uwebmain","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes"+js_parameter);
	if(eval(uwebfenster))
	{
		uwebfenster.moveTo(-4,-4);
		uwebfenster.focus();
	}
	else
	{
		alert("Das UWEB2000-Fenster konnte nicht geoeffnet werden. Bitte pruefen Sie Ihre Browsereinstellungen, Popupblocker, Firewalleinstellungen, Virenscanner etc. und melden sich anschliessend erneut an.");
	}
}

function got_focus(js_var) {
	if (js_var=='clientname') {
		js_focus = window.document.logindaten.clientname;
	}
	if (js_var=='username') {
		js_focus = window.document.logindaten.username;
	}
	if (js_var=='passwd') {
		js_focus = window.document.logindaten.passwd;
	}
	return;	
}

function got_focus_pwd(js_var) {
    if (js_var=='passwordold') {
        js_focus = window.document.kennwort.passwordold;
    }
    if (js_var=='password1') {
        js_focus = window.document.kennwort.password1;
    }
    if (js_var=='password2') {
        js_focus = window.document.kennwort.password2;
    }
    return;
}

