/*////////////////////////////////////////////////////////////
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'3') {data=data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&tz='+ntz.getTimezoneOffset()+'&je='+ navigator.javaEnabled()};
i=new Image();i.src=nhp+'://counter.hitslink.com/statistics.asp'+
'?v=1&s=201&acct=1325firstl'+data+'&tks='+d.getTime();
// StatGuage
var ns_data,ns_hp,ns_tz,ns_rf,ns_sr,ns_img,ns_pageName;
ns_pageName= location.pathname;
document.cookie='__support_check=1';ns_hp='http';
ns_rf=document.referrer;ns_sr=window.location.search;
ns_tz=new Date();if(location.href.substr(0,6).toLowerCase() == 'https:')
ns_hp='https';ns_data='&an='+escape(navigator.appName)+
'&sr='+escape(ns_sr)+'&ck='+document.cookie.length+
'&rf='+escape(ns_rf)+'&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+'&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+'&pg='+escape(ns_pageName);
ns_data=ns_data+'&cd='+screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&tz='+ns_tz.getTimezoneOffset()+'&je='+ navigator.javaEnabled();
ns_img=new Image();ns_img.src=ns_hp+'://tracker.statgauge.com/statistics.aspx'+
'?v=1&s=213&acct=176833'+ns_data+'&tks='+ns_tz.getTime();
function trackClick(member_id)
{
var img = new Image();
img.src = '/admin/click_track.php?memberID='+member_id+'&rndID='+Math.random();
}
// Multiple Onload Functions to be called
function multipleOnload() {
externalLinks();
inputFocus();
}
window.onload = multipleOnload;