/** [BSD License. This license contains no advertising clause.] validate_form.js: A comprehensive solution for validating the most common rules in HTML forms. http://sourceforge.net/projects/validateformjs Copyright (C) 2003-2005, Jeff Epstein All rights reserved. Modifications: No Redistribution in binary form, with or without modifications, are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * If modifications are made to source code then this license should indicate that fact in the "Modifications" section above. * Neither the author, nor the contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. [NOTE: This license contains NO advertising clause.] **/ /** JS FILE OVERVIEW DOCUMENTATION
Random, standalone functions for array analysis.
**/ /** PUBLIC FUNCTIONGet the array index, at which the (first instance of the) desired value exists.
s_callingFunc
: The function calling this, for potential error messages only.v_alue
: The value to find in a_value
a_value
: The value array to search for v_alue
in. Must be a good arraya_value
Of the first element equal to v_alue
.a_value
element equals v_alue
.gtVRAIdx(s_callingFunc, v_alue, a_value)
Is the desired value in the ordered-ascending array of values?
v_alue
: The value to find in a_value
. REQUIREDa_value
: The ordered-ascending value array, to search for v_alue
in. Must be a good array. It is assumed that it is ordered-ascending (a..z). If not, this function will behave unpredictably.a_value
equals v_alue
.isInAscRA(v_alue, a_value)
Is the provided object an array?
This concept comes from Kas Thomas, at
http://www.planetpdf.com/mainpage.asp?webpageid=1144
o_potentialArray
: The object to analyze for array-ness. REQUIRED.o_potentialArray
is an array.isRA(o_potentialArray)