document.write("<iframe id='resizeFrame' width=100% height=0 frameborder=0 border=0></iframe>");

function setFrameSize() {
	try {
		setCookie("frameHeight"	, document.body.scrollHeight + 100);
		setCookie("frameWidth"	, document.body.scrollWidth);
		/*
		if (navigator.appName == "Microsoft Internet Explorer") {
			self.resizeTo(document.body.scrollWidth, document.body.scrollHeight + 20);
		}
		else {
			parentFrameSize(document.body.scrollHeight);
		}
		*/
	}
	catch(e) {
		/*
		try {
			parentFrameSize(document.body.scrollHeight);
		}
		catch(e) {
		}
		*/
	}
}

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

function parentFrameSize(height) {
	var hosts = "";
	if (document.URL.indexOf("https://")==-1){hosts = "http://";}else{hosts = "https://";}
	var link	= hosts +"flyasianaclub.com/module/ResizeControl.jsp";
	var obj	= document.getElementById("resizeFrame");
	obj.src		= link + "?height=" + height;
}

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

		if (oldHeight != height) {
			if (navigator.appName == "Microsoft Internet Explorer") {
				obj.style.height	= height;
			}
			else {
				obj.height			= height;
			}
			oldHeight	= height;
			saveObj		= obj;
		}
	}
	catch(e) {;}

	window.setTimeout("frameOnloadResize(saveObj)", 1000);
}