function dialog()
{
    this.width=450;
    this.height=230;
    this.title_height=0;
    this.html='';
    this.title='';
    var self = this;
    var bgObj,msgObj,titleObj;
    
    this.show=function()
    {
        var msgw,msgh,bordercolor; 
        msgw=self.width;
        msgh=self.height;
        bordercolor="#8F8F8F";
        titlecolor="#99CCFF";
        bgColor="#EAEAEA";
        
        var sWidth,sHeight; 
        sWidth=top.document.body.offsetWidth; 
        top.document.body.style.overflow="hidden";
        sHeight=screen.height; 
        bgObj=top.document.createElement("div"); 
        bgObj.setAttribute('id','bgDiv'); 
        bgObj.style.position="absolute"; 
        bgObj.style.top="0"; 
        bgObj.style.background=bgColor; 
        bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75"; 
        bgObj.style.opacity="0.6"; 
        bgObj.style.left="0"; 
        bgObj.style.width=sWidth + "px"; 
        bgObj.style.height=sHeight + "px"; 
        bgObj.style.zIndex = "10000"; 
        top.document.body.appendChild(bgObj); 
        
        msgObj=top.document.createElement("div") 
        msgObj.setAttribute("id","msgDiv"); 
        msgObj.setAttribute("align","center"); 
        msgObj.style.background="white"; 
        msgObj.style.border="1px solid " + bordercolor; 
        msgObj.style.position = "absolute"; 
        msgObj.style.left = "50%"; 
        msgObj.style.top = "30%"; 
        msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif"; 
        msgObj.style.marginLeft = "-225px" ; 
        msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px"; 
        msgObj.style.width = msgw + "px"; 
        msgObj.style.height =msgh + "px"; 
        msgObj.style.textAlign = "center"; 
        msgObj.style.lineHeight ="25px"; 
        msgObj.style.zIndex = "10001"; 
        
        titleObj=top.document.createElement("div"); 
        titleObj.setAttribute("id","msgTitle"); 
        titleObj.setAttribute("align","center"); 
        titleObj.style.margin="0"; 
        titleObj.style.padding="0px"; 
        titleObj.style.background=bgColor; 
        titleObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);"; 
        titleObj.style.opacity="0.75"; 
        //titleObj.style.border="1px solid " + bordercolor; 
       // titleObj.style.height=self.title_height+"px"; 
       // titleObj.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif"; 
       // titleObj.style.color="white"; 
       // titleObj.style.cursor="pointer"; 
        //titleObj.innerHTML="<table width='100%'  border='0' cellspacing='0' cellpadding='0'><tr class='DialogTitle' height='" + self.title_height + "'><td align='center' width='100%'>" + self.title + "</td><td width='30'><img src='images/delete.gif' style='curcor:hand' onclick='top.Close();'></td></tr></table>"; 
        //titleObj.onclick=function(){self.close();} 
        top.document.body.appendChild(msgObj); 
        top.document.getElementById("msgDiv").appendChild(titleObj); 
        var txt=top.document.createElement("div"); 
        txt.style.margin="1em 0" 
        txt.setAttribute("id","msgTxt"); 
        txt.innerHTML=self.html; 
        top.document.getElementById("msgDiv").appendChild(txt); 
    }
}

function msgBox(strSrc){
		var dg=new dialog();
    dg.width=430;
    dg.height=230;
    dg.html="<iframe src='" + strSrc + "' width='" + (dg.width) + "' height='" + dg.height + "' frameborder='0'></iframe>";
    dg.title="ÓÃ»§µÇÂ¼";
    dg.show();
}

function CloseDialog(){
    Close();
    top.right.document.location.reload();    
}

function Close(){
    top.document.body.removeChild(top.document.getElementById("bgDiv")); 
    top.document.getElementById("msgDiv").removeChild(top.document.getElementById("msgTitle")); 
    top.document.body.removeChild(top.document.getElementById("msgDiv"));     
}
