// --------------------------------------------------------------------------------------------------Fonctions STD function checkMail(idnom,idmail) { var email = document.getElementById(idmail).value; if(document.getElementById(idnom)){var nom = document.getElementById(idnom).value;} if(document.getElementById('check_submit')){var check_submit = document.getElementById('check_submit').value;} var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (nom=='') {document.getElementById(idnom).style.border = 'solid black 2px'; err1 = false; }else{ err1 = true; } if (email=='') {document.getElementById(idmail).style.border = 'solid black 2px'; err2 = false; }else{ err2 = true; } if (filter.test(email)) { err3 = true; }else{document.getElementById(idmail).style.border = 'solid black 2px'; err3 = false; } if(document.getElementById('check_submit')){ if (check_submit.indexOf('->') > -1 || check_submit.length != 5) { document.getElementById('check_submit').style.border = 'solid black 2px'; err4 = false; }else{ err4 = true; } } if(err1==false || err2==false || err3==false || err4==false ){ err = false; }else{ err = true;} } function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function messageWindow(title, msg, width, height){ var left = (screen.width/2) - width/2; var top = (screen.height/2) - height/2; var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top; var msgWindow = window.open(title,title, styleStr); var head = ''+title+''; var body = '
'+msg+'

'; msgWindow.document.write(head + body); } function MM_callJS(jsStr) { //v2.0 return eval(jsStr) } function MM_popupMsg(msg) { //v1.0 alert(msg); } function MM_goToURL() { //v3.0 var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i < (args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } function MM_changeProp(objName,x,theProp,theValue) { //v6.0 var obj = MM_findObj(objName); if (obj && (theProp.indexOf("style.")==-1 || obj.style)){ if (theValue == true || theValue == false) eval("obj."+theProp+"="+theValue); else eval("obj."+theProp+"='"+theValue+"'"); } } function MM_controlSound(x, _sndObj, sndFile) { //v3.0 var i, method = "", sndObj = eval(_sndObj); if (sndObj != null) { if (navigator.appName == 'Netscape') method = "play"; else { if (window.MM_WMP == null) { window.MM_WMP = false; for(i in sndObj) if (i == "ActiveMovie") { window.MM_WMP = true; break; } } if (window.MM_WMP) method = "play"; else if (sndObj.FileName) method = "run"; } } if (method) eval(_sndObj+"."+method+"()"); else window.location = sndFile; } function Point(x,y) {this.x = x; this.y = y;} mouseLocation = new Point(-500,-500); function getMouseLoc(e) { if(!document.all) { //NS mouseLocation.x = e.pageX; mouseLocation.y = e.pageY; }else{ //IE mouseLocation.x = event.x + document.body.scrollLeft; mouseLocation.y = event.y + document.body.scrollTop; } return true; }