function emailCheck(B){var Q=/^(.+)@(.+)$/;var O="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]'";var J="[^\\s"+O+"]";var D='("[^"]*")';var P=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var A=J+"+";var N="("+A+"|"+D+")";var K=new RegExp("^"+N+"(\\."+N+")*$");var F=new RegExp("^"+A+"(\\."+A+")*$");var C=B.match(Q);if(C==null){alert("Email address seems incorrect, there are too many '@' characters or no '@' character, or no '.' in the address. Make sure you have entered your complete address, i.e. 'yourname@server.ext'");return false}var R=C[1];var S=C[2];if(R.match(K)==null){alert("The username in your email address doesn't seem to be valid. Please make sure your complete, correct email address is entered.");return false}var I=S.match(P);if(I!=null){for(var L=1;L<=4;L++){if(I[L]>255){alert("Destination IP address (numeric email address) is invalid!");return false}}return true}var G=S.match(F);if(G==null){alert("The domain name (the '@x.x' part of the email address) doesn't seem to be valid. Make sure you have entered your complete, accurate email address, in the format 'name@server.ext'");return false}var H=new RegExp(A,"g");var E=S.match(H);var M=E.length;if(E[E.length-1].length<2||(E[E.length-1].length>4&&E[E.length-1].toUpperCase()!="MUSEUM")){alert("The address must end in a two, three, or four-letter domain (like .uk, .com, .edu, .info, etc.) - Please make sure you entered your email address correctly.");return false}if(M<2){alert("Your email address appears to be missing a hostname, please make sure you have entered your complete email address.");return false}return true}function postUser(){if(emailCheck(document.f1.email.value)==false){return document.f1.email}else{document.f1.submit()}}function checkRadio(B){var A=0;for(r=0;r<B.length;r++){if(B[r].checked!=false){A=1;return A}}return A}function checkdate(propname,proptype,active){var strdate;var RegExPattern=/^(?=\d)(?:(?:(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[1,3-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})|(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))|(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2}))($|\ (?=\d)))?(((0?[1-9]|1[012])(:[0-5]\d){0,2}(\ [AP]M))|([01]\d|2[0-3])(:[0-5]\d){1,2})?$/;if(proptype==17){strdate=eval("document.f1."+propname+"month.value")+"/"+eval("document.f1."+propname+"date.value")+"/1900"}if(proptype==16){strdate=eval("document.f1."+propname+"month.value")+"/"+eval("document.f1."+propname+"date.value")+"/"+eval("document.f1."+propname+"year.value")}if(((strdate=="-1/-1/-1")||(strdate=="-1/-1/1900"))&&(parseInt(active)!=2)){return true}else{if(!(strdate.match(RegExPattern))){return false}else{return true}}}function selectAll(C){var B=document.f1.ct0.checked;for(var A=0;A<document.f1.length;A++){if(document.f1[A].type=="checkbox"&&document.f1[A].name.slice(0,3)=="sub"){document.f1[A].checked=B}}};