function a2s() {
	window.frames['wf'].location.href = "/tools/loginbox.cfm?lang=" + xGetElementById("lang_wf").value;
}
function a2f(url) {
	window.frames['wf'].location.href = url + "&lang=" + xGetElementById("lang_wf").value;
}
function printThisPage() {
	window.print();
}
function checkLoginState() {
	var loader = new net.ContentLoader(CI_AJAX_PATH + "portal.cfm?req=CHECK_LOGIN_STATE&lang=" + xGetElementById("slang").value,onCheckLoginStateResult,onCheckLoginStateError,"POST","");
}
function onCheckLoginStateResult() {
	response = net.CleanResponse(this.req.responseText);
	xGetElementById("loginbox").innerHTML = response;
}
function onCheckLoginStateError() {
}
function forgotPassword(lang) {
	windowW = 450;
	windowH = 200;
	getScreenRes();
	var windowX = (screenW/2)-(windowW/2);
	var windowY = (screenH/2)-(windowH/2);
	nfw = window.open("/tools/forgotpassword.cfm?lang=" + lang,"forgotPWD","toolbar=no,location=no,status=no,menubar=no,titlebar=0,scrollbars=no,resizable=no,width=" + windowW + ",height=" + windowH);
	nfw.blur();
	nfw.focus();
	nfw.moveTo(windowX,windowY);
}
function getScreenRes() {
	if (self.screen) {
		screenW = screen.width
		screenH = screen.height
	}
	else if (self.java) {
		var jkit = java.awt.Toolkit.getDefaultToolkit();
		var scrsize = jkit.getScreenSize();
		screenW = scrsize.width;
		screenH = scrsize.height;
	}
	else {
		screenW = 1024;
		screenH = 768;
	}
}