function tinyMCERun(width, height)
{

  if(!width)
    width = 500;
  if(!height)
    height = 250;
  
  width = width+"px";
  
  
  
  var data = {
      language: "pl",
      mode : "textareas",
      theme : "advanced",
          convert_urls : false,
          relative_urls : false,
      plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager",
      // Theme options
      theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
      theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,sub,sup,|,fullscreen",
      theme_advanced_buttons3 : "insertdate,inserttime,preview,|,forecolor,backcolor,|,tablecontrols,|,hr,removeformat,visualaid,|,print,|,ltr,rtl",
      theme_advanced_buttons4 : "charmap,emotions,iespell,media,advhr,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_statusbar_location : "bottom",
      theme_advanced_resizing : true,
      //theme_advanced_styles : "Code=codeStyle;Quote=quoteStyle",
      //theme_advanced_fonts : "Arial=arial,helvetica,sans-serif;",
      width : width
      //content_css : "/../css/main_editform.css"     
    }
    
 if(height)
 {
  height = height+"px";
  data['height'] = height;
 }
 
 tinyMCE.init(data);

}
