isFavourite = true; 
isFavourite = true; 
function setFavourite(name, type, image){       var img = image.src;    var isFavourite;    if (img.substring(img.length-12, img.length) == 'unactive.gif') {    	isFavourite = false;    } else {    	isFavourite = true;    }    AjaxServices.setFavourite(name, type, isFavourite);    // already a favourite.  turning off.    if (isFavourite) {	    image.src='images/star_unactive.gif';	    image.title='Set as favourite';	// not a favourite.  turn on.	} else {	    image.src='images/star_active.gif';	   	image.title='This is a favourite';	}}
5150	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5150/a4b3b9d540585bda85da6333cb003a6bb652f10e/imdwr.js/buggy/intermine/webapp/main/resources/webapp/js/imdwr.js