function confirmAndRedirect(message,page){

    var answer = confirm(message)
    if (answer){
        window.location = page;
    }

}

function toggleEditor(id) {
    if (!tinyMCE.get(id))
        tinyMCE.execCommand('mceAddControl', false, id);
    else
        tinyMCE.execCommand('mceRemoveControl', false, id);
}