var b = 2;
var i = 2;
var u = 2;
var url = 2;
var img = 2;
var quote = 2;
function tag(v, tagadd, newbut, tagclose, oldbut, name) {
   if(eval(v)%2 == 0){
      eval("window.document.editform."+name+".value = newbut;");
      var content = window.document.editform.content.value;
      window.document.editform.content.value = content + tagadd;
      window.document.editform.content.focus();
   }else{
      eval("window.document.editform."+name+".value = oldbut;");
      var content = window.document.editform.content.value;
      window.document.editform.content.value = content + tagclose;
      window.document.editform.content.focus();
   }
   eval(v+"++;");
}

function InsertColor(color)
{
      var content = window.document.editform.content.value;
      window.document.editform.content.value = content + '[color=' + color + '][/color]';
      window.document.editform.content.focus();
}


function ShowHelp(text)
{
	document.editform.helpline.value = text;
}