function logon(){ if (document.login.username.value=="") { alert("U bent vergeten uw gebruikersnaam in te vullen"); return false} if (document.login.password.value=="") { alert("U bent vergeten uw wachtwoord in te vullen"); return false} } function mouseDown(e) { var ctrlPressed=0; var altPressed=0; //a = document.getElementById("divContentLeft") b = document.getElementById("divContentRight") if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") { var mString =(e.modifiers+32).toString(2).substring(3,6); ctrlPressed =(mString.charAt(1)=="1"); altPressed =(mString.charAt(2)=="1"); self.status="modifiers="+e.modifiers+" ("+mString+")" } else { altPressed =event.altKey; ctrlPressed =event.ctrlKey; } if(ctrlPressed){ // a.contentEditable = false; b.contentEditable = false; } else{ // a.contentEditable = true; b.contentEditable = true; } } } document.onmousedown = showDisclaimerByRight; document.onmouseup = showDisclaimerBySelection; document.onkeydown = showDisclaimerByKeyTouch; //document.captureEvents(Event.showDisclaimer); function detectTextSelection() { var a = document.selection.createRange() if(a.text.length > 0 ){a.text = "";return true} } function mouseButton(){ var whichButton = event.button; return whichButton; } function showDisclaimerByRight() { if(mouseButton() == 2){showDisclaimer();} } function showDisclaimerBySelection() { if(detectTextSelection() == true){showDisclaimer();} } function showDisclaimerByKeyTouch() { altPressed =event.altKey; ctrlPressed =event.ctrlKey; if(altPressed || ctrlPressed){showDisclaimer();} }