function in_array(needle, haystack, argStrict)
{
  var key = '', strict = !!argStrict;
  if(strict)
  {
    for(key in haystack)
    {
      if(haystack[key] === needle) return true;
    }
  }
  else
  {
    for(key in haystack)
    {
      if(haystack[key] == needle) return true;
    }
  }
  return false;
}

function array_key(needle, haystack, argStrict)
{
  var key = '', strict = !!argStrict;
  if(strict)
  {
    for(key in haystack)
    {
      if(haystack[key] === needle) return key;
    }
  }
  else
  {
    for(key in haystack)
    {
      if(haystack[key] == needle) return key;
    }
  }
  return false;
}

function unset(array, key)
{
  var output = [];
  for(var i in array)
  {
    if(i != key) output[i] = array[i];
  }
  return output;
}

