//弹出窗口
//20091108  1:38:25  by yiben  2009-12-14  23:06 修改  babasan@126.com  QQ147632033 请保留版权
///调用代码　　把下面这段放页头最前面即<body>下面<script src="/Js/showdiv.js">//弹出层< /script> 然后在页尾加一个</div>　 
//调用网址显示　FrameWork(url,wid,hei) 放到要发生的位置　
//调用内容显示　FrameWork(url,wid,hei,1) 放到要发生的位置
//嵌入的页面要　关闭这个层就调用这句js    parent.document.getElementById('boxqqq').style.display='none';
//反回值就用parent.document.getElementById('boxqqq').value='值';
//刷新父窗口 parent.location.reload();


function FrameWork(url,wid,hei,classq)//弹出调用　　url指要显示的网址或要显示的内容　　wid指宽度　　hei 指长度    class 如果是0代表是调用网址　　如果是1代表直接显示内容 
{
 if(classq==1)//内容
  showtable=url;
 else//网址
  showtable='<iframe src="'+url+'" frameborder="0" width="100%" height="100%" align="center" style="overflow:auto;overflow-X:hidden;" id="maincontent1w"></iframe>';
  
  if(hei==0)//空值就让他最高化
  hei=document.body.clientHeight-60+'px';
  else
  hei=hei+'px';
  if(wid==0)//空值就让他最宽化
  wid=screen.width-10+'px';
  else
  wid=wid+'px';
  
  
 //document.getElementById("lightBox").style.height=hei;//用于全屏后重新定义内容的高
 document.getElementById("lightBox").style.width=wid;//用于全屏后重新定义内容的宽
 
 document.getElementById("boxqqq").style.display ="block";
 document.getElementById("sendd").innerHTML=showtable;
 
 document.getElementById("sendd").style.width=wid;
 document.getElementById("sendd").style.height=hei;
 
 if(classq==1)
 {
 document.getElementById("aincontent1w").style.width=wid;
 document.getElementById("aincontent1w").style.height=hei;
 }
 
}

function FrameWorkNo() 
{ 
	document.getElementById('boxqqq').style.display ="none";
}
function FrameAll()//全屏　　　
{
 document.getElementById("lightBox").style.top ="0px";
 document.getElementById("sendd").style.width=(screen.width)+'px';
 document.getElementById("sendd").style.height=(document.body.clientHeight)+'px';
 document.getElementById("aincontent1w").style.width=(screen.width)+'px';
 document.getElementById("aincontent1w").style.height=(document.body.clientHeight)+'px';
}


document.write('<style type="text/css">');
document.write('* { margin:0; padding:0; }');
document.write('html,body { height:100%; overflow:hidden; font:12px/1.5 simsun;}');
document.write('.myPage { line-height:3;OVERFLOW-X:hidden;OVERFLOW:scroll; width:100%; height:100%;}');
document.write('.lightBox,');
document.write('.popupCover,');
document.write('.popupIframe,');
document.write('.popupComponent { position:absolute; left:0; top:0; width:100%;height:100%;}');
document.write('.popupComponent { z-index:2; display:none;}');
document.write('.popupIframe { display:none; _display:block; _filter:alpha(opacity=0);}');
document.write('.popupCover { background:#000; opacity:0.7; *filter:alpha(opacity=15);}');
document.write('.lightBox { text-align:center; overflow:auto;}');
document.write('.lightBoxContent { display:inline-block; *display:inline; zoom:1;width:300px; padding:10px; background:#fff; background:#F7FFF9; border-left:1px solid #F3F3F3;border-right:6px solid #E6E6E6;border-top:1px solid #F3F3F3;border-bottom:6px solid #E6E6E6;vertical-align:middle;text-align:right;}');
document.write('.lightBoxMaxHeight { display:inline-block; vertical-align:middle;height:100%; *height:99.5%; width:1px; overflow:hidden;margin-left:-1px;}');
document.write('.lightBoxWrapper { display:inline-block; *display:inline; zoom:1;text-align:left;}');
document.write('.lightBoxClose { color:#f00;}');
document.write('.lightBoxSubmit { margin-top:10px; padding-top:5px; border-top:1pxsolid #ccc;}');
document.write('.lightBoxSubmit input { font-size:12px; padding:0 10px;overflow:visible; margin:0 5px;}');
document.write('</style>');

document.write('<div class="popupComponent" id="boxqqq"><iframe class="popupIframe"></iframe> <div class="popupCover"></div> <div class="lightBox"><span class="lightBoxMaxHeight"></span> <div class="lightBoxContent" id="lightBox">　<span onClick="FrameWorkNo()"><img src=/images/002_00.gif border=0 align="absmiddle" alt="关闭"></span><br><div class="lightBoxWrapper" id="sendd"></div> </div></div></div><div class="myPage">');
