var mailSubject = 'Feedback on Offline Help File and/or Documentation';
var mailBody = 'The page I was visiting was: ' + location.href;
var mailDisplay = 'Email Feedback';
var bodyline = '%0A%0APlease add your comments here:%0A%0A%0A%0A%0A%0A%0A%0AThank you for your valuable feedback.' ;
'<a title="Send Feedback on Help File and Documentation" href="mailto:firstname.lastname@example.org'
+ '?subject=' + escape(mailSubject)
+ '&body=' + escape(mailBody) + (bodyline)
+ '"><img src="./ImageRepository/feedbackicon.jpg" title="Email Feedback" border="none" alt="" /></a>'
There is likely a way to code it so the image is found using the pathing. But if I were in your shoes, I would likely abandon attempting to sort the pathing and simply copy the image to each folder in my project. Then amending the code so it simply references the image. Not very pretty, but it should work.