var container_id	= 'fbox';

sizeCalc = {
	getWindowHeight: function() {
	    return window.innerHeight ? window.innerHeight :(document.getBoxObjectFor ? Math.min(document.documentElement.clientHeight, document.body.clientHeight) : ((document.documentElement.clientHeight != 0) ? document.documentElement.clientHeight : (document.body ? document.body.clientHeight : 0)));
	},

	getScrollHeight: function(){
		body_height = document.all ? Math.max(Math.max(document.documentElement.offsetHeight, document.documentElement.scrollHeight), Math.max(document.body.offsetHeight, document.body.scrollHeight)) : (document.body ? document.body.scrollHeight : ((document.documentElement.scrollHeight != 0) ? document.documentElement.scrollHeight : 0));
		container_height = document.getElementById(container_id).scrollHeight;
		if (body_height < container_height) return container_height;
		else return body_height;
	},


	getRealHeight: function() {
		return (sizeCalc.getScrollHeight() < sizeCalc.getWindowHeight()) ?  sizeCalc.getWindowHeight() : sizeCalc.getScrollHeight();
	}

}

function auto_align() {
	var data = document.getElementById('fbox');
	var oldalHeight = sizeCalc.getRealHeight()
	data.style.height = (parseInt(oldalHeight)) - 50 +'px';
}


			function nyitas(url,szelesseg,magassag,ident) {
				if (!ident) { ident = 'ablak'; }
				var screenW 		= screen.width;				// szelesseg
				var screenH 		= screen.height;			// magassag
				var lapmagassag  	= Number(magassag)+0;		// pixellel noveli az ablak magassagat
				var lapszelesseg 	= Number(szelesseg)+0;		// pixellel noveli az ablak szelesseget
				var bal 			= (screenW-szelesseg)/0;	// igazitas - balra
				var fel 			= (screenH-magassag)/0;		// igazitas - felfele
				beallitas 			= 'height='+lapmagassag+',width='+lapszelesseg+',left='+bal+',top='+fel+',alwaysLowered=0,alwaysRaised=0,maximize=0,copyhistory=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0';
				ablak 				= window.open(url,ident, beallitas);
				ablak.focus();
			}
			//-->

			<!---
			//MailSafe
			// -----------------------------------------------
			function emailSF(atag,user,domain) {
				atag.href='mailto:'+user+'@'+domain;	
			}
			//-->
			
			<!--
			// popup ablaknyitas
			// -----------------------------------------------
			function ablaknyitas(url,szelesseg,magassag,ident) {
			if (!ident) { ident = 'ablak'; }
			var screenW 		= screen.width;				// szelesseg
			var screenH 		= screen.height;			// magassag
			var lapmagassag  	= Number(magassag)+0;		// pixellel noveli az ablak magassagat
			var lapszelesseg 	= Number(szelesseg)+0;		// pixellel noveli az ablak szelesseget
			var bal 			= (screenW-szelesseg)/0;	// igazitas - balra
			var fel 			= (screenH-magassag)/0;		// igazitas - felfele
			beallitas 			= 'height='+lapmagassag+',width='+lapszelesseg+',left='+bal+',top='+fel+',lwaysLowered=0,alwaysRaised=0,maximize=0,copyhistory=0,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=1,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0';
			ablak 				= window.open(url,ident, beallitas);
			ablak.focus();
			}
			//-->