createclass.js
function( mElement, aArray ) {
			for( var i=0; i<aArray.length; i++ )
				if( aArray[i]==mElement )
					return i;
			
			return -1;
		}
function( mElement, aArray ) {
			for( var i=0; i<aArray.length; i++ )
				if( aArray[i]==mElement )
					return i;
			
			return -1;
		}
function ( mElement , aArray ) { for ( var i = 0 ; i < aArray . length ; i ++ ) if ( aArray [ i ] == mElement ) return i ; return - 1 ; }
Check whether or not the given element exists in the given array

@param mElement The element to be searched for (double equal comparison)
@param aArray The array to be searched
@return The index of the element within the array or -1 if it wasn't found
Check whether or not the given element exists in the given array