/*//////////////////////////////////////////////////////////// JavaScript Code Library Developed by GrafX Design Division Pty Ltd http://www.grafx.com.au Last Checked In By : Richard Czeiger Public Revision No : 1.0 The software and related user documentation are protected under copyright laws and remain the sole property of GrafX Design Division. Full license is available on the GrafX Design Division web site or in the original download. Technical support is available via the GrafX web site at http://www.grafx.com.au ////////////////////////////////////////////////////////////*/ // Get the hacked stylesheet document.write(''); // Suppress JavaScript Errors window.onerror=new Function("return true") // Set the Status Bar Message var statusMsg = 'Notary Locator'; window.defaultStatus=statusMsg; // Fixes IE6 CSS Rendering Bug if (document.all && window.attachEvent) window.attachEvent("onload", fixWinIE); function fixWinIE() { if (document.body.scrollHeight < document.body.offsetHeight) { document.body.style.display = 'block'; } } // Spam Suppression for Emails function stopSpam(name, domain, subject) { var symbol = '@'; // Took out the Subject due to MS fault in Outlook Express (Source - http://support.microsoft.com/kb/q182985/ ) // document.write('' + name + symbol + domain + ''); document.write('' + name + symbol + domain + ''); } // Roll Over Nav sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i 0) { begin = document.cookie.indexOf(NameOfCookie+"="); if(begin != -1) { // our cookie was set. // The value stored in the cookie is returned from the function begin += NameOfCookie.length + 1; end = document.cookie.indexOf(";",begin); if(end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin,end)); } } return null; // Our cookie was not set. // The value "null" is returned from the function } function delCookie(NameOfCookie) { // The function simply checks if the cookie is set. If so expiredate is set to Jan. 1st 1970 if(getCookie(NameOfCookie)) { document.cookie = NameOfCookie +"=" + ";expires= Thu, 01-Jan-70 00:00:01 GMT"; } } // Form Validation function checkform(of) { // Test if DOM is available and there is an element called required if(!document.getElementById || !document.createTextNode){return;} if(!document.getElementById('required')){return;} // Define error messages and split the required fields var errorID='errormsg'; var errorClass='error' var errorMsg='Please enter or change the fields marked with a '; var errorImg='images/alert.gif'; var errorAlt='Error'; var errorTitle='This field has an error!'; var reqfields=document.getElementById('required').value.split(','); // Cleanup old mess // if there is an old errormessage field, delete it if(document.getElementById(errorID)) { var em=document.getElementById(errorID); em.parentNode.removeChild(em); } // remove old images and classes from the required fields for(var i=0;i