function cityCheck(){if(document.locations.menu.value="--"){alert("Please select a city or state");return false}else{return true}}var viewRegion=function(setTo){var currentSeason="Winter";var currentYear=new Date().getFullYear();var today=new Date(),march20NextYear=new Date(currentYear+1,2,20),march20CurrentYear=new Date(currentYear,2,20),june21=new Date(currentYear,5,21),september23=new Date(currentYear,8,23),december22=new Date(currentYear,12,22),december22PreviousYear=new Date(currentYear-1,11,22),december22CurrentYear=new Date(currentYear,11,22);var currentsoutheastPestThreat='<a href= "/locations/southeast"> Southeast Pest Threat</a>';var currentMidwestPestThreat='<a href= "/locations/midwest"> Midwest Pest Threat</a>';var currentnortheastPestThreat='<a href= "/locations/northeast"> Northeast Pest Threat</a>';var currentSouthwestpestThreat='<a href= "/locations/southwest">  Sothwest Pest Threat</a>';var currentWestPestThreat='<a href= "/locations/west"> West Pest Threat</a>';if((today>=march20CurrentYear)&&(today<june21)){currentSeason="Spring"}else{if((today>=june21)&&(today<september23)){currentSeason="Summer"}else{if((today>=september23)&&(today<december22)){currentSeason="Fall"}else{if(((today>=december22PreviousYear)&&(today<march20CurrentYear))||((today>=december22CurrentYear)&&(today<march20NextYear))){currentSeason="Winter"}else{currentSeason="Fall"}}}}var southeast=["Southeast&mdash;"+currentSeason+" season",currentsoutheastPestThreat];var northeast=["Northeast&mdash;"+currentSeason+" season",currentnortheastPestThreat];var midwest=["Midwest&mdash;"+currentSeason+" season",currentMidwestPestThreat];var southwest=["Southwest&mdash;"+currentSeason+" season",currentSouthwestpestThreat];var west=["West&mdash;"+currentSeason+" season",currentWestPestThreat];var regionSelect=document.getElementById("region"),regionTitle=document.getElementById("regionTitle"),regionMap=document.getElementById("map"),pestThreatUrl=document.getElementById("pestThreatUrl");selectedRegion=(setTo)?setTo:regionSelect.options[regionSelect.selectedIndex].value;if(selectedRegion=="--"){selectedRegion="southeast"}regionTitle.innerHTML=eval(selectedRegion)[0];regionMap.src="/images/misc/regions/"+selectedRegion+"_154x102.gif";regionMap.alt=eval(selectedRegion)[4];pestThreatUrl.innerHTML=eval(selectedRegion)[1];if(regionSelect.value=="latinamerica"){regionMap.src="/images/misc/regions/latinamerica_154x102.png"}Set_Cookie("region",selectedRegion,365);if(regionSelect.value=="canada"||regionSelect.value=="ireland"||regionSelect.value=="latinamerica"||regionSelect.value=="middleeastregion"||regionSelect.value=="southkorea"||regionSelect.value=="turkey"||regionSelect.value=="china"||regionSelect.value=="cyprus"||regionSelect.value=="jamaica"||Get_Cookie("region")=="canada"||Get_Cookie("region")=="ireland"||Get_Cookie("region")=="latinamerica"||Get_Cookie("region")=="middleeastregion"||Get_Cookie("region")=="cyprus"||Get_Cookie("region")=="jamaica"||Get_Cookie("region")=="china"||Get_Cookie("region")=="turkey"||Get_Cookie("region")=="southkorea"){document.getElementById("us-cities").style.display="none";document.getElementById("us-button").style.display="none";document.getElementById("international-cities").style.display="inline";document.getElementById("international-button").style.display="inline"}else{document.getElementById("us-cities").style.display="inline";document.getElementById("us-button").style.display="inline";document.getElementById("international-cities").style.display="none";document.getElementById("international-button").style.display="none"}};function setRegionDropdown(a){document.getElementById("region").value=a}if(Get_Cookie("region")==null){viewRegion("southeast");setRegionDropdown("southeast")}else{viewRegion(Get_Cookie("region"));setRegionDropdown(Get_Cookie("region"))}function Set_Cookie(d,e,b){if(b){var a=new Date();a.setTime(a.getTime()+(b*24*60*60*1000));var c="; expires="+a.toGMTString()}else{var c=""}document.cookie=d+"="+e+c+"; path=/"}function Get_Cookie(d){var a=document.cookie.split(";");var b="";var e="";var f="";var c=false;for(i=0;i<a.length;i++){b=a[i].split("=");e=b[0].replace(/^\s+|\s+$/g,"");if(e==d){c=true;if(b.length>1){f=unescape(b[1].replace(/^\s+|\s+$/g,""))}return f;break}b=null;e=""}if(!c){return null}};
