function replace(id) {
    res = document.getElementById(id)
    res.innerHTML = '<a href="" onclick="history.go(0)">Sluit</a><form method="post"><textarea name="editor">'+res.innerHTML+'</textarea><input type="hidden" name="id" value="'+id.substr(6)+'"/></form>';
    CKEDITOR.replace( 'editor', {height:"300", width:"100%",});
}
