if (document.getElementById(wsListId+'_'+type+'_filter_aspect').value != '') { 
if (document.getElementById(wsListId+'_'+type+'_filter_aspect') && document.getElementById(wsListId+'_'+type+'_filter_aspect').value != '') { 
function filterFavourites(scope, type, wsListId) {    var id = 'filterAction_'+wsListId+'_'+type;    var tags = '';    // aspect selected    if (document.getElementById(wsListId+'_'+type+'_filter_aspect').value != '') {    	tags = 'aspect:'+document.getElementById(wsListId+'_'+type+'_filter_aspect').value;    }    // favourites OFF    if(document.getElementById(id).value == "favourites") {        document.getElementById(id).value = "";        document.getElementById('filter_favourites_'+wsListId+'_'+type).src = 'images/filter_favourites.png';    // favourites ON        } else {        document.getElementById(id).value = "favourites";        document.getElementById('filter_favourites_'+wsListId+'_'+type).src = 'images/filter_favourites_active.png';        tags = (tags == '' ? 'favourite' : tags + '|favourite');    }            var filterTextElement = document.getElementById(wsListId+'_'+type+'_filter_text');    return filterWebSearchablesHandler(null, filterTextElement, scope, type, tags, wsListId);}
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/c3f14c6f8a7198dfc816e090b80859f53bab5190/imdwr.js/clean/intermine/webapp/main/resources/webapp/js/imdwr.js