// JavaScript Documentunction popup(boxId,status){
function popup(boxId,status){
    var sWidth,sHeight;
    sWidth = screen.width;
    sWidth = document.body.offsetWidth;
    if(document.body.scrollHeight){
        sHeight=document.body.scrollHeight;
    }else{
        sHeight=document.documentElement.scrollHeight;
    }
    //sHeight=document.body.scrollHeight;
    if (sHeight<screen.height){sHeight=screen.height;}
	document.getElementById("mask").style.width = sWidth + "px";
	document.getElementById("mask").style.height = sHeight + "px";
	document.getElementById("mask").style.display = status;
	document.getElementById(boxId).style.display=status;
}

function popup2(boxId, status, maskID) {
    var sWidth, sHeight;
    sWidth = screen.width;
    sWidth = document.body.offsetWidth;
    if(document.body.scrollHeight){
        sHeight=document.body.scrollHeight;
    }else{
        sHeight=document.documentElement.scrollHeight;
    }
    if (sHeight < screen.height) { sHeight = screen.height; }
    document.getElementById(maskID).style.width = sWidth + "px";
    document.getElementById(maskID).style.height = sHeight + "px";
    document.getElementById(maskID).style.display = status;
    document.getElementById(boxId).style.display = status;
}