﻿var Obj = ''
document.onmouseup = MUp
document.onmousemove = MMove

function MDown(Object) {
    Obj = document.getElementById("massage_box");
    pX = (document.body.clientWidth - Obj.clientWidth) / 2 + document.body.scrollLeft;
    pY = (document.body.clientHeight - Obj.clientHeight) / 2 + document.body.scrollTop;
}

function MMove() {
    document.title = "财经数据_理财_MSN中国";
    if (Obj != '') {
        Obj.style.left = event.x - pX;
        Obj.style.top = event.y - pY;
    }
}

function MUp() {
    if (Obj != '') {
        document.all(Obj).releaseCapture();
        Obj = '';
    }
}
function d_x(hidId) {
    var hidValue = document.getElementById("hidReplyValue");
    hidValue.value = hidId;
    mask.style.visibility = 'visible';
    massage_box.style.visibility = 'visible'

    var b = document.getElementById("mask");
    b.style.width = "110%";
    b.style.height = document.body.scrollHeight + "px";
}
function d_y() {
    massage_box.style.visibility = 'hidden';
    mask.style.visibility = 'hidden'
}

function doThis() {
    var a = document.getElementById("massage_box");
    a.style.left = "25%";
    a.style.top = (document.body.scrollTop + document.body.clientHeight / 2 - a.clientHeight / 2) + "px";

    var b = document.getElementById("mask");
    b.style.width = "110%";
    b.style.height = document.body.scrollHeight + "px";
}