function showFormWindow (oParams) {
	if ( !oParams ) oParams = new Object();
	if ( oParams.visible == undefined ) oParams.visible = true;
	
	var wLogin;
	if ( wLogin = document.getElementById("w-form") ) {
		if ( !wLogin.initialized ) {
			wLogin.initialized = true;
			wLogin.visible = false;
			
			var wBackground = document.getElementById("w-form-background");
			wBackground.style.opacity = ".8";
			wBackground.style.filter = "alpha(opacity=80)";
			
			if ( window.addEventListener ) {
				window.addEventListener("resize", resizeLoginWindow, false);
				window.addEventListener("scroll", resizeLoginWindow, false);
			} else if ( window.attachEvent ) {
				window.attachEvent("onresize", resizeLoginWindow );
				window.attachEvent("onscroll", resizeLoginWindow );
			}
		}
		
		wLogin.visible = oParams.visible;
		wLogin.style.display = oParams.visible ? "block" : "none";
			
		resizeLoginWindow();
	}
}


function resizeLoginWindow(e) {
	var wLogin;
	
	if ( wLogin = document.getElementById("w-form") ) {
		if ( wLogin.visible ) {
			wLogin.style.width  = String(document.documentElement.clientWidth) + "px";
			wLogin.style.height = String(document.documentElement.clientHeight) + "px";
			wLogin.style.top    = window.pageYOffset != undefined ? String(window.pageYOffset) + "px" : document.documentElement.scrollTop + "px";
			wLogin.style.left   = window.pageXOffset != undefined ? String(window.pageXOffset) + "px" : document.documentElement.scrollLeft + "px";
			
			var wBackground = document.getElementById("w-form-background");
			wBackground.style.width  = wLogin.style.width;
			wBackground.style.height = wLogin.style.height;
			
			var wWindow = document.getElementById("w-form-window");
			wWindow.style.left = String((document.documentElement.clientWidth / 2) - (wWindow.offsetWidth / 2)) + "px";
			wWindow.style.top  = String((document.documentElement.clientHeight / 2) - (wWindow.offsetHeight / 2)) + "px";
		}
	}
}