alert(image.src);  
function setFavourite(name, type, image){       var img = image.src;    var isFavourite;    alert(img.substring(img.length-12, img.length));    if (img.substring(img.length-12, img.length) == 'unactive.gif') {    	isFavourite = false;    } else {    	isFavourite = true;    }        AjaxServices.setFavourite(name, type, isFavourite);    alert(image.src);        // 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/9f91cd265b1178bc76de7a1df6a2df8c04db4806/imdwr.js/buggy/intermine/webapp/main/resources/webapp/js/imdwr.js