/*************************************************** 
 * These function manage the client-side comportment
 * of the wyswiwyg Editor of EMiloG.
 *
 * Created by Jean-René Gaibrois
 * October 2004
 * 
 *
 */

// popup window
function doPopup(file, mytitle, sizeW, sizeH){
    var myWin;
    var myDim = "width=" + sizeW + ",height=" + sizeH + ",resizable=no," +
                "scrollbars=yes," +
                "screenX=300,screenY=300";

    myWin = window.open(file, 'mytitle', myDim);
}


/****************
 * FormsHandler :
 * 
 * This part is set to confirm the definitiv deletion
 * trashed objects
 *
 * the method is called whith the onsubmit() command of the
 * form targ.
 *
 * the argument lang ist provided to define the language
 * of the confirmation message.
 * 
 */
function confDelete(lang) {
    var msg;
    if (lang == "fr")
        msg = "Operation irréversible \n" +
              "les objects checkés seront " +
              "supprimés définitivement.\n \n" +
              "Souhaitez-vous poursuivre";
    else if (lang == "de")
        msg = "Unwiderrufliche Operation \n" +
              "Die gecheckten Objekte " +
              "werden definitiv gelöscht.\n \n" +
              "Soll diese Operation ausgeführt werden";

    var myCheck = confirm(msg + "?");
    if (myCheck)
        return true;
    else 
        return false;
}

