  function bold () {// JavaScript Document  function bold () {
    var comments = document.getElementById("comments");
	var text = prompt("What text would you like bolded?");
    comments.value = comments.value + '[B]' + text + '[/B]';
  }
  function italic () {
    var comments = document.getElementById("comments");
	var text = prompt("What text would you like in italics?");
    comments.value = comments.value + '[I]' + text + '[/I]';
  }
  function underline () {
    var comments = document.getElementById("comments");
	var text = prompt("What text would you like to underline?");
    comments.value = comments.value + '[U]' + text + '[/U]';
  }
  function url () {
    var comments = document.getElementById("comments");
	var url = prompt("What is the address of the link?");
	var text = prompt("What is the description of this link?");
    comments.value = comments.value + '[URL=' + url + ']' + text + '[/URL]';
  }
  function img () {
    var comments = document.getElementById("comments");
	var url = prompt("What is the address of the image?");
    comments.value = comments.value + '[IMG]' + url + '[/IMG]';
  }