﻿// generated by yun

function icon(t1)
{
  var txt = document.post.blogn_cmes;

  if (document.selection) {
    txt.focus();
    sel = document.selection.createRange();
    sel.text = t1;
  } else if (txt.selectionStart) {
    txt.value = (txt.value).substring(0,txt.selectionStart) + t1 + (txt.value).substring(txt.selectionEnd, txt.textLength);
  }else{
    txt.value  += t1;
  }
  t1 = "";
  txt.focus();

  return;
}

function ChangeDisplay()
{
  if (document.all('tagicon').style.display == "block") {
    document.all('tagicon').style.display = "none";
    document.images["imgChangeVisible"].src = "./skin/images/ico_tagicon_to_block.gif";
  } else {
    document.all('tagicon').style.display = "block";
    document.images["imgChangeVisible"].src = "./skin/images/ico_tagicon_to_none.gif";
    document.post.blogn_cmes.focus();
  }
}
