Array.prototype.find = function( str ) {
	var result = -1;
	for( var count = 0; count < this.length; count++ ) {
		if( str == this[count] )
			return count;
	}
	return result;
}

Array.prototype.clearMatch = function( ar ) {
	var result = new Array();
	if( typeof ar == "undefined ") {
		return this;
	} else if( typeof ar == "string" ) {
		var tmp = ar;
		ar = new Array();
		ar[0]=tmp;
	}
	for( var count = 0; count < this.length; count++ ) {
		if( ar.find( this[count] ) == -1 )
			result[result.length]=this[count];
	}
	return result;
}
