<!--
function checkrequiredfields() {
    for(i=0; i < checkrequiredfields.arguments.length; i++) {
        if (document.main.elements[checkrequiredfields.arguments[i]].value == "") {
            alert("Ce champ est 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 GetCommonFla7(id, src, width, height) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="Movie" value="' + src + '">\n');
    document.write('<param name="Quality" value="High" />\n');
    document.write('<param name="bgcolor" />\n');
    document.write('<embed src="' + src + '" quality="high" width="' + width + '" height="' + height + '" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />\n');
    document.write('</embed>\n');
    document.write('</object>\n');
}


function cnx() {
    	document.main.isconnexionpost.value = 1;
    	document.main.isdeconnexion.value = 0;
        document.main.submit();  
}

function decnx() {
	document.main.isconnexionpost.value = 0;
	document.main.isdeconnexion.value = 1;
	document.main.submit();  

}

//-->
