document.write('<iFrame id=PlaneBoxFrame name=PlaneBoxFrame height=548 width=414 frameborder=0 scrolling=no scrolling=no src="./elong/js/planetype.htm" style=display:none;position:absolute;z-index:110></iFrame>');

function showPlaneBox(sImg, plane)
{
//	var url = './Scripts/PlaneBox/PlaneBox.htm';
//	alert(sImg + ',' + url )
//	document.write('<iframe id=PlaneBoxFrame name=PlaneBoxFrame frameborder=0 scrolling=no src=' + url + ' style=display:none;position:absolute;z-index:100></iframe>');
//	document.write('<iframe id=PlaneBoxFrame name=PlaneBoxFrame frameborder=0 scrolling=no src=./Scripts/PlaneBox/PlaneBox.htm style=display:none;position:absolute;z-index:100></iframe>');
//	document.onclick=hidePlaneBox;

	var cf=document.getElementById("PlaneBoxFrame");
	var wcf=window.frames.PlaneBoxFrame;

//	cf.src = './scripts/MsgBox/PlaneType.htm';	
//	wcf.src = './scripts/MsgBox/PlaneType.htm';	

	if(cf.style.display=="block"){cf.style.display="none";return;}
	
	cf.src = PlaneTypeMessagePath + 'PlaneTypeMessage.aspx?plane='+plane;	
	wcf.src = PlaneTypeMessagePath + 'PlaneTypeMessage.aspx?plane='+plane;	

	showFrame2(sImg);
	
}
function showFrame2(sImg)
{
	var cf=document.getElementById("PlaneBoxFrame");
	var wcf=document.getElementById("PlaneBoxFrame"); 
	//window.frames.PlaneBoxFrame;

	
	var oImg=document.getElementById(sImg);
	if(!oImg){alert("控制对象不存在！");return (false);}
//	if(!wcf.bCalLoaded){alert("未成功装载！请刷新页面！");return (false);}
			
	
	var eT=0,eL=0,p=oImg;
	var sT=document.body.scrollTop,sL=document.body.scrollLeft;
	var eH=oImg.height,eW=oImg.width;
	
	while(p&&p.tagName!="BODY")
	{
		eT+=p.offsetTop;
		eL+=p.offsetLeft;
		p=p.offsetParent;
	}	
	cf.style.top=(document.body.clientHeight-(eT-sT)-eH>=cf.height)?eT+eH-20:eT+20+6;			
	cf.style.left=(document.body.clientWidth-(eL-sL)>=cf.width)?eL-400:eL-394;
			
	cf.style.display="block";	
	document.onclick = hideMsgBox;
	
	
}
function hidePlaneBox()
{
	var cf=document.getElementById("PlaneBoxFrame");
	cf.style.display="none";
	document.onclick = null;
	
}