Once again thanks a lot....One more thing..Referring to the FIRST reply, how can i make the ' Show Accompanying image' button to change its text...Once some1 click this button i want to change its text to 'Hide Accompanying image' AND when click it should hide the accompanied image changing AND change text back to 'Show Accompanying image'
You can change the button's text by passing a reference to the button, in to the function that runs when you click it. You can pass an element's reference to one of its event functions using the "this" keyword (see example at address below).
Then in the button's onclick function you can manipulate its contents and behaviour, for example
button.firstChild.nodeValue = "new text";
I've modified the previous example so that if you click the "show accompanying images" button it changes its text to "hide accompaying images" and changes it onclick function as well.
See the example here.
Please let me know if you have any questions about how it works.