function setFrameSize() {
	try {
		var height = $jq("#bottomSizeRange").offset().top + 200;
		var width = $jq(document).width();

		if (document.body.scrollHeight + 40 > height) height = document.body.scrollHeight + 40;

		setCookie("frameCheckURL"	, location.href);
		setCookie("frameHeight"		, height);
		setCookie("frameWidth"		, width);
		self.resizeTo(width, height);
	}
	catch(e) {
	}
}

function setPopupFrameSize() {
	try {
		self.resizeTo(document.body.scrollWidth + 37, document.body.scrollHeight + 40);
	}
	catch(e) {
	}
}

var saveObj		= null;

function frameOnloadResize(obj) {
	try {
		if (saveObj == null) saveObj = obj;
		var width	= getCookie("frameWidth");
		var height	= getCookie("frameHeight");
		var url		= getCookie("frameCheckURL");

		if (height == "") height = "1500";
		//if (url.indexOf("/AB/airbusan/") > -1 && parseInt(height) < 1500) height = "1500";

		if (navigator.appName == "Microsoft Internet Explorer") {
			if (obj.style.height != (height+"px")) obj.style.height = height+"px";
		}
		else {
			if (obj.height != height || obj.style.height != (height+"px")) {
				obj.height = height;
				obj.style.height = height+"px";
			}
		}
	}
	catch(e) {}	
	window.setTimeout("frameOnloadResize(saveObj)", 1000);
}
