function xbGetWindowHeight() {

	var height = 0;

	if (typeof(window.innerWidth) == 'number')
		height = window.innerHeight;
	else if (window.document.body && typeof(window.document.body.clientWidth) == 'number')
		height = window.document.body.clientHeight;

	return height;
}

function GoFW_Resize(){

	var WIN_HEIGHT = xbGetWindowHeight() - 104;

	var hHome1		= Math.floor(WIN_HEIGHT * (7 / 10));
	var hHome2		= Math.ceil( WIN_HEIGHT * (3 / 10));
	var hSubMenu	= WIN_HEIGHT + 62;

	var t_Home1		= document.getElementById('Home1');
	var t_Home2a	= document.getElementById('Home2a');
	var t_Home2b	= document.getElementById('Home2b');
	var t_SubMenu1	= document.getElementById('SubMenu');

	if (t_Home1)	t_Home1.height		= hHome1;
	if (t_Home2a)	t_Home2a.height		= hHome2;
	if (t_Home2b)	t_Home2b.height		= hHome2;
	if (t_SubMenu1)	t_SubMenu1.height	= hSubMenu;
}

function popupw(str, larg, alt) {
	PopUpWin = window.open(str,'PopUp', 'scrollbars=no,resizable=no,width=' + larg + ',height=' + alt + ',status=no,location=no,toolbar=no, menubar=no');
}

function popupwhole(str, larg, alt) {
	PopUpWin = window.open(str,'Window', 'scrollbars=yes,resizable=yes,width=' + larg + ',height=' + alt + ',status=yes,location=yes,toolbar=yes, menubar=yes');
}