Swap Image on "onClick" and restore image on "onMouseUp"

Hey all,

i have one image and when its selected i want to have it so that it will swap image with the same image but just with a border around it. Also i’m trying to have it so that only 2 out of the 4 can get selected at a time…i’m using dreamweaver any ideas on how??