function searchBoxSelection(select){var searchBox=document.getElementById('searchBox');if(select){if(searchBox.value=='Enter Location, Zip or MLS#')
searchBox.value='';}
else{if(searchBox.value.length<1)
searchBox.value='Enter Location, Zip or MLS#';}}
function changeSearchBoxBack(showOrHide)
{if(showOrHide=='show')
$('search-window').className="btnShow";else
$('search-window').className="btnHide";}
function slideElementRegisterPopup(el,direction){if(direction=="up"){new Effect.SlideUp(el);}
else if(direction=="down"){new Effect.SlideDown(el);}
else{alert("wrong parameter input");}}
function setSearchRegionAndSubmit(element)
{var location=jQuery(element).attr('title');jQuery('#propertyRegionfooter').val(location);jQuery('#searchformfooter').submit();}
function safe_sumbit_form(form)
{var hdn=document.createElement("input");hdn.setAttribute("type","hidden");hdn.setAttribute("value",window.location.href);hdn.setAttribute("name","SFS");form.appendChild(hdn);}
function logoutUser(){jQuery('#logout_form').submit();}
function getPropertyFloorPlanImage(){var jqAsmxRequest=jQuery.ajax({type:'POST',dataType:'json',contentType:'application/json; charset=utf-8',url:asmxUrl+'/GetFloorPlanImage',data:'{"fullTmk": '+TMKFULL+' }',success:getPropertyFloorPlanImageSuccess,error:function(){postbackInProgress=false;}});}
function getPropertyFloorPlanImageSuccess(data)
{if(data.d){$('ListingMain_imgFloorPlan').src="/Search/images/sketch/"+TMKFULL+".jpg";$('ListingMain_lblLegend').update(data.d);}
else
{$('ListingMain_imgFloorPlan').src="/Search/images/no-service.jpg";$('ListingMain_lblLegend').update("");}}
