function x() { return; }

function displayImage( docTarget, docValue, docImg )
{
    if ( ! document.images ) { return; }

    docTarget.src = docImg + docValue;
}

function popWindow( winPage, winName, winPara )
{
    var win_position = ", screenX=800, left=400, screenY=600, top=300";
    var win_para = winPara + win_position;

    var mpnPopWindow = window.open( winPage, winName, win_para );
}


function refreshForm( formName, formAction, formMethod )
{
    var openerForm = opener.document.forms.formName;

    openerForm.action = formAction;
    openerForm.method = formMethod;
    openerForm.submit();
}

function reloadParent( uriLocation )
{
    opener.uriLocation.reload();
}

function confirmAction( msg )
{
    if ( msg == null ) { msg = "This Action Cannot Be Undone! Continue?"; }

    confirm( msg );
}

function CheckAll()
{
    for ( var i=0; i<document.prvmsg.elements.length; i++ )
    {
        var e = document.prvmsg.elements[i];

        if ( ( e.name != 'allbox' ) && ( e.type == 'checkbox' ) )
        {
            e.checked = document.prvmsg.allbox.checked;
        }
    }
}

function CheckCheckAll()
{
    var TotalBoxes = 0;
    var TotalOn = 0;

    for ( var i=0; i < document.prvmsg.elements.length; i++ )
    {
        var e = document.prvmsg.elements[i];

        if ( ( e.name != 'allbox' ) && ( e.type == 'checkbox') )
        {
            TotalBoxes++;

            if ( e.checked )
            {
                TotalOn++;
            }
        }
    }

    if ( TotalBoxes == TotalOn )
    {
        document.prvmsg.allbox.checked = true;
    }
    else
    {
        document.prvmsg.allbox.checked = false;
    }
}