<!--
GlobalToolbar = '';

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function inkorb(change, selected) {	
	if(document.getElementById(change).selectedIndex==0) {
		document.getElementById(change).selectedIndex = selected;		
	}
}

function createWin(loc) {
	callbackwin = window.open(loc,'nav_win',
	'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,maximize=no,width=450,height=200');
	callbackwin.creator = self;
}

function openWin(loc) {
	picwin = window.open(loc,'newwin', '');
	picwin.creator = self;
}

function createDSLWin(loc) {
	window.open(loc,'dslwin', 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,maximize=no,width=480,height=600');
}

function createpicWin(loc) {
	picwin = window.open(loc,'picwin',
	'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,maximize=no,width=600,height=550');
	picwin.creator = self;
}

function nix() {
	cat = 1;
}

function openPictureWin(loc) {
	picturewin = window.open(loc,'nav_win',
	'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,maximize=no,width=150,height=150');
	picturewin.creator = self;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

document.onkeydown = checkkeypress;

function checkkeypress(Ereignis) {
		keyvalue=window.event.keyCode;
		if (keyvalue==123) {
			if (document.getElementById('showlogin').value==1) {
				// MM_showHideLayers('startcmspass','','hide');
				document.getElementById('startcmspass').style.display = "none";
				document.getElementById('showlogin').value = 0;
			} else {
				// MM_showHideLayers('startcmspass','','show');				
				document.getElementById('startcmspass').style.display = "block";
				document.getElementById('showlogin').value = 1;
				document.getElementById('lms_user').focus();
			}
		}
}

function HideToolbar(Obj) {
	document.getElementById(Obj).style.display = 'none';
}

function ShowToolbar(Obj) {
	document.getElementById(Obj).style.display = 'block';
}

function OpenToolbar(Obj) {
	if ((GlobalToolbar != Obj) && (GlobalToolbar != '')) {
		HideToolbar(GlobalToolbar);
	}
	//var todo = HideToolbar(Obj);
	closethis = Obj;
	timer = window.setTimeout('HideToolbar(closethis);',1000);
	GlobalToolbar = Obj;
	ShowToolbar(Obj);
}

function high_menu(LinkObject) {
	LinkObject.style.background='rgb(240,240,240)';
	window.clearTimeout(timer);
	timer = window.setTimeout('HideToolbar(closethis);',10000);
}

function low_menu(LinkObject) {
	LinkObject.style.background='rgb(255,255,255)';
	window.clearTimeout(timer);
	timer = window.setTimeout('HideToolbar(closethis);',500);
}
//-->
