function updateFilter(tag) {
		//   alert('filterChanged');
		var e = document.getElementById('filter');
		var f = e.value;
		tags = f.split(',');
		var nf = '';
		var contained = false;
		for ( var i = 0; i < tags.length; i++) {
			var aTag = tags[i];
			if (!aTag)
				continue;
			if (aTag == tag) {
				contained = true;
				continue; // remove it
			}
			if (nf.length > 0)
				nf += ',';
			nf += aTag;
		}
		if (!contained) {
			if (nf.length > 0)
				nf += ',';
			nf += tag;
		}
		e.value = nf;
		saveVar('filterVar', nf);
		updateForCreateItems(nf);
		filter();
		return false;
	}
// Next one obsolete - to be removed.
Next one obsolete - to be removed.
Next one obsolete - to be removed .
function updateFilter(tag) {
		var e = document.getElementById('filter');
		var f = e.value;
		tags = f.split(',');
		var nf = '';
		var contained = false;
		for ( var i = 0; i < tags.length; i++) {
			var aTag = tags[i];
			if (!aTag)
				continue;
			if (aTag == tag) {
				contained = true;
				continue; 
			}
			if (nf.length > 0)
				nf += ',';
			nf += aTag;
		}
		if (!contained) {
			if (nf.length > 0)
				nf += ',';
			nf += tag;
		}
		e.value = nf;
		saveVar('filterVar', nf);
		updateForCreateItems(nf);
		filter();
		return false;
	}
function updateFilter ( tag ) { var e = document . getElementById ( 'filter' ) ; var f = e . value ; tags = f . split ( ',' ) ; var nf = '' ; var contained = false ; for ( var i = 0 ; i < tags . length ; i ++ ) { var aTag = tags [ i ] ; if ( ! aTag ) continue ; if ( aTag == tag ) { contained = true ; continue ; } if ( nf . length > 0 ) nf += ',' ; nf += aTag ; } if ( ! contained ) { if ( nf . length > 0 ) nf += ',' ; nf += tag ; } e . value = nf ; saveVar ( 'filterVar' , nf ) ; updateForCreateItems ( nf ) ; filter ( ) ; return false ; }
Next one obsolete - to be removed.
Next one obsolete - to be removed .
//   alert('filterChanged'); // remove it