function returnFalse(s){ doSearch(s);return false;}function doSearch ( s ) {var strLoc=''strLoc = "http://search.palmettogba.com/cbic/query.html?col=cbic&qt="window.location.href= strLoc+ replace(s.value," ","+");}function replace(string,text,by) {      // Replaces text with by in string      var strLength = string.length, txtLength = text.length;      if ((strLength == 0) || (txtLength == 0)) return string;      var i = string.indexOf(text);      if ((!i) && (text != string.substring(0,txtLength))) return string;      if (i == -1) return string;      var newstr = string.substring(0,i) + by;      if (i+txtLength < strLength)          newstr += replace(string.substring(i+txtLength,strLength),text,by);      return newstr;  }function setForm() {thisform = document.forms[document.forms.length - 1];}function setlinks(p, v, n) {      //This function takes a url paramater named p and appends the pair p=v to the end of a url string    //Also takes into account internal page links, preserves them, and moves to end of new url string    var alerted = false;    var lp = p.toLowerCase();    for (var i = n; i < document.links.length; i++) {        var strHost = location.hostname;        var strQuestion = '';        if (document.links[i].protocol == 'http:' && (document.links[i].hostname == strHost)) {            //Use the search property of the link object to append the view parameter            if (document.links[i].search.indexOf('?') == -1 && document.links[i].href.indexOf('!') == -1) {                strQuestion = '?Open';            }            if (document.links[i].href.toLowerCase().indexOf('&'+lp+'=') < 0) {                 if (document.links[i].href.indexOf('#') > -1) {                    //The link has an internal reference, preserve it and put on end of url                    document.links[i].href = document.links[i].href  + strQuestion + '&'+lp+'=' + v + document.links[i].href.substr(document.links[i].href.indexOf('#')+1);                } else {				 document.links[i].href = document.links[i].href + strQuestion+ '&'+lp+'=' + v;                }            }        }    }}function makeRemote3(url) { remote = window.open(url); remote.location.href = url;     if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; } function SystemStatus(url) { remote = window.open(url,'systemstatuswin','width=350,height=500,scrollbars=YES'); remote.location.href = url; if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; } function makeRemote2(url) { remote = window.open(url,'remotewin','width=600,height=600,scrollbars=YES');remote.location.href = url; if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; } function ClaimForms(url) { remote = window.open(url,'remotewin','width=700,height=700,scrollbars=YES');remote.location.href = url; if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; } function newWin(url) {window.open (url, 'mywindow','location=0,status=0,scrollbars=0,width=336,height=700');}