code: function(array, obj)
  	{
  		if (array != null && obj != null)
  		{
  			for (var i = 0; i < array.length; i++)
  			{
  				if (array[i] == obj)
  				{
  					return i;
  				}
  			}
  		}
  		
  		return -1;
  	}
docs: Function: indexOf
  
  Returns the index of obj in array or -1 if the array does not contain
  the given object.
  
  Parameters:
  
  array - Array to check for the given obj.
  obj - Object to find in the given array.