// ***************************************************************************** // * // ***************************************************************************** function loadBodyContent(){ show_clock(); window.setInterval("keepMeAlive('keepsessalive')", 300000); } function voidall(){ } function Browser(){ this.dom = document.getElementById?1:0; this.ie4 = (document.all && !this.dom)?1:0; this.ns4 = (document.layers && !this.dom)?1:0; this.ns6 = (this.dom && !document.all)?1:0; this.ie5 = (this.dom && document.all)?1:0; this.ok = this.dom || this.ie4 || this.ns4; this.platform = navigator.platform; } function keepMeAliveCB(){ if(reqXML.readyState == 4){ if(reqXML.status == 200){ return true; } } } function keepMeAlive(objName){ myObj = document.getElementById(objName); if(myObj) myObj.src = myObj.src.replace(/\?.*$/, '?' + Math.random()); if (window.XMLHttpRequest){ //Mozilla, Firefox, Opera 8.01, Safari reqXML = new XMLHttpRequest(); } else if(window.ActiveXObject){ //IE reqXML = new ActiveXObject("Microsoft.XMLHTTP"); } reqXML.open('GET', '/index.asp', true); reqXML.onreadystatechange = keepMeAliveCB; reqXML.send(null); } function findXPosition( oLink ) { if( oLink.offsetParent ) { for( var posX = 0; oLink.offsetParent; oLink = oLink.offsetParent ) { posX += oLink.offsetLeft; } return posX; } else { return oLink.x; } } function findYPosition( oLink ) { if( oLink.offsetParent ) { for( var posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) { posY += oLink.offsetTop; } return posY; } else { return oLink.y; } } function moveHtmlObj(theid, xpos, ypos){ if(document.getElementById(theid)){ srcobj = document.getElementById(theid); srcobj.style.left = xpos + "px"; srcobj.style.top = ypos + "px"; } } function ShowHideHtmlIdPos(theid, xpos, ypos){ if(document.getElementById(theid)){ srcobj = document.getElementById(theid); if((srcobj.style.display == '') || (srcobj.style.display == 'none')){ srcobj.style.left = xpos + "px"; srcobj.style.top = ypos + "px"; srcobj.style.display = 'block'; } else{ srcobj.style.display = 'none'; } } } function ShowHideHtmlId(theid){ if(document.getElementById(theid)){ obj = document.getElementById(theid); if((obj.style.display == '') || (obj.style.display == 'none')){ obj.style.display = 'block'; } else{ obj.style.display = 'none'; } } } function isValidIPAddress(ipaddr) { var re = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/; if (re.test(ipaddr)) { var parts = ipaddr.split("."); if (parseInt(parseFloat(parts[0])) == 0) { return false; } for (var i=0; i 255) { return false; } } return true; } else { return false; } } // ***************************************************************************** // * // ***************************************************************************** function isValidEmail(email) { var result = false; var theStr = new String(email); var index = theStr.indexOf("@"); if (index > 0) { var pindex = theStr.indexOf(".",index); if ((pindex > index+1) && (theStr.length > pindex+1)) result = true; } return result; } // ***************************************************************************** // * // ***************************************************************************** function isVariableFilled(obj, name, showalert){ if (obj == ""){ if(showalert) alert('Het volgende veld is niet ingegeven : '+name); return false; } else return true; } // ***************************************************************************** // * // ***************************************************************************** function isStringValid(obj, name, validchars, showalert) { if(!isVariableFilled(obj, name, showalert)) return false; for (var i=0; i < obj.length; i++) { var letter = obj.charAt(i).toLowerCase(); if (validchars.indexOf(letter) != -1) continue; if (letter == " ") letter = "spatie"; alert('Ongeldig teken : ' + letter); return false; } return true; } // ***************************************************************************** // * // ***************************************************************************** function isValidDomain(obj) { if (obj == "") { alert('U moet iets ingeven !'); return false; } var validchars = "abcdefghijklmnopqrstuvwxyz0123456789-_."; for (var i=0; i < obj.length; i++) { var letter = obj.charAt(i).toLowerCase(); if (validchars.indexOf(letter) != -1) continue; if (letter == " ") letter = "spatie"; alert('Ongeldig teken : ' + letter); return false; } return true; } // **************************************************************************** // * // **************************************************************************** function checkString(myString) { var isInteger = new Boolean(); isInteger=true; var myChar=""; var myInt=0; if (myString != "" && typeof(myString) == "string") { for (i=0; i