/****************************************************************************************/
/* firstEntryClear                                                                      */
/*                                                                                      */
/* Purpose:                                                                             */
/*     Clears a text box on first entry                                                 */
/*                                                                                      */
/* Modification History                                                                 */
/* --------------------                                                                 */
/* 04/02/10 AJD created                                                                 */
/****************************************************************************************/

function firstEntryClear(textBox)
{
    textBox.value = "";
    textBox.onfocus = null;
}

/****************************************************************************************/
/* showModalDiv                                                                         */
/*                                                                                      */
/* Purpose:                                                                             */
/*  Display Modal popup                                                                 */
/*                                                                                      */
/* Modification History                                                                 */
/* --------------------                                                                 */
/* 04/09/10 AJD created                                                                 */
/****************************************************************************************/

function showModalDiv(divID)
{
    window.onscroll = function()
    {
        var objDiv = document.getElementById(divID);
        objDiv.style.top = document.body.scrollTop;
    };

    var objDiv = document.getElementById(divID);
    objDiv.style.display = "block";
    objDiv.style.top = document.body.scrollTop;

}

/****************************************************************************************/
/* closeModalDiv                                                                        */
/*                                                                                      */
/* Purpose:                                                                             */
/*  Close   Modal popup                                                                 */
/*                                                                                      */
/* Modification History                                                                 */
/* --------------------                                                                 */
/* 04/09/10 AJD created                                                                 */
/****************************************************************************************/

function closeModalDiv(divID)
{
    document.getElementById(divID).style.display = "none";
    window.onscroll = null;
}

