﻿//////
/////These function handle the colpasing and expanding of the informationbox control.
/////

function ShowBox(MessageBoxId, QuestionMarkId) {
    var MessageBox = document.getElementById(MessageBoxId);
    var QuestionMark = document.getElementById(QuestionMarkId);


    if (Sys) {
        var bounds = Sys.UI.DomElement.getBounds(QuestionMark);
        MessageBox.style.top = bounds.y + "px";
        MessageBox.style.left = bounds.x + "px";

    } else {
    MessageBox.style.top = QuestionMark.offsetTop + "px";
        MessageBox.style.left = bounds.offsetLeft + "px";
    }
    
    MessageBox.style.visibility = 'visible';
    MessageBox.style.display = 'block';
}

function CloseBox(MessageBoxId) {
    var MessageBox = document.getElementById(MessageBoxId);
    MessageBox.style.visibility = 'hidden';
    MessageBox.style.display = 'none';
}