help on onclick function

help on onclick function

Hi,

I have 4 images and when i click on one image it should be covered with blue colored box (to indicate that it is checked), and when I click on another image, previous image should get the previous status and now the current image should appear checked with blue colored box on it.

could any one please suggest me how to do it.
Thanks a lot.