  tags = new Array()

  tags['b_prompttext'] = 'Type your text to be formated as Bold'
  tags['b_start']      = '[b]'
  tags['b_end']        = '[/b]'

  tags['i_prompttext'] = 'Type your text to be formated as Italic'
  tags['i_start']      = '[i]'
  tags['i_end']        = '[/i]'

  tags['u_prompttext'] = 'Type your text to be formated as Underline'
  tags['u_start']      = '[u]'
  tags['u_end']        = '[/u]'

  tags['email_prompttext'] = 'Type your text to be formated as Email'
  tags['email_start']      = '[email]'
  tags['email_end']        = '[/email]'

  tags['url_prompttext_1'] = 'Type your link name (optional)'
  tags['url_prompttext_2'] = 'Type your URL Address'

  tags['email_prompttext_1'] = 'Name of the Email owner'
  tags['email_prompttext_2'] = 'The Email Address'

  function getcode_email () {
    emailname  = prompt (tags['email_prompttext_1'], '')
    emailaddr  = prompt (tags['email_prompttext_2'], '')
    if (emailaddr > '') {
      if (emailname > '') {
        document.sbform.comment.value += '[email='+ emailaddr +']'+ emailname +'[/email]'
      } else {
        document.sbform.comment.value += '[email]'+ emailaddr +'[/email]'
      }
    }
  }

  function getcode_url () {
    linkname = prompt (tags['url_prompttext_1'], '')
    linkurl  = prompt (tags['url_prompttext_2'], 'http://')
    if (linkurl > '') {
      if (linkname > '') {
        document.sbform.comment.value += '[url='+ linkurl +']'+ linkname +'[/url]'
      } else {
        document.sbform.comment.value += '[url]'+ linkurl +'[/url]'
      }
    }
  }

  function getcode (what) {
    text = prompt (tags[what+'_prompttext'], '')
    if (text > '') {
      document.sbform.comment.value += tags[what+'_start']+ text +tags[what+'_end']
    }
  }

  function put_smilies (code) {
    window.opener.sbform.comment.value += code
  }
