NS4=(document.layers) ? true : false; IE4=((document.all))?true:false; ver4 = (NS4 || IE4) ? true : false; // Creates a window popup that appears in the middle of the screen function NewWindow(mypage,myname,w,h,scroll){ var win = null; LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) if (win.window.focus) {win.window.focus();} } function checkSure() { if(confirm("All changes will be lost, are you sure?")) { document.mainform.reset(); } } function checkDeleteUser(email) { if(confirm("This user, " + email + ", and associated application will be PERMANTELY deleted, are you sure?")) { document.mainform.submit(); } } function checkDeleteApp() { if(confirm("This application will be PERMANTELY deleted, are you sure?")) { document.mainform.submit(); } } /* 1.1.2: Fixed a bug where trailing . in e-mail address was passing (the bug is actually in the weak regexp engine of the browser; I simplified the regexps to make it work). 1.1.1: Removed restriction that countries must be preceded by a domain, so abc@host.uk is now legal. However, there's still the restriction that an address must end in a two or three letter word. 1.1: Rewrote most of the function to conform more closely to RFC 822. 1.0: Original */ /*