<!--
// champs obligatoires
function checkrequiredfields() {
    for(i=0; i < checkrequiredfields.arguments.length; i++) {
        if (document.main.elements[checkrequiredfields.arguments[i]].value == "") {
            alert("Champ obligatoire ");
            document.main.elements[checkrequiredfields.arguments[i]].className='required';
            document.main.elements[checkrequiredfields.arguments[i]].focus();
            return false;
        }
    }
    return true;
}

// menu 
sfHover = function() {
    if (document.getElementById("menu")) {
        var ellt = document.getElementById("menu").getElementsByTagName("li");
        for (var i=0; i<ellt.length; i++) {
            ellt[i].onmouseover=function() {
                this.className+=" sfhover";
            }
            ellt[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
            }
        }
    }
}

if (window.attachEvent) {
    window.attachEvent("onload", sfHover);
}


function log_extranet() {
//    alert("En construction");  
    document.main.action = 'extranet_fournisseur/auth_check.php';
    document.main.submit();
}

function send_renseignement() {
    if (checkrequiredfields(0,1,2,3,4,5)) {        
        document.main.submit();  
    }
}

function popup_schema1(lien) {
	titre = Math.round(Math.random() * 4294967295);
	window.open(lien, titre, 'toolbar=no,resizable=yes,menubar=no,location=no,status=no,scrollbars=yes,width=640,height=755');
}

function popup_schema2(lien) {
	titre = Math.round(Math.random() * 4294967295);
	window.open(lien, titre, 'toolbar=no,resizable=yes,menubar=no,location=no,status=no,scrollbars=yes,width=650,height=550');
}

//-->
