function InsertQuote(D,E,F) {
  if(InsertQuote.selection.toString().length>0) {
    var A=gebi("post"+F),B="",C=(typeof(A.innerText)!='undefined')?A.innerText:(typeof(A.textContent)!='undefined')?A.textContent:"";
    gebi('comtext').value+=(((gebi('comtext').value.length>0)?"\n":"")+"[QUOTE"+(D?("="+D+", "+E+(F?(", post"+F):"")):"")+"]"+(InsertQuote.selection.toString())+"[/QUOTE]\n")
  } else {
    alert("Выделите текст, который Вы хотите процитировать!");
    return;
  }
};
InsertQuote.prepare=function(){
  if(document.getSelection) { 
    if(typeof(window.getSelection)!='undefined') {
      InsertQuote.selection=window.getSelection().toString()
    } else {
      InsertQuote.selection=document.getSelection()
    }
  } else {
    InsertQuote.selection=document.selection.createRange().text
  }
};
var flipforuminfoflag = false;
function flipforuminfo(id)
{
  flipforuminfoflag = !flipforuminfoflag;
  if (flipforuminfoflag) {
    gebi('flipforuminfo_div'+id).style.display = "";
  } else {
    gebi('flipforuminfo_div'+id).style.display = "none";
  }
};
