function mail(adresse, domaine, texte) {
    document.write("<a href=\"mailto:"+adresse+"@"+domaine+"\"><strong>"+texte+"</strong></a>");
}

function mail2(adresse, domaine) {
    document.write("<a href=\"mailto:"+adresse+"@"+domaine+"\"><strong>"+adresse+"@"+domaine+"</strong></a>");
}

var waitwin;
function openWaitWin() {
    waitwin = window.open("/wait.html", "wait_window", "width=400, height=30, menubar=no, statusbar=no, toolbar=no");
}

function closeWaitWin() {
    if (waitwin != null) {
        waitwin.close();
    }
}

function isEmpty(elem, helperMsg) {
    if (elem.value.length == 0) {
        alert(helperMsg);
        elem.focus();
        return true;
    }
    return false;
}

function openWaitWin2() {
    var t = "<br /><strong>Le fichier est en cours de transfert...</strong>";
    document.write(t);
}

function showDetails(objectId) {
    var obj = document.getElementById("m_" + objectId);
    obj.style.display = 'inline';
    obj = document.getElementById("p_" + objectId);
    obj.style.display = 'none';
    obj = document.getElementById(objectId);
    obj.style.display = 'block';
}


function hideDetails(objectId) {
    var obj = document.getElementById("m_" + objectId);
    obj.style.display = 'none';
    obj = document.getElementById("p_" + objectId);
    obj.style.display = 'inline';
    obj = document.getElementById(objectId);
    obj.style.display = 'none';
}


