function OpenDialog(url,width,height){ 
     
    var x = parseInt(screen.width / 2.0) - (width / 2.0);  
    var y = parseInt(screen.height / 2.0) - (height / 2.0); 
        var isMSIE= (navigator.appName == "Microsoft Internet Explorer");  //ÅÐ¶Ïä¯ÀÀÆ÷ 

        if (isMSIE) {           
            retval = window.showModalDialog(url, window, "dialogWidth:"+width+"px; dialogHeight:"+height+"px; dialogLeft:"+x+"px; dialogTop:"+y+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  ); 
            if(retval != null)
            {
                //var ReTrunValue=DoOpenWindow;
                //window.alert(DoOpenWindow);
                //window.location.reload();
                var vHost = window.location;
                window.location=vHost;
            }
       } else { 
        var win = window.open(url, "mcePopup", "top=" + y + ",left=" + x + ",scrollbars=" + scrollbars + ",dialog=yes,modal=yes,width=" + (width+80) + ",height=" + height + ",resizable=no" );         
        //eval(''try { win.resizeTo(width, height); } catch(e) { }''); 
        win.focus();             
    } 
}

//´°¿ÚÌá½»
function doReload(){    
     var isMSIE= (navigator.appName == "Microsoft Internet Explorer"); 
     if (isMSIE){ 
        window.returnValue='ok';
        //parent.dialogArguments.location.reload(); 
     }else{         
         parent.opener.document.location.reload(); 
     }      
     top.close();     
  } 
document.writeln("");
