function returnFalse(s){ doSearch(document.forms[0].Query, document.forms[0].colValue.value);return false;}function doSearch (s, col) {var strLoc=''if (col=='') {col="col=pgbaprod"}strLoc = "http://search.palmettogba.com/palmettogba/query.html?"+col+"&ht=717741247&qp=&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=500,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=750,height=650,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=450,height=700');}function feedback(url) { remote = window.open(url,'remotewin','width=790,height=700,scrollbars=YES,menubar=1'); remote.location.href = url; if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; }function AppOpen(url) { remote = window.open(url,'appwin','location=0,status=0,width=780,height=800,scrollbars=Yes'); remote.location.href = url; if (remote.opener == null) remote.opener = window; remote.opener.name = 'opener'; } function fixAlt() {x=window.document.images.length	for (i=0; i<x; i++) {	 var altText = window.document.images[i].alt; 		 if (altText=="" || altText==" ") {		 window.document.images[i].alt="blank spacer"		 }	}}function removePlus() {x=window.document.images.length for (i=0; i<x; i++) { var altText = window.document.images[i].alt;    if (altText.indexOf('Show details for [') == 0 && altText.indexOf('td id')>0) {   window.document.images[i].src = '/clear.gif';   window.document.images[i].style.height = '0';   window.document.images[i].style.width = '0';   window.document.images[i].alt = '\uF00D  ';   }    var srcText=window.document.images[i].src;    var nextText="";    if (i+1 < x) {    var nextText=window.document.images[i+1].src;    }   if (srcText.indexOf('/icons/ecblank.gif') > 0 && nextText.indexOf('plusminus') < 0) {      window.document.images[i].style.width = '0';      }   }}function logIP(){  document.getElementById('foreSeeframe').src='/palmetto/providers.nsf/LogForesee?open';}