万博客户端ios下载function SetAffiliate(n){$.session.set("affreferrer",n)}function ProcessProperty(n,t,i){var f,e;t==null&&(t=!1);i==null&&(i=0);var r="",u="GotoURL('"+n.URL+"',"+i+","+t+");",o="AddToFavorites('"+n.PropertyID+"',"+t+",false,"+i+");",s="MarkVisited('"+n.PropertyID+"',this);",h="ShowToolMenu(this, '"+n.PropertyID+"', '"+n.PropertyName.replace(/'/g,"\\'")+"','"+n.PropertyPhoneNumber+"',"+n.IsFavorite+","+n.Visited+",'"+n.URL+"',"+t+","+n.OutOfMarket+")";return r+='
....
....
....
.... '+n.PropertyName+"<\/a><\/strong>",r+='
'+n.Address1+", "+n.City+", "+n.State+" "+n.ZipCode+"<\/a><\/span>",r+="<\/div>",r+='
....
<\/div>',r+="<\/div>",r+="<\/div>",r+="<\/div>",r+='
....
....
....
/div>.r
....
....
....
....
'+n.Rent+"<\/span>",r+="<\/div>",r+='
.... ',r+=n.IsFavorite==!0?'##/i>:#<\/i>',r+="<\/a>",t&&(r+=' :'color:#333;'标题='无访问'',r+="<\/i><\/a>"),n.IsSuggested&&(r+='<\/i><\/span>'),f="ShowContactPropertyPopUp('"+n.PropertyID+"','"+n.PropertyName.replace(/'/g,"\\'")+"','"+n.PropertyPhoneNumber+"',"+n.OutOfMarket+");",r+='/i<\/i><\/a>',n.MaximumDogs>0&&n.MaximumCats>0?r+='
<\/div>':n.MaximumDogs>0?r+='
<\/div>':n.MaximumCats>0&&(r+='
<\/div>'),r+="<\/div>",r+="<\/div>",r+='
',SecuredSite?(r+='
.... claim reward<\/a>',r+="<\/div>"),r+="<\/div>",r+="<\/div>",r+="<\/div>",r+="<\/div>",r+='
....
....
....
属性注解:++/h5>r
/div>r Save Note<\/a>',r+="<\/div>",r+="<\/div>",r+="<\/div>",r+"<\/div>"}function ReturnBedBaths(n){var t="";return t+='',t+=parseFloat(n.MaximumBedrooms)==0?n.Beds.replace("0","Studio")+'|<\/span>':parseFloat(n.MaximumBedrooms)==1?n.Beds.replace("0","Studio")+' Bed|<\/span>':n.Beds.replace("0","Studio")+' Beds|<\/span> ',t+=parseFloat(n.Baths)==1?n.Baths+" Bath":n.Baths+" Baths",t+"<\/span>"}function PropertyOver(n,t){var i;if($(n).addClass("OverSearch"),typeof allMarkers!="undefined"){for(i=0;i .r
属性注解:++/h5>Save Note<\/a>";r+="<\/div>";r+='
<\/div>';$("#modPropertyNotes").find(".modal-body").html(r);$("#dNotesProperty_"+n).html(i);$.each(u,function(t,r){i="";var u='
u
u "+r.CreateDateString+" by ";u+=r.ConsultantName!=null?r.ConsultantName:r.CustomerName;u+=":<\/strong>
";u+=r.Content;u+="<\/div>";u+="<\/div>";$("#modPropertyNotes").find(".modal-body").find(".results").append(u);i+='
i
iQQ
";i+=r.ConsultantName!=null?r.ConsultantName:r.CustomerName;i+="<\/div>";i+="
";i+=r.CreateDateString;i+="<\/div>";i+="<\/div>";i+="
iQQ
&#19975;&#21338;&#23458;&#25143;&#31471;&#105;&#111;&#115;&#19979;&#36733;";i+=r.Content;i+="<\/div>";i+="<\/div>";i+="<\/div>";$("#dNotesProperty_"+n).append(i)})},data:u});$("#dNotes_"+n).html(r)}function SaveNote(n,t){var i=$("#tNote_"+n).val(),r={PropertyID:n,Content:i};$.ajax({url:"/Customer/SavePropertyNote",type:"post",dataType:"json",success:function(){ViewNotes(n,t,!1);$("#tNotes_"+n).val("")},data:r})}function GotoURL(n,t,i,r){t!=null&&$.session.set("searchIndex",t);r!=null?$.session.set("popOnReturn",t):$.session.set("popOnReturn",null);$.session.set("isFavorite",i);window.location=n}function PreviousResult(){var n=parseInt($.session.get("searchIndex")),i=JSON.parse($.session.get("searchResults")),t;n!=0&&(n-=1,t=i[n].URL,$.session.set("searchIndex",n),window.location=t,$.session.set("popOnReturn",null))}function NextResult(){var n=parseInt($.session.get("searchIndex")),i=JSON.parse($.session.get("searchResults")),t;n+=1;t=i[n].URL;$.session.set("searchIndex",n);window.location=t;$.session.set("popOnReturn",null)}function BackToResults(){var t=parseInt($.session.get("searchIndex")),n=$.session.get("isFavorite");n==null&&(n=!1);window.location=n=="true"?"/mytools/favorites":"/apartments"}function CheckNavigation(){try{var n=parseInt($.session.get("searchIndex")),t=JSON.parse($.session.get("searchResults")),i=$.session.get("isFavorite");i.toLowerCase()=="true"?($("#aBack").text("Back to Favorites"),$("#aBack").attr("href","/MyTools/Favorites")):($("#aBack").text("Back to Results"),$("#aBack").attr("href","/Apartments"));n==0?($(".previous").click(function(n){n.preventDefault()}).addClass("disabled"),t.length==1&&$(".next").click(function(n){n.preventDefault()}).addClass("disabled")):n==t.length-1&&$(".next").click(function(n){n.preventDefault()}).addClass("disabled")}catch(r){$(".navigationBar").hide()}}function AddToFavorites(n,t,i,r,u){u==null&&(u=2);(CustomerID==null||CustomerID==EmptyGuid||CustomerID=="")&&ShowLoginRegister(u,n);i==null&&(i=!1);r!=null&&$.session.set("searchIndex",r);var f={PropertyID:n};$.ajax({url:"/Customer/AddToFavorites",type:"post",dataType:"json",success:function(r){r.msg=="True"?(GoogleTrackEvent("Add to favorites"),i?$("#aFav"+n).html(' <\/i>'):$("#lightSlider").length>0?$(".favorite").each(function(){$(this).html('<\/i>')}):$("#aFav"+n).html('<\/i>'),FlagFavorite(n,!0,t),SetMapMarkerFavorite(n,!0),i=!1):(i?$("#aFav"+n).html('<\/i>'):$("#lightSlider").length>0?$(".favorite").each(function(){$(this).html('<\/i>')}):$("#aFav"+n).html('<\/i>'),FlagFavorite(n,!1,t),SetMapMarkerFavorite(n,!1))},data:f})}function MarkVisited(n,t){(CustomerID==null||CustomerID==EmptyGuid||CustomerID=="")&&ShowLoginRegister();var i={PropertyID:n,CustomerID:CustomerID};$.ajax({url:"/Customer/MarkAsVisited",type:"post",dataType:"json",success:function(i){i.msg=="True"?($("#aVisited"+n).html('<\/i>').attr("title","Visited").css({color:"green"}),$("#aMarkVisited_"+n).text("Unmark Visited"),$(t).html('<\/i>'),FlagVisited(n,!0)):($("#aVisited"+n).html('<\/i>').attr("title","Not Visited").css({color:"#333"}),$("#aMarkVisited_"+n).text("Mark Visited"),$(t).html('&#19975;&#21338;&#23458;&#25143;&#31471;&#105;&#111;&#115;&#19979;&#36733;<\/i>'),FlagVisited(n,!1))},data:i})}function DoNothing(){return!1}function LogIn(){var n={UserName:$("#tUserName").val(),Password:$("#tPassword").val()};if($("#dLoginActive").show(),$("#tUserName").val()==""||$("#tPassword").val()==""){$("#dLoginError").html("Invalid User Name or Password");$("#dLoginActive").hide();return}$.ajax({url:"/Customer/LogInCustomer",type:"post",dataType:"json",success:function(n){var t=getUrlRedirect();if(n.msg=="Employee"){if(PasswordCheck($("#tPassword"))==!1){window.location="/Home/ChangePassword?redirect=/Admin";return}window.location=t!=null&&t!=""?t:"/Admin"}else if(n.msg=="True")if(propertyIDToFavorite!=EmptyID&&AddToFavorites(propertyIDToFavorite,!1,fromMoreLikeThis),t!=null&&t!=""&&t.substring(0,3)=="htt"){if(window.location=t,PasswordCheck($("#tPassword"))==!1){window.location="/Home/ChangePassword?redirect="+t;return}}else{if(PasswordCheck($("#tPassword"))==!1){window.location="/Home/ChangePassword?redirect="+window.location;return}location.reload()}else if(n.msg.substring(0,3)=="htt"){if(PasswordCheck($("#tPassword"))==!1){window.location="/Home/ChangePassword?redirect="+n.msg;return}window.location=n.msg}else $("#dLoginError").html("Invalid User Name or Password"),$("#dLoginActive").hide()},data:n})}function getUrlRedirect(){var n=decodeURIComponent(window.location.search.substring(1));return n.indexOf("=")<0?null:n.substring(n.indexOf("=")+1,n.length)}function LogOff(){$.ajax({url:"/Customer/LogOffCustomer",type:"post",dataType:"json",success:function(n){n.msg=="True"?window.location="/":alert("An Error Occured Logging Off")},data:{UserName:null,Password:null}})}function PasswordCheck(n){var i=0,u=new RegExp("[A-Z]"),f=new RegExp("[a-z]"),e=new RegExp("[0-9]"),r="",t="required";return t="required",$(n).val().length>7&&(t="complete",i+=1),r+="
  • At least eight characters<\/li>",t="required",$(n).val().match(u)&&(t="complete",i+=1),r+="
  • 内含至少一大例字母/li>.t='equired'$n.val
  • Contains at least one Lower Case Letter<\/li>",t="required",$(n).val().match(e)?(t="complete",i+=1):$(n).val().includes("!")?(t="complete",i+=1):$(n).val().includes("@")?(t="complete",i+=1):$(n).val().includes("#")?(t="complete",i+=1):$(n).val().includes("$")?(t="complete",i+=1):$(n).val().includes("%")?(t="complete",i+=1):$(n).val().includes("^")?(t="complete",i+=1):$(n).val().includes("&")?(t="complete",i+=1):$(n).val().includes("*")?(t="complete",i+=1):$(n).val().includes("_")?(t="complete",i+=1):$(n).val().includes("+")?(t="complete",i+=1):$(n).val().includes("=")?(t="complete",i+=1):$(n).val().includes("-")&&(t="complete",i+=1),r+="
  • 内含至少以下之一: