
// Funtion zum Absenden des Login-Formulars
function submitLoginForm()
	{
	username = document.getElementById("loginFormUsername").value;
	password = document.getElementById("loginFormPassword").value;
	loginform = document.getElementById("loginForm");

	if(username!='' && password!='')
		{
		loginform.submit();
		}
	}


// Funtion zum Aufklappen des Login-Formulars
function openCustomerLogin()
	{
	layer = document.getElementById("loginArea");
	username = document.getElementById("loginFormUsername");
//	button = document.getElementById("butLoginArea");

	if(layer.style.display == "none")
		{
		layer.style.display = 'block';
		username.focus();
	//	button.src = "fileadmin/SITE-KJR/pix/but-login-close.png";
		}
	else
		{
		layer.style.display = 'none';
	//	button.src = "fileadmin/SITE-KJR/pix/but-login-open.png";
		}
	}


// Druckfenster anzeigen
function openPrint(url,w,h)
	{
    l = screen.width/2-50;
    t = screen.height/2-150;
    w = eval(w) + 16;
    options = "width="+w+",height="+h+",left="+l+",top="+t+",menubar=yes,resizable=yes,scrollbars=yes,status=yes";
    Druckwindow = window.open(url,'Details',options);
    Druckwindow.focus();
	}


// Druckfenster anzeigen - Variante 2
function printWindow(url)
	{
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150');
	}




