function addToFavorites(url,title){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}else if(window.opera&&window.print){return true;}}function returnFalse(s){newSearch(document.forms[0].Query);return false;}function doSearch(s,col){var strLoc=''if(col=='cbic'){strLoc="http://search.palmettogba.com/cbic/query.html?col=cbic&qt="}else{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 newSearch(s){var strLoc=''var c_value="";for(var i=0;i<document.forms[0].tmpSearch.length;i++){if(document.forms[0].tmpSearch[i].checked){c_value=c_value+document.forms[0].tmpSearch[i].value+"&";}}if(c_value=="&"){col="col=pgbaprod"}strLoc="http://search.palmettogba.com/palmettogba/query.html?"+c_value+"ht=717741247&qp=&qt="window.location.href=strLoc+replace(s.value," ","+");}function replace(string,text,by){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){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)){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){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=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=450,height=700');}function feedback(url){remote=window.open(url,'remotewin','width=820,height=650,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,'ivrwin','location=0,status=0,scrollbars=1,width=770,height=400,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].style.height='0';window.document.images[i].style.width='0';window.document.images[i].alt='  ';}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('foreSee').src='/palmetto/providers.nsf/LogForesee?open';}function checkURL(){var lnks=document.getElementsByTagName('A')var internalLinks=new Array();internalLinks[0]=window.location.host;internalLinks[1]="('/";internalLinks[2]="toggle";internalLinks[3]="javascript:window.print()"internalLinks[4]="mailto"internalLinks[5]="http://pdfmyurl.com/?url="var flag="external"for(i=0;i<lnks.length;i++){flag="external"for(x=0;x<=internalLinks.length;x++){if(lnks[i].href.indexOf(internalLinks[x])>-1){flag="internal"}}if(flag=="external"){lnks[i].target="_blank"}}}function alternate(id){try{if(document.getElementsByTagName){var table=document.getElementById(id);if(document.getElementById(id)){var rows=table.getElementsByTagName("tr");for(i=0;i<rows.length;i++){if(i%2==0){rows[i].className="even";}else{rows[i].className="odd";}}}}}catch(e){}}function rightString(fullString,subString){if(fullString.indexOf(subString)==-1){return"";}else{return(fullString.substring(fullString.indexOf(subString)+subString.length,fullString.length));}}var state='none';function showhide(layer_ref){if(state=='block'){state='none';}else{state='block';}if(document.all){eval("document.all."+layer_ref+".style.display = state");}if(document.layers){document.layers[layer_ref].display=state;}if(document.getElementById&&!document.all){hza=document.getElementById(layer_ref);hza.style.display=state;}}function toggle(obj,caller){var el=document.getElementById(obj);var call=document.getElementById(caller);var myDiv=document.getElementById("mainnav");var inputArr=myDiv.getElementsByTagName("div");for(var i=0;i<inputArr.length;i++){if(inputArr[i].id==el.id){}else{inputArr[i].style.display='none'};call.style.background=(el.style.display!='none'?'#F1F1E5':'#CECEC6');}var inputArr=myDiv.getElementsByTagName("li");for(var i=0;i<inputArr.length;i++){inputArr[i].style.background='white'}call.style.background=(el.style.display!='none'?'white':'#e3e3d4');call.style.borderRight=(el.style.display!='none'?'0px':'1px #cccccc dotted');el.style.borderBottom=(el.style.display!='none'?'0px':'1px #cccccc dotted');call.style.width=(el.style.display!='none'?'215px':'215px');el.style.background=(el.style.display!='none'?'white':'#f1f1e5');el.style.display=(el.style.display!='none'?'none':'block');}function toggle2(obj2){var el2=document.getElementById(obj2);el2.style.display=(el2.style.display!='none'?'none':'block');}Date.prototype.adjust=function(yr,mn,dy,hr,mi,se){var m,t;this.setYear(this.getFullYear()+yr);m=this.getMonth()+mn;if(m!=0)this.setYear(this.getFullYear()+Math.floor(m/12));if(m<0){this.setMonth(12+(m%12));}else if(m>0){this.setMonth(m%12);}t=this.getTime();t+=(dy*86400000);t+=(hr*3600000);t+=(mi*60000);t+=(se*1000);this.setTime(t);}function CompareDates(){var tbl=document.getElementById('records')if(tbl){var tblnum=tbl.rows.lengthvar date2=new Date();date2.adjust(0,0,-7,0,0,0)var x=parseInt(tblnum)for(i=1;i<=x;i++){var str1=document.getElementById("date"+i).innerHTML;var mon1=parseInt(str1.substring(0,2),10)-1;var dt1=parseInt(str1.substring(3,5),10);var yr1=parseInt(str1.substring(6,10),10);var date1=new Date(yr1,mon1,dt1);if(date2<=date1){document.getElementById("title"+i).innerHTML=document.getElementById("title"+i).innerHTML+'<span style="color:#993333; font-size:9px">   New!</span>'}}}}
