function new_window(placeToGo,width,height){window.open(placeToGo,'newWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height+',left=15,top=25');return false;}
function goToBranch(placeToGo,section){var folder;if(section=='about'){folder='/about_us/branch_offices/';}
else if(section=='contact'){folder='/about_us/contact/branch_offices/';}
else{folder='/about_us/branch_offices/';}
opener.location.href=folder+'branch.cfm?branchID='+placeToGo;self.close();return false;}
function updateLink(destination){var countyIDindex=document.getElementById("countyID");var countyIDnumber=countyIDindex.selectedIndex;var countyIDvalue=countyIDindex[countyIDnumber].value;var branchRegionName=document.getElementById("branchRegionName").value;if(document.getElementById("branchRegionID")){var branchRegionID=document.getElementById("branchRegionID");branchRegionID=branchRegionID.value;}
var querystring="?countyID="+encodeURIComponent(countyIDvalue)+"&branchRegionName="+encodeURIComponent(branchRegionName);if(branchRegionID){querystring=querystring+"&branchRegionID="+branchRegionID;}
if(destination=='edit')
{destination='edit_branch_map.cfm';}
else if(destination=='add')
{destination='add_branch_map.cfm';}
else
{destination='';}
document.getElementById("updateMapLink").innerHTML="<a href=\"/updater/branches/regions/"+destination+querystring+"\">Select new position</a>";return;}
function P7_eqA2(el,p,pt){var sp=10,inc=20,g=document.getElementById(el);np=(p>=pt)?pt:p;g.style.paddingBottom=np+"px";if(np<pt){np+=inc;setTimeout("P7_eqA2('"+el+"',"+np+","+pt+")",sp);}}
function P7_colH2(){var i,oh,h=0,tg,el,np,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){for(i=1;i<dA.length;i+=2){dA[i+1].style.paddingBottom='';}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=1;i<dA.length;i+=2){oh=dA[i].offsetHeight;if(oh<h){np=h-oh;if(!an&&dA[0]==1){P7_eqA2(dA[i+1].id,0,np);}else{dA[i+1].style.paddingBottom=np+"px";}}}document.p7eqa=1;document.p7eqth=document.body.offsetHeight;document.p7eqtw=document.body.offsetWidth;}}
function P7_eqT2(){if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){P7_colH2();}}
function P7_equalCols2(){var c,e,el;if(document.getElementById){document.p7eqc=new Array();document.p7eqc[0]=arguments[0];for(i=1;i<arguments.length;i+=2){el=null;c=document.getElementById(arguments[i]);if(c){e=c.getElementsByTagName(arguments[i+1]);if(e){el=e[e.length-1];if(!el.id){el.id="p7eq"+i;}}}if(c&&el){document.p7eqc[document.p7eqc.length]=c;document.p7eqc[document.p7eqc.length]=el}}
setInterval("P7_eqT2()",10);}
readDefaultStyle();}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else{expires="";}
document.cookie=name+"="+value+expires+"; path=/";}
function setActiveStyleSheet(title){var i,a,main;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")){a.disabled=true;if(a.getAttribute("title")==title)
{if(document.getElementById("smallText")&&document.getElementById("mediumText")&&document.getElementById("largeText")){document.getElementById("smallText").src="http://www.combk.com/images/buttons/font_s_off.gif";document.getElementById("mediumText").src="http://www.combk.com/images/buttons/font_m_off.gif";document.getElementById("largeText").src="http://www.combk.com/images/buttons/font_l_off.gif";switch(title)
{case"default":document.getElementById("smallText").src="http://www.combk.com/images/buttons/font_s_on.gif";break;case"medium":document.getElementById("mediumText").src="http://www.combk.com/images/buttons/font_m_on.gif";break;case"large":document.getElementById("largeText").src="http://www.combk.com/images/buttons/font_l_on.gif";break;}}
a.disabled=false;createCookie("style",title,365);}}}}
function getActiveStyleSheet(){var i,a;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled){return a.getAttribute("title");}}
return null;}
function getPreferredStyleSheet(){var i,a;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title")){return"default";}}
return null;}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;}
function readDefaultStyle(){var cookie=readCookie("style");if(cookie!='Null'){var title=cookie?cookie:getPreferredStyleSheet();setActiveStyleSheet(title);createCookie("style",title,365);}
else{setActiveStyleSheet('default');createCookie("style",'default',365);}}
window.onunload=function(e){var title=getActiveStyleSheet();createCookie("style",title,365);};var cookie=readCookie("style");if(cookie!='Null'){var title=cookie?cookie:getPreferredStyleSheet();setActiveStyleSheet(title);}
else{setActiveStyleSheet('default');}
function removeBreaksFromCFMError() { var diagnosticsInfo = document.getElementById("diagnosticsInfo").innerHTML; diagnosticsText = encodeURIComponent(diagnosticsInfo.replace( new RegExp( "\\n", "g" ),"")); document.getElementById("diagnosticsInfo").innerHTML = "<input type=\"hidden\" name=\"diagnostics\" value=\""+diagnosticsText+"\">"; return;}