function js_init_ckeditor(jvarname, jwidth, jheight) {

    editor = CKEDITOR.replace(jvarname,
    {
        toolbar: 'FullToolbar',
        width: jwidth,
        height: jheight
    });
}

CKEDITOR.config.stylesCombo_stylesSet = 'websitestyles:_source/../ckeditor.styles.js';

CKEDITOR.config.disableNativeSpellChecker = true;
CKEDITOR.config.scayt_autoStartup = false;
CKEDITOR.config.filebrowserUploadUrl = '/include/ckeditor.upload.file.php';
CKEDITOR.config.filebrowserImageUploadUrl = '/include/ckeditor.upload.image.php';
// don't edit FullToolbar, use it as a base for custom toolbars!
CKEDITOR.config.toolbar = 'FullToolbar';
CKEDITOR.config.toolbar_FullToolbar =
    [
        ['Source','-','Save','NewPage','Preview','-','Templates'],
        ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
        ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
        ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
        '/',
        ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
        ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['Link','Unlink','Anchor'],
        ['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
        '/',
        ['Styles','Format','Font','FontSize'],
        ['TextColor','BGColor'],
        ['Maximize', 'ShowBlocks','-','About']
    ];
CKEDITOR.config.toolbar = 'BigToolbar';
CKEDITOR.config.toolbar_BigToolbar =
    [
        ['Maximize','-','Source'],
        ['Undo','Redo','-','Print','-','Paste','PasteText','PasteFromWord'],
        ['Find','Replace','-','SelectAll','-','RemoveFormat'],
        '/',
        ['Link','Unlink','-','Image','-','Table','-','HorizontalRule','-','SpecialChar'],
        '/',
        ['Bold','Italic','Underline','Strike','Subscript','Superscript'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['NumberedList','BulletedList','Outdent','Indent'],
        ['TextColor','BGColor'],
        '/',
        ['Format','FontSize','Styles']
    ];
CKEDITOR.config.toolbar = 'SmallToolbar';
CKEDITOR.config.toolbar_SmallToolbar =
    [
        ['Maximize'],
        ['Paste','PasteText','PasteFromWord'],
        ['SelectAll','-','RemoveFormat'],
        ['Link','Unlink','-','Table','-','HorizontalRule','-','SpecialChar'],
        ['Bold','Italic','Underline','Strike','Subscript','Superscript'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['NumberedList','BulletedList','Outdent','Indent'],
        ['TextColor','BGColor'],
        ['Format','FontSize','Styles']
    ];
