You want something like this
<html>
<head>
<script>
<!--
function changeImage( mainimage, filename)
{
mainimage.src = filename;
}
//-->
</script>
</head>
<body>
<img name="mainimage1" src="/land_sales/upload_pics/pic_1.jpg" border="1"><br />
<a href="javascript:changeImage(mainimage1,'banana.gif')">go</a><br /><br />
<img name="mainimage2" src="/land_sales/upload_pics/pic_1.jpg" border="1"><br />
<a href="javascript:changeImage(mainimage2,'banana.gif')">go</a><br /><br />
<img name="mainimage3" src="/land_sales/upload_pics/pic_1.jpg" border="1"><br />
<a href="javascript:changeImage(mainimage3,'banana.gif')">go</a><br /><br />
</body>
</html>
Basically, each mainimage image tag should be have a unique ID, in the example above that is mainimage1 mainimage2 and mainimage3.
Then modify your function to accept two parameters, 1 is the element who's src should be changed the 2nd is the file to change to.
Lastly modify your call to the changeImage function to pass the id of the element where you wish the image to be displayed to.
This example will work in both IE and firefox as you are passing the element itself by reference so no need to call something like getElementById()