
var CurrentState='';var CurrentCounty='';var CurrentCity='';var CurrentZip='';var showCustomProps=false;var autoResize='false';var IsLoggedIn=true;var pspage_PushpinLayer=null;var pspage_PushpinList=null;var pspage_PushpinTargetLayer=null;var pspage_PushpinTarget=null;var processingRequest=false;this.params=new Object();KeyDown=new function(e){return false;};KeyUp=new function(e){return false;};function keydownCB(e){return false;}
function SetMapCursorWait(){document.getElementById("theMapTop").childNodes[0].style.cursor='wait';}
function SetMapCursorCrosshair(){document.getElementById("theMapTop").childNodes[0].style.cursor='crosshair';}
function SetCursorDefault(){document.getElementById("theMapTop").childNodes[0].style.cursor=''}
function AddressSearch(addressText){if(addressText==''){var varManualSearch=document.getElementById('ctl00_c_varManualSearch');if(varManualSearch!=null&&varManualSearch.value!=''){addressText=varManualSearch.value;}}
addressText=addressText.replace(/"/g,'');if(addressText!=''){$('#SearchBoxTable input.SearchBox').val(addressText);log('Searching for '+addressText);VEFind(addressText);}}
function VEMapMouseOver(e){return true;var map=MDNGetVEMap();if(e.elementID){if(openedInfoBox==null){shape=map.GetShapeByID(e.elementID);ShowPushpinHover(shape);}
else{}}}
function ShowPushpinHover(shape){url='PropertyContext.aspx?propertyid='+shape.PropertyID;var aReq=GetRequestObject();if(aReq){aReq.onreadystatechange=function(){var test='test';if(aReq.readyState==4){$('#'+shape.PinName+'_Content').html(aReq.responseText);$('#PropertyContextImage').lightBox();shape.DescLoaded=true;}}
aReq.open("get",url,true);aReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');aReq.send(null);}else{alert('Cannot load XMLHTTP object');}}
function OnQueryChangeCallback(s){var center=MDNGetVEMap().GetCenter();var extents=MDNGetVEMap().GetMapView();log('Event: '+(mapEnvChangeID-1)+' After Query, Map center '+center+', BottomRight '+extents.BottomRightLatLong+', TopLeft '+extents.TopLeftLatLong);processingRequest=false;SetCursorDefault();if(s){if(s.Error){HandleError(s.Error);$("#savedSearch_container").hide();}
else{document.getElementById("graph_container").innerHTML=s.GraphMarkup;}
if(s.Script){try{eval(s.Script);}catch(ex){window.alert('OnQueryChangeCallback:'+ex);}}}}
function ShowProcessing(){HideAllResultsDivs();$('#processing').show();}
function ShowResults(){HideAllResultsDivs();$('#grid_container').show();$('#savedSearch_container').show();}
function ShowSubscribeNow(){HideAllResultsDivs();$('#RegisterMessage').show();}
function ShowCreateSubNow(){HideAllResultsDivs();$('#CreateSubscriptionMessage').show();}
function ShowAreaTooLarge(){HideAllResultsDivs();$('#areaTooLarge').show();}
function ShowNoPropertiesFound(){HideAllResultsDivs();$('#NoPropertiesFound').show();}
function HideAllResultsDivs(){$('#processing').hide();$('#grid_container').hide();$('#areaTooLarge').hide();$('#NoPropertiesFound').hide();$('#savedSearch_container').hide();$('#RegisterMessage').hide();$('#CreateSubscriptionMessage').hide();}
function DoQueryChange(isShapeChange){ShowProcessing();document.getElementById("graph_container").innerHTML='';ClearPushpins();CallbackMethods.WMOnQueryChange(isShapeChange,showCustomProps,OnQueryChangeCallback);}
function ModifyPropertyList(){showCustomProps=true;DoQueryChange(false);}
function CancelModifyPropertyList(){showCustomProps=false;}
function ShapeChange(err){if(err){HandleError(err);}
else{DoQueryChange(true);}}
function FilterChange(err){if(err){HandleError(err);}
else{DoQueryChange(false);}}
function OnEnvelopeChangeCallback(s){if(s){if(s.Error){HandleError(s.Error);}
if(s.DoQuery||document.getElementById("grid_container").innerHTML.indexOf("Waiting for search results")>0){var center=MDNGetVEMap().GetCenter();var extents=MDNGetVEMap().GetMapView();log('Event: '+(mapEnvChangeID-1)+' Before Query, Map center '+center+', BottomRight '+extents.BottomRightLatLong+', TopLeft '+extents.TopLeftLatLong);DoQueryChange(false);}
else{SetCursorDefault()}
if(s.ThematicIndicesTable){currentCenterPointHash=s.CenterPointHash;document.getElementById("indices_container").innerHTML=s.ThematicIndicesTable;}
if(s.Script){try{eval(s.Script);}catch(ex){window.alert('OnEnvelopeChangeCallback'+ex);}}}}
function HandleError(s){window.alert(s);}
function VEMapMouseClick(e){var vemap=MDNGetVEMap();var shape=vemap.GetShapeByID(e.elementID);if(shape&&shape.GetType()==VEShapeType.Pushpin&&!draggingVeMap){if(shape.GetDescription()=="findMapCenter"){return true;}
var arr=document.getElementById('grid_container').getElementsByTagName('tr');var found=false;for(var n=0;arr&&n<arr.length;n++){var attr=arr[n].getAttribute('propertynumber');if(attr&&attr==shape.pspageRowID){RowHighlight(arr[n],true,true);found=true;break;}}
pspage_currentMouseOverShape=shape;return true;}
return false;}
function VEMapMouseOut(e){var vemap=MDNGetVEMap();var shape=vemap.GetShapeByID(e.elementID);if(shape&&shape.GetType()==VEShapeType.Pushpin){var arr=document.getElementById('grid_container').getElementsByTagName('tr');for(var n=0;arr&&n<arr.length;n++){var attr=arr[n].getAttribute('propertynumber');if(attr&&attr==pspage_currentMouseOverShape.pspageRowID){RowLeave(arr[n]);break;}}
return true;}
return false;}
var draggingVeMap=false;function VEMapMouseDown(e){draggingVeMap=false;}
function VEMapMouseMove(e){draggingVeMap=true;}
function NewPushPinsInit(){var vemap=MDNGetVEMap();if(pspage_PushpinLayer){vemap.DeleteShapeLayer(pspage_PushpinLayer);}
pspage_PushpinLayer=new VEShapeLayer();vemap.AddShapeLayer(pspage_PushpinLayer);pspage_PushpinList=new Array();}
function AddPushPin(theLat,theLon,desc,propName,propNum,propID){var thelatlon=new VELatLong(theLat,theLon);var shp=new VEShape(VEShapeType.Pushpin,thelatlon);shp.SetTitle(propName);shp.SetDescription(desc);shp.SetCustomIcon('<span class="PropertyIcon"><img src="img/prop_icons/propIcon.png"/>'+propNum+'</span>');shp.pspageRowID=propNum;shp.PinName="Pin"+propNum;shp.PropertyID=propID;shp.SetDescription('<span id="'+shp.PinName+'_Content"><img src="Images/spinner.gif" alt="" align="absmiddle" /></span>');pspage_PushpinList[pspage_PushpinList.length]=shp;}
function ClearPushpins(){var vemap=MDNGetVEMap();if(pspage_PushpinLayer){vemap.DeleteShapeLayer(pspage_PushpinLayer);pspage_PushpinLayer=null;pspage_PushpinList=null;}
if(pgpage_CurrentHighlightShape){vemap.DeleteShape(pgpage_CurrentHighlightShape);pgpage_CurrentHighlightShape=null;}}
var pgpage_CurrentHighlightShape=null;var openedInfoBox=null;function SetPushpinHighlight(rowID,isOn){var vemap=MDNGetVEMap();if(pgpage_CurrentHighlightShape){vemap.DeleteShape(pgpage_CurrentHighlightShape);pgpage_CurrentHighlightShape=null;}
if(pspage_PushpinList){for(var n=0;n<pspage_PushpinList.length;n++){if(pspage_PushpinList[n].pspageRowID==rowID){var ll=pspage_PushpinList[n].GetPoints()[0];var pixel=vemap.LatLongToPixel(ll);var arr=new Array();pixel.x=pixel.x-16;pixel.y=pixel.y-16;arr[0]=vemap.PixelToLatLong(pixel);pixel.y=pixel.y+25;arr[1]=vemap.PixelToLatLong(pixel);pixel.x=pixel.x+26;arr[2]=vemap.PixelToLatLong(pixel);pixel.y=pixel.y-25;arr[3]=vemap.PixelToLatLong(pixel);pixel.x=pixel.x-25;arr[4]=vemap.PixelToLatLong(pixel);var shape=new VEShape(VEShapeType.Polyline,arr);shape.SetLineColor(new VEColor(255,0,0,1.0));shape.HideIcon(true);shape.SetZIndex(10000,10000);vemap.AddShape(shape);pgpage_CurrentHighlightShape=shape;if(openedInfoBox!=null){vemap.HideInfoBox(openedInfoBox);}
if(isOn){vemap.ShowInfoBox(pspage_PushpinList[n]);openedInfoBox=pspage_PushpinList[n];ShowPushpinHover(pspage_PushpinList[n]);}
break;}}}}
function AddressSearchComplete(){var vemap=MDNGetVEMap();if(pspage_PushpinTargetLayer){vemap.DeleteShapeLayer(pspage_PushpinTargetLayer);}
pspage_PushpinTargetLayer=new VEShapeLayer();pspage_PushpinTargetLayer.Name='PushpinTargetLayer';var shape=new VEShape(VEShapeType.Pushpin,vemap.GetCenter());shape.SetTitle('Find Location Target');shape.SetDescription('findMapCenter');pspage_PushpinTargetLayer.AddShape(shape);vemap.AddShapeLayer(pspage_PushpinTargetLayer);}
function VEFind(strFindText){MDNGetVEMap().Find(null,strFindText,VEFindType.Businesses,null,0,20,true,true,true,true,AddressSearchComplete);}
function OnLoadPropertySearch(){var found=false;if(CurrentState==''){document.getElementById("searchTrail").style.display='none';}
else{document.getElementById("searchTrail").style.display='';document.getElementById("searchState").innerHTML=CurrentState;}
if(CurrentCounty==''){document.getElementById("searchCounty").innerHTML='';}
else{document.getElementById("searchCounty").innerHTML='&nbsp;&rarr;&nbsp;'+CurrentCounty;}
if(CurrentCity==''){document.getElementById("searchCity").innerHTML='';}
else{document.getElementById("searchCity").innerHTML='&nbsp;&rarr;&nbsp;'+CurrentCity;}
if(CurrentZip==''){document.getElementById("searchZip").innerHTML='';}
else{document.getElementById("searchZip").innerHTML='&nbsp;&rarr;&nbsp;'+CurrentZip;}}
theLayout=null;$(document).ready(function(){WebForm_CallbackComplete=WebForm_CallbackComplete_SyncFixed;MDNSetupVEMap();MDNGetVEMap().SetClientToken(token);IsPropertySearchPage=true;SetupShapeTools();dynLoadScript();var theTabs=$("#tabs").tabs();theTabs.bind('tabsselect',function(event,ui){hidePropertyTrendGraph();});var eastSelector="#mapPane h3";var westSelector="#filtersPane h3";$("<span></span>").addClass("pin-button").prependTo(eastSelector);$("<span></span>").attr("id","east-closer").prependTo(eastSelector);$("<span></span>").addClass("pin-button").prependTo(westSelector);$("<span></span>").attr("id","west-closer").prependTo(westSelector);var tempcurrentRatio=readCookie("currentRatio");if(tempcurrentRatio){currentRatio=tempcurrentRatio;}
var initSizeEast=Math.floor($('body').width()*currentRatio);theLayout=$('#layoutContainer').layout({defaults:{fxName:"slide",fxSpeed:"slow",resizable:true,buttonClass:"button",paneClass:"pane",resizerClass:"resizer",togglerClass:"toggler",buttonClass:"button",fxName:"slide"},east:{size:Math.floor(initSizeEast),spacing_closed:21,togglerLength_closed:0,slideTrigger_open:"mouseover",togglerAlign_closed:"top",togglerLength_open:0,togglerTip_open:"Close Map Pane",togglerTip_closed:"Open Map Pane",resizerTip_open:"Resize East Pane",slideTrigger_open:"mouseover",resizable:true,onresize:"endEastResize();"},west:{size:175,resizable:false,slideTrigger_open:"mouseover",slideTrigger_close:"mouseout",spacing_closed:21,togglerLength_closed:21,togglerAlign_closed:"top",togglerLength_open:0,togglerTip_open:"Close Filters Pane",togglerTip_closed:"Open Filters Pane",resizerTip_open:"Resize West Pane"},north:{resizable:false,closable:false,slidable:false,spacing_open:5},south:{size:20,resizable:false,closable:false,slidable:false,spacing_open:5},center:{onresize:"endCenterResize();"}});theLayout.addPinBtn(westSelector+" .pin-button","west");theLayout.addPinBtn(eastSelector+" .pin-button","east");theLayout.addCloseBtn("#east-closer","east");theLayout.addCloseBtn("#west-closer","west");theLayout.allowOverflow('north');endEastResize();$('#tabs').bind('tabsshow',ResizeTabPanel);$('#loadingDiv').hide();$(window).wresize(updateMapPane);});function startEastResize(){}
var minCenterWidth=480;var minEastWidth=300;function endCenterResize(){}
function endEastResize(){var westWidth=theLayout.panes.west.outerWidth();var eastWidth=theLayout.panes.east.outerWidth();var bodyWidth=$('body').width();var centerWidth=bodyWidth-westWidth-eastWidth-12;if(!isWindowResize){if(centerWidth<minCenterWidth){if(bodyWidth-westWidth-minCenterWidth-12>1){eastWidth=bodyWidth-westWidth-minCenterWidth-12;theLayout.sizePane("east",eastWidth);}}
else if(centerWidth>minCenterWidth&&eastWidth<minEastWidth){var maxExpand=centerWidth-minCenterWidth;if(maxExpand<minEastWidth-eastWidth){eastWidth=eastWidth+maxExpand;}else{eastWidth=minEastWidth;}
theLayout.sizePane("east",eastWidth);}
else{currentRatio=theLayout.panes.east.outerWidth()/$('body').width();createCookie("currentRatio",currentRatio,999);ResizeMapNew();ResizeTabPanel();}}
else{var eastWidth=Math.floor(bodyWidth*currentRatio);isWindowResize=false;theLayout.sizePane("east",eastWidth);}}
function ZoomToSubscriptionShape(){if(subscriptionShape!=null)
MDNGetVEMap().SetMapView(subscriptionShape.GetPoints());}
var subscriptionShape=null;function DrawSubscriptionShape(){if(window.subscriptionPoints){var a=[];for(i=0;i<subscriptionPoints.length;i++){a[a.length]=new VELatLong(subscriptionPoints[i][0],subscriptionPoints[i][1]);}
subscriptionShape=new VEShape(VEShapeType.Polygon,a);subscriptionShape.SetLineWidth(3);subscriptionShape.SetLineColor(new VEColor(0,150,100,1.0));subscriptionShape.SetFillColor(new VEColor(0,150,100,0.1));MDNGetVEMap().AddShape(subscriptionShape);}}
function DrawPoints(thePoints){var a=[];for(i=0;i<thePoints.length;i++){a[a.length]=new VELatLong(thePoints[i][0],thePoints[i][1]);}
var theShape=new VEShape(VEShapeType.Polygon,thePoints);theShape.SetLineWidth(3);theShape.SetLineColor(new VEColor(0,150,100,1.0));theShape.SetFillColor(new VEColor(0,150,100,0.1));MDNGetVEMap().AddShape(theShape);}
function DrawShape(theShape){theShape.SetLineWidth(3);theShape.SetLineColor(new VEColor(0,150,100,1.0));theShape.SetFillColor(new VEColor(0,150,100,0.1));MDNGetVEMap().AddShape(theShape);}
var currentRatio=.333333;var isWindowResize=false;function updateMapPane(){if(theLayout){isWindowResize=true;}
if($.browser.msie&&$.browser.version.substr(0,1)<7){if($(window).innerWidth()<820){$('#bodyDiv').width("825px");}
else{$('#bodyDiv').width("100%");}
if($(window).innerHeight()<600){$('#bodyDiv').height("605px");}
else{$('#bodyDiv').height("100%");}}
return false;}
function ResizeWestContent(){}
function ResizeTabPanel(){if(theLayout!=null){var h=theLayout.panes.east.outerHeight()-$('li.ui-tabs-selected').outerHeight()-16;if($.browser.msie&&$.browser.version.substr(0,1)<7){h=h+6;}
$('div.ui-tabs-panel').height(h);var myHeaderHeight=$('#ResultsHeader').height()+10;var summaryHeight=$('#SummaryPanel').height();var resultsHeader=$('#ResultsPanel .SearchSectionHeader').height();var resultsGridHeader=$('#ResultsPanel .SearchSectionBody .resultGrid').height();var scrollDivHeight=h-summaryHeight-resultsHeader-resultsGridHeader-myHeaderHeight-15;if($.browser.msie&&$.browser.version.substr(0,1)<7){scrollDivHeight=scrollDivHeight-4;}
$('#scrollDiv').height(scrollDivHeight);}}
(function($){$.fn.wresize=function(f){version='1.1';wresize={fired:false,width:0};function resizeOnce(){if($.browser.msie){if(!wresize.fired){wresize.fired=true;}
else{var version=parseInt($.browser.version,10);wresize.fired=false;if(version<7){return false;}
else if(version==7){var width=$(window).width();if(width!=wresize.width){wresize.width=width;return false;}}}}
return true;}
function handleWResize(e){if(resizeOnce()){return f.apply(this,[e]);}}
this.each(function(){if(this==window){$(this).resize(handleWResize);}
else{$(this).resize(f);}});return this;};})(jQuery);var veMap;var showMapModeSwitch=false;function MDNSetupVEMap(){veMap=new VEMap('theMapTop');veMap.LoadMap(null,null,'r',false,VEMapMode.Mode2D,showMapModeSwitch);veMap.Hide3DNavigationControl();veMap.AttachEvent("onchangeview",MDNEnvelopeChangeReady);veMap.EnableShapeDisplayThreshold(false);$('#MSVE_obliqueNotification').html('');veMap.AttachEvent("onclick",VEMapMouseClick);veMap.AttachEvent("onmouseover",VEMapMouseOver);veMap.AttachEvent("onmouseout",VEMapMouseOut);veMap.AttachEvent("onmousedown",VEMapMouseDown);veMap.AttachEvent("onmousemove",VEMapMouseMove);DrawSubscriptionShape();}
function DrawShape(type,points){var shape=new VEShape(type,points);shape.SetLineWidth(3);shape.SetLineColor(new VEColor(0,150,100,1.0));shape.SetFillColor(new VEColor(0,150,100,0.5));AddShapeToMap(shape);}
function AddShapeToMap(shape){MDNGetVEMap().AddShape(shape);}
function MDNGetVEMap(){return veMap;}
var mapEnvChangeID=0;var currentCenterPointHash='';function MDNEnvelopeChangeReady(e){hidePropertyTrendGraph();processingRequest=true;if(e.mapStyle=="b"){return false;}
var theCurrentMap=MDNGetVEMap();var center=theCurrentMap.GetCenter();var extents=theCurrentMap.GetMapView();SetMapCursorWait();var ul=extents.TopLeftLatLong;CallbackMethods.WMEnvelopeChangeEvent(PropertySearchLoadID,mapEnvChangeID++,ul.Longitude,ul.Latitude,center.Longitude,center.Latitude,currentCenterPointHash,theCurrentMap.GetZoomLevel(),OnEnvelopeChangeCallback);}
var GlvDelayedNextPageNo;function WebForm_CallbackComplete_SyncFixed(){for(var i=0;i<__pendingCallbacks.length;i++){callbackObject=__pendingCallbacks[i];if(callbackObject&&callbackObject.xmlRequest&&(callbackObject.xmlRequest.readyState==4)){if(!__pendingCallbacks[i].async){__synchronousCallBackIndex=-1;}
__pendingCallbacks[i]=null;var callbackFrameID="__CALLBACKFRAME"+i;var xmlRequestFrame=document.getElementById(callbackFrameID);if(xmlRequestFrame){xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);}
WebForm_ExecuteCallback(callbackObject);}}}
var qfc_beds_currVal='';var qfc_baths_currVal='';var chkStudioLoftID='ctl00_h_QueryFilterControl1_chkStudioLoft';var chkOneBdrmID='ctl00_h_QueryFilterControl1_chkOneBdrm';var chkTwoBedrmID='ctl00_h_QueryFilterControl1_chkTwoBdrm';var chkThreeBdrmID='ctl00_h_QueryFilterControl1_chkThreeBdrm';var chkFourBdrmID='ctl00_h_QueryFilterControl1_chkFourBdrm';var chkAllBedroomsID='ctl00_h_QueryFilterControl1_chkAllBedrooms';function updateBedsFilter(){var AllBedrooms=false;if(qfc_beds_currVal=='')
AllBedrooms=true;else
qfc_beds_currVal='';var chkStudioLoft=document.getElementById('ctl00_h_QueryFilterControl1_chkStudioLoft');var chkOneBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkOneBdrm');var chkTwoBedrm=document.getElementById('ctl00_h_QueryFilterControl1_chkTwoBedrm');var chkThreeBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkThreeBdrm');var chkFourBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkFourBdrm');var chkAllBedrooms=document.getElementById('ctl00_h_QueryFilterControl1_chkAllBedrooms');if(chkStudioLoft.checked)
qfc_beds_currVal=qfc_beds_currVal+'0,';if(chkOneBdrm.checked)
qfc_beds_currVal=qfc_beds_currVal+'1,';if(chkTwoBedrm.checked)
qfc_beds_currVal=qfc_beds_currVal+'2,';if(chkThreeBdrm.checked)
qfc_beds_currVal=qfc_beds_currVal+'3,';if(chkFourBdrm.checked)
qfc_beds_currVal=qfc_beds_currVal+'4,';if(qfc_beds_currVal!=''&&AllBedrooms)
chkAllBedrooms.checked=false;if(chkAllBedrooms.checked){qfc_beds_currVal='';chkStudioLoft.checked=chkOneBdrm.checked=chkTwoBedrm.checked=chkThreeBdrm.checked=chkFourBdrm.checked=false;}
qfcFilterChange();}
function updateBedroomsDisplay(val){var chkStudioLoft=document.getElementById('ctl00_h_QueryFilterControl1_chkStudioLoft');var chkOneBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkOneBdrm');var chkTwoBedrm=document.getElementById('ctl00_h_QueryFilterControl1_chkTwoBedrm');var chkThreeBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkThreeBdrm');var chkFourBdrm=document.getElementById('ctl00_h_QueryFilterControl1_chkFourBdrm');var chkAllBedrooms=document.getElementById('ctl00_h_QueryFilterControl1_chkAllBedrooms');chkStudioLoft.checked=chkOneBdrm.checked=chkTwoBedrm.checked=chkThreeBdrm.checked=chkFourBdrm.checked=chkAllBedrooms.checked=false;if(val.indexOf('0,',0)>=0)
chkStudioLoft.checked=true;if(val.indexOf('1,',0)>=0)
chkOneBdrm.checked=true;if(val.indexOf('2,',0)>=0)
chkTwoBedrm.checked=true;if(val.indexOf('3,',0)>=0)
chkThreeBdrm.checked=true;if(val.indexOf('4,',0)>=0)
chkFourBdrm.checked=true;if(val=='')
chkAllBedrooms.checked=true;}
var chkOneBdrmID='ctl00_h_QueryFilterControl1_chkOneBathrooms';var chkTwoBedrmID='ctl00_h_QueryFilterControl1_chkTwoBathrooms';var chkThreeBdrmID='ctl00_h_QueryFilterControl1_chkThreeBathrooms';var chkFourBdrmID='ctl00_h_QueryFilterControl1_chkFourBathrooms';var chkAllBedroomsID='ctl00_h_QueryFilterControl1_chkAllBathrooms';function updateBathsFilter(){var AllBathrooms=false;if(qfc_baths_currVal=='')
AllBathrooms=true;else
qfc_baths_currVal='';var chkOneBathrooms=document.getElementById(chkOneBdrmID);var chkTwoBathrooms=document.getElementById(chkTwoBedrmID);var chkThreeBathrooms=document.getElementById(chkThreeBdrmID);var chkFourBathrooms=document.getElementById(chkFourBdrmID);var chkAllBathrooms=document.getElementById(chkAllBedroomsID);if(chkOneBathrooms.checked)
qfc_baths_currVal=qfc_baths_currVal+'1,';if(chkTwoBathrooms.checked)
qfc_baths_currVal=qfc_baths_currVal+'2,';if(chkThreeBathrooms.checked)
qfc_baths_currVal=qfc_baths_currVal+'3,';if(chkFourBathrooms.checked)
qfc_baths_currVal=qfc_baths_currVal+'4,';if(qfc_baths_currVal!=''&&AllBathrooms)
chkAllBathrooms.checked=false;if(chkAllBathrooms.checked){chkOneBathrooms.checked=chkTwoBathrooms.checked=false;chkThreeBathrooms.checked=chkFourBathrooms.checked=false;qfc_baths_currVal='';}
qfcFilterChange();}
function updateBathroomsDisplay(val){var chkOneBathrooms=document.getElementById(chkOneBdrmID);var chkTwoBathrooms=document.getElementById(chkTwoBedrmID);var chkThreeBathrooms=document.getElementById(chkThreeBdrmID);var chkFourBathrooms=document.getElementById(chkFourBdrmID);var chkAllBathrooms=document.getElementById(chkAllBedroomsID);chkOneBathrooms.checked=chkTwoBathrooms.checked=false;chkThreeBathrooms.checked=chkFourBathrooms.checked=chkAllBathrooms.checked=false;if(val.indexOf('1,',0)>=0)
chkOneBathrooms.checked=true;if(val.indexOf('2,',0)>=0)
chkTwoBathrooms.checked=true;if(val.indexOf('3,',0)>=0)
chkThreeBathrooms.checked=true;if(val.indexOf('4,',0)>=0)
chkFourBathrooms.checked=true;if(val=='')
chkAllBathrooms.checked=true;}
function qfcToggleDisplay(id){var elem=document.getElementById(id);var elem_img=document.getElementById('img_'+id);if(elem){switch(elem.style.display){case'none':elem.style.display='block';elem_img.src='Images/rpcIconDownArrow.gif';$(elem_img).attr("alt","Collapse");break;default:elem.style.display='none';elem_img.src='Images/rpcIconLeftArrow.gif';$(elem_img).attr("alt","Expand");break;}}}
function GoToCreateSubscription(){var center=veMap.GetCenter();window.location="SubscriptionSetup.aspx?initLat="+center.Latitude+"&initLong="+center.Longitude;return false;}
function ViewCompReport(){var DDLCompReports=$('.DDLCompReports');var ViewCompReport=$('.ViewCompReport');ViewCompReport.attr("href","Reports/CompReport.aspx?SavedSearchID="+DDLCompReports.val());}