
﻿
var PUSHPIN_ICON="images/fp.gif";var PUSHPIN_ICON_CLUSTER="images/fp.gif";var PUSHPIN_ICON2="images/fp.gif";var PUSHPIN_ICON_CLUSTER2="images/fp.gif";SearchManager.prototype.CreateRow=function(location,count){var rowTemplate=new TemplateManager(null,null);var phoneNumber=rowTemplate.Phone(location.Phone);var nameText="";if(location.FirstName)
nameText+=location.FirstName;if(location.LastName)
nameText+=" "+location.LastName;if(phoneNumber!=null&phoneNumber!="")
nameText+=" - <span>"+phoneNumber+"</span>";var addressText=rowTemplate.FormatAddress(location);this.AddLocationRow(location.UniqueId,nameText,addressText,null,count);}
SearchManager.prototype.GenerateSearchFilters=function(latlong){var firstName=document.getElementById(FirstNameTextbox).value;var lastName=document.getElementById(LastNameTextbox).value;var language=document.getElementById("languageSelect").value;var province=document.getElementById("provinceSelect").value;if(firstName==FirstNameText)
firstName="";if(lastName==LastNameText)
lastName="";if(language==LanguageSpokenText)
language="";if(province==""||province==ProvinceText)
province=null;else
province=document.getElementById("provinceSelect")[document.getElementById("provinceSelect").selectedIndex].text;var searchSpec=new SearchSpecification();searchSpec.Type=LOBType;searchSpec.Location=latlong;searchSpec.Subdivision=province;searchSpec.Language=language;searchSpec.FirstName=firstName;searchSpec.LastName=lastName;if(latlong||lastName!=""||firstName!=""||language!=""||province!=null)
searchManager.SearchLocations(searchSpec);}
TemplateManager.prototype.ShowContent=function(){var location=contactCardManager.GetLocation();if(location.Background)
document.getElementById("FPBackgroundSectionDefault").style.display="none";else
document.getElementById("FPBackgroundSectionDefault").style.display="block";}
TemplateManager.prototype.Phone=function(value){return this.FormatPhone(value);}
TemplateManager.prototype.Cell=function(value){return this.FormatPhone(value);}
TemplateManager.prototype.Fax=function(value){return this.FormatPhone(value);}
SearchManager.prototype.RefreshAllSearchFields=function(){document.getElementById(FirstNameTextbox).value="";document.getElementById(LastNameTextbox).value="";$find(FirstNameWaterMark)._onBlur();$find(LastNameWaterMark)._onBlur();}