﻿function openWithLoginIframe(tit,url,w,h){
	var sWidth,sHeight;
	sWidth=document.body.clientWidth;
	sHeight=document.body.scrollHeight;
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv1');
	bgObj.style.position="absolute";
	bgObj.style.top="0";
	bgObj.style.background="#000000";
	bgObj.style.filter="Alpha(Opacity=30);";
	bgObj.style.left="0";
	bgObj.style.width=sWidth + "px";
	bgObj.style.height=sHeight + "px";
	bgObj.style.zIndex = "10000";
    document.body.appendChild(bgObj);

    massage_box1.style.left = (document.body.clientWidth - w) / 2;
    massage_box1.style.top = (screen.height - h) / 2-140;
    massage_box1.style.screenx = (document.body.clientWidth - w) / 2;//仅适用于Netscape
    massage_box1.style.screeny = (screen.height - h) / 2-80;//仅适用于Netscape
    massage_box1.style.width = w+"px";
    massage_box1.style.height = h+"px";
    pop_title1.innerHTML=tit;
    massage_box1.style.display=''
    var popiframe='<iframe src="'+url+'" width="'+(w-11)+'px"  height="'+(h-36)+'px" frameborder=0 scrolling=no></iframe>';
    pop_iframe1.innerHTML=popiframe;
}
function closeWithLoginIframe(){

    massage_box1.style.display="none";
    document.body.removeChild(document.getElementById("bgDiv1"));
}


document.write('<div id="massage_box1" style="position:absolute; FILTER: progid:DXImageTransform.Microsoft.DropShadow(color=#ccc);z-index:10001;display:none">');
document.write('<div style="border-width:1 1 3 1; width:100%; height:100%; background:#fff; color:#059BCD; font-size:12px; line-height:30px;">');
document.write('<div  style="background:#059BCD; height:30px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px;color:#fff;cursor:move;padding:0">');
document.write('<div style="display:inline;position:absolute;padding:3px 0 0 5px;left:10px;" id=pop_title1></div>');
document.write('<span onClick="closeWithLoginIframe()" style="float:right; display:inline; cursor:hand;padding:3px 5px 0 0;font-size:12px">关闭</span>');
document.write('</div>');
document.write('<div style="padding:5px" id=pop_iframe1></div>');
document.write('</div>');
document.write('</div>');
