function ShowPopUp(id,w,h)
{
    var divObj = document.getElementById(id);
    var divObjInfo = divObj.getElementsByTagName("div").item(0);
    
    var WidthPanel = parseInt(w)+20;
    var HeightPanel = parseInt(h)+40;
    divObj.style.width = WidthPanel + 'px';
    divObj.style.height =  HeightPanel + 'px';
    divObj.style.visibility = 'visible';
    
    divObjInfo.style.width = w + 'px';
    divObjInfo.style.height = h + 'px';
    divObjInfo.style.overflow = 'auto';
    return false;
}
function HidePopUp(id)
{
    document.getElementById(id).style.visibility='hidden';
    return false;
}
function showImageDetail(DivPicture,BigPicture)
{
    var divObj = document.getElementById(DivPicture);
    var PWidth = document[BigPicture].width + 3;
    var PHeight = document[BigPicture].height + 3;
    divObj.style.width = PWidth + 'px';
    divObj.style.height = PHeight + 'px';
    divObj.style.visibility = 'visible';
    divObj.focus();
    return false;
}
function hideImageDetail(DivPicture)
{
    DivPicture.style.visibility='hidden';
    return false;
}
function Printer(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=650,height=600,left=60, top=60,screenX=60px,screenY=60px");
    return false;
}
function SendMail(url)
{
    window.open(url, "_blank","toolbar=no,location=no,directories=no,addressbar=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=530,height=220,left=230, top=120,screenX=230px,screenY=120px");
    return false;
}
function MessageError(msg, url)
{
    alert(msg);
    document.location.href = url;
}
