/**
@Name: tc.arrays.removeByValue
@Author: Anthony Cashaw
@Version: 1.0 04/09/08
@Description: used to remove all elements from an array based on their value
@Return: The array minus the specified element
@Example:
var myArray = [2, 3, 7, 9, 10];
myArray = myArray.removeByValue(3); //returns [2, 7, 9 10]

//or
tc.arrays.removeByValue.call(myArray);
*/

Array.prototype.removeByValue = function(value){ 
			
	if(this.inArray(value)){
		var that = [];
		for(var i=0;i < this.length; i++){
			if(value != this[i]){
				that.push(this[i]);
			}
		}
		
		return that;
	}else{
		if(sb.consol && tc.debug){
			sb.consol.log(value + " not in array");
		}
			return this;
	}
			
};