/* ================================================================== *The JavaScript Validation objects to be used in form validation. * Copyright (c) 2001 by Blackboard, Inc., * 1899 L Street, NW, 5th Floor * Washington, DC, 20036, U.S.A. * All rights reserved. * Submit RFC & bugs report to: aklimenko@blackboard.com * This software is the confidential and proprietary information * of Blackboard, Inc. ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Blackboard. * ==================================================================*/ /************************************************************ * Object formCheckList. Use this object to hold form objects * to be validated and perform form validation ************************************************************/ var formCheckList = new formCheckList(); var dblSubmit = false; var skipValidation=false; function formCheckList(){ this.checkList = new Array(); //this.superGroups= new Array(); // Create empty array for objects representing groups of radio/checkbox groups this.addElement = addElement; this.check = checkForm; } function addElement(element){ if (typeof element.group != 'undefined'){ for (var i=0; i < this.checkList.length;i++){ if (this.checkList[i].name == element.group){ this.checkList[i].addElement(element); return; } } var grp = new CheckGroup(element); grp.addElement(element); this.checkList[this.checkList.length] = grp; return; } this.checkList[this.checkList.length] = element; } function checkForm(){ var valid =true; for (var i=0;i