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; var shiftPressed=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); shiftPressed=(mString.charAt(0)=="1"); ctrlPressed =(mString.charAt(1)=="1"); altPressed =(mString.charAt(2)=="1"); self.status="modifiers="+e.modifiers+" ("+mString+")" } else { shiftPressed=event.shiftKey; altPressed =event.altKey; ctrlPressed =event.ctrlKey; } if(ctrlPressed){ //a.contentEditable = false; //b.contentEditable = false; grab(e) } 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();} } targ = null; var theId function grab(e){ var targ; if (!e) var e = window.event; if (e.target) targ = e.target; else if (e.srcElement) targ = e.srcElement; if (targ.nodeType == 3) // defeat Safari bug targ = targ.parentNode; //alert(targ.tagName); strGoto = targ.href //targ.href= "return false;"; if(targ.tagName == "A"){ targ.style.cursor = "hand"; this.document.location = strGoto; } //alert(targ.tagName) //this line may be removed or commented out } function showPropertyWindow(e) { grab(e) }