


function ToggleLoadingScreen(loadingDivID, contentDivID)
{
    //document.getElementById(loadingDivID).style.display = "none";
    //document.getElementById(contentDivID).style.visibility = "visible";
}

function LTHidePopUp(ID)
{
    document.getElementById(ID).style.display = "none";
}
    
function ShowScreeningPopUp(PopUpID,event)
{
    //document.getElementById("ToolTipInappropriateContent").style.display = "none";
    cursor = GetMousePosition(event);
    popup = document.getElementById(PopUpID);
    popup.style.display = "inline";
    leftPos = cursor.x - 335;
    topPos = cursor.y - 20;
    popup.style.left = leftPos + "px";
    popup.style.top = topPos + "px";

}

function LTShowToolTip(toolTipContainerID, questionIconID)
{
    var toolTip = document.getElementById(toolTipContainerID);
    var question = document.getElementById(questionIconID);
    
    var x = GetX(question);
    var y = GetY(question);
    x = x + 20;
    
    toolTip.style.display = 'block';
    
    toolTip.style.top = y + "px";
    toolTip.style.left = x + "px";
    
    toolTip = null;
    question = null;
    x = null;
    y = null;
}

function LTHideToolTip(toolTipContainer)
{
    var toolTip = document.getElementById(toolTipContainer);
    toolTip.style.display = 'none';
    toolTip = null;
}

//function AllowScreeningSend()
//{
//    ddl = document.getElementById("ctl00_LeftMenu_ddlScreeningCat");
//    txt = document.getElementById("ctl00_LeftMenu_txtScreeningComments");
//    
//    if(!ddl.options[0].selected)
//    {
//        if(txt.value != "")
//        {
//            document.getElementById("ScreeningSendBloker").style.display = "none";
//        }
//        else
//        {
//            document.getElementById("ScreeningSendBloker").style.display = "inline";
//        }
//    }
//    else
//    {
//        document.getElementById("ScreeningSendBloker").style.display = "inline";
//    }
//}