function comment_image() {
var URL = prompt('Please enter the image URL');
if (URL) {
document.getElementById('comment').value = document.getElementById('comment').value + '[img]' + URL + '[/img]';
}} 