function setFrameSize() {
	try {
		//alert("2010height iframe->"+(document.body.scrollHeight + 100));
		setCookie("frameHeight"	, document.body.scrollHeight + 100);
		setCookie("frameWidth"	, document.body.scrollWidth);
		self.resizeTo(document.body.scrollWidth, document.body.scrollHeight + 100);
	}
	catch(e) {
		/*
		try {
			parent.frameResize("customerfrm", document.body.scrollWidth, document.body.scrollHeight);
		}
		catch(e) {
		}
		*/
	}
}

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

var saveObj		= null;
var oldHeight	= "";

function frameOnloadResize(obj) {
	try {
		var width	= getCookie("frameWidth");
		var height	= getCookie("frameHeight");
		
		
		//var ifrm_src2 = document.getElementById("customerfrm").src;
		//var ifrm_src = document.getElementById("customerfrm").contentWindow.document.location.href;
		//alert(height+"ifrm_src-"+ifrm_src);
		//alert(height+"ifrm_src2-"+ifrm_src2);
		//alert("height->"+height);
		//alert(document.getElementById("customerfrm").contentWindow.document.location.href);
		var ifrm_src = document.getElementById("customerfrm").src;
		if(document.getElementById("customerfrm") != null){
			if(ifrm_src.indexOf("FBookIntCheck001") > 0 || ifrm_src.indexOf("FBookIntFlight001") > 0){
				if ( height < 1300 || height == null || height == "" || height.length == 0){
					height = 1300;
					setCookie("frameHeight"	, 1300); 
				}
			}
		}
		/*
		if(document.customerfrm != null){
		  var ifrm_src = document.getElementById("customerfrm").src;
		  //alert(ifrm_src.indexOf("FBookIntFlight004"))
		  if(ifrm_src.indexOf("FBookIntFlight004") > 0){
		    alert("FBookIntFlight004");
		    if ( height < 1300){
		      height = 1300;
		      setCookie("frameHeight"	, 1300); 
		    }
		    
		  }
		}*/
    //alert("2010height parents->"+height);
    //alert(oldHeight+"-"+height+"--"+ifrm_src);
		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);
}