");} function gaadslotroommates300x100top1(msid, subid) { document.write("
");} function gaadsenseslot1(msid, subid) { document.write("
");} function gaadsenseslot2(msid, subid) { document.write("
");} function gaslothpsr1(msid, subid) { document.write("
");} function gaslothpsr2(msid, subid) { document.write("
");} function gaslotrossr1(msid, subid) { document.write("
");} function gaslotrossr2(msid, subid) { document.write("
");} function gaslotsr2(msid, subid) { document.write("
");} function gaslotallbtf1(msid, subid) { document.write("
");} function gaslotatf1(msid, subid) { document.write("
");} function gaslotbtf1(msid, subid) { document.write("
");} function gaslotbtf2(msid, subid) { document.write("
");} function gaslotbtf3(msid, subid) { document.write("
");} function gaadsenseslot160X600(msid, subid) { document.write("
");} function gaslotallws160X600(msid, subid) { document.write("
");} function gaslotrossrpu(msid, subid) { document.write("");} function gaslot300X100(msid, subid) { document.write("
");} function gaslot728x90(msid, subid) { document.write("
");} function gaslotmob300x100(msid, subid) { document.write("
");} function gaslot728x90new(msid, subid) { document.write("
");} function gaslot728x90desk(msid, subid) { document.write("
");} function gaslot1x1(msid, subid) { document.write("
");} /* Google Ads End */ var pageFilterValues = { service: '', locationtype: '', reqType: '', rentalType: '', noOfBedRooms: '', minPrice: '', maxPrice: '', leaseType: '', attachedBath: '', minArea: '', maxArea: '', radius: '', sortOption: '', selLat: '', selLong: '', Address: '', usertype: '', roomtype: '', gender: '', cityurl: '', metrourl: '', stateurl: '', searchpage: '', availablefrom: '', university: '', universityid: '', universityurl: '', neighbourhood: '', neighbourhoodid: '', neighbourhoodurl: '', pets: '', occupation: '', age: '', accommodation: '' };var selectedFilterValues = { service: '', locationtype: '', reqType: '', rentalType: '', noOfBedRooms: '', minPrice: '', maxPrice: '', leaseType: '', attachedBath: '', minArea: '', maxArea: '', radius: '', sortOption: '', selLat: '', selLong: '', Address: '', usertype: '', roomtype: '', gender: '', cityurl: '', metrourl: '', stateurl: '', searchpage: '', availablefrom: '', university: '', universityid: '', universityurl: '', neighbourhood: '', neighbourhoodid: '', neighbourhoodurl: '', pets: '', occupation: '', age: '', accommodation: '' };var premiumadspageno = 1, btnclick = false; function closeRefineSearch() { $SUL('#openRefineSearch').attr('class', 'hide'); $SUL('#searchButOne').attr('class', 'searchbtn');} function selectUserNeed(userReqType) { hideSubFilter(); $SUL('#leaseType').val(""); $SUL('#leaseTypeD').val("Any"); if (userReqType == "roomWanted" || userReqType == "i-need-a-room") { $SUL("#roommatesSellerType,#roommatesSellerTypeM").removeClass("hide"); $SUL("#roommatesGenderType,#roommatesGenderTypeM").removeClass("hide"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#roommatesAttachedBath,#roommatesAttachedBathM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("hide"); $SUL("#rentalsSquarefeetMap").removeClass("hide").addClass("hide"); $SUL("#divoccupationtype,#divagetype,#divagetypeM,#divoccupationtypeM").removeClass("hide"); $SUL("#wdivoccupationtype,#wdivoccupationtypeM").addClass("hide"); $SUL("#divaccommodationtype,#divaccommodationtypeM").addClass("hide"); filterFieldBind("bedCount", false); selectedFilterValues.service = 'roommates'; selectedFilterValues.leaseType = ''; } else if (userReqType == "roomOffered" || userReqType == "i-have-a-room-to-rent") { $SUL("#roommatesTenantType,#roommatesTenantTypeM").removeClass("hide"); $SUL("#roommatesGenderType,#roommatesGenderTypeM").removeClass("hide"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#roommatesAttachedBath,#roommatesAttachedBathM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("hide"); $SUL("#rentalsSquarefeetMap").removeClass("hide").addClass("hide"); $SUL("#wdivoccupationtype,#wdivoccupationtypeM").removeClass("hide"); $SUL("#divoccupationtype,#divagetype,#divagetypeM,#divoccupationtypeM").addClass("hide"); $SUL("#divaccommodationtype,#divaccommodationtypeM").addClass("hide"); filterFieldBind("bedCount", false); selectedFilterValues.service = 'roommates'; selectedFilterValues.leaseType = ''; } else if (userReqType == "rentWanted" || userReqType == "i-need-an-apartment") { $SUL("#rentalsSellerType,#rentalsSellerTypeM").removeClass("hide"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Beds"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalssqfeetType").removeClass("hide"); $SUL("#rentalsSquarefeetMap").removeClass("hide").addClass("hide"); $SUL("#wdivoccupationtype,wdivoccupationtypeM").addClass("hide"); $SUL("#divoccupationtype,#divagetype,#divagetypeM,#divoccupationtypeM").removeClass("hide"); $SUL("#roommatesGenderType,#roommatesGenderTypeM").removeClass("hide"); if ($SUL("#apartment-wanted").prop("checked") == true || $SUL("#apartment-offered").prop("checked") == true || $SUL("#aptmntoff").prop("checked") == true || $SUL("#aptmntwant").prop("checked") == true) $SUL("#divaccommodationtype,#divaccommodationtypeM").removeClass("hide"); else $SUL("#divaccommodationtype,#divaccommodationtypeM").addClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = ''; $SUL("#accommodationvaluemapD").html("None"); } else if (userReqType == "rentOffered" || userReqType == "i-have-an-apartment-to-rent") { $SUL("#rentalsTenantType,#rentalsTenantTypeM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Beds"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalssqfeetType").removeClass("hide"); $SUL("#rentalsSquarefeetMap").removeClass("hide"); $SUL("#roommatesGenderType,#roommatesGenderTypeM").removeClass("hide"); $SUL("#divoccupationtype,#divagetype,#divagetypeM,#divoccupationtypeM").addClass("hide"); $SUL("#wdivoccupationtype,#wdivoccupationtypeM").removeClass("hide"); if ($SUL("#apartment-wanted").prop("checked") == true || $SUL("#apartment-offered").prop("checked") == true || $SUL("#aptmntoff").prop("checked") == true || $SUL("#aptmntwant").prop("checked") == true) $SUL("#divaccommodationtype,#divaccommodationtypeM").removeClass("hide"); else $SUL("#divaccommodationtype,#divaccommodationtypeM").addClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = ''; $SUL("#accommodationvaluemapD").html("None"); } else if (userReqType == "shortstayWanted" || userReqType == "i-need-a-short-stay") { $SUL("#leaseType,#leaseTypeM").val("short-term"); $SUL("#rentalsSellerType,#rentalsSellerTypeM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Beds"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalsSquarefeetMap").removeClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = 'short-term'; } else if (userReqType == "shortstayOffered" || userReqType == "i-have-a-short-stay") { $SUL("#leaseType,#leaseTypeM").val("short-term"); $SUL("#rentalsTenantType,#rentalsTenantTypeM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Beds"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalsSquarefeetMap").removeClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = 'short-term'; } else if (userReqType == "parkingWanted" || userReqType == "i-need-a-parking-garage") { $SUL("#rentalsSellerType,#rentalsSellerTypeM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Vehicles"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalssqfeetType").removeClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = ''; } else if (userReqType == "parkingOffered" || userReqType == "i-have-a-parking-garage") { $SUL("#rentalsParkingTenantType,#rentalsParkingTenantTypeM").removeClass("hide"); $SUL("#bedOrVehicleTxt,#bedOrVehicleTxtM").text("No of Vehicles"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("show"); $SUL("#rentalssqfeetType").removeClass("hide"); filterFieldBind("bedCount", true); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = ''; } else if (userReqType == "commercialWanted" || userReqType == "i-need-a-commercial-space") { $SUL("#rentalsComSellerType,#rentalsComSellerTypeM").removeClass("hide"); $SUL("#leaseTypediv,#leaseTypedivM").removeClass("hide"); $SUL("#rentalsBedsM").removeClass("show hide").addClass("hide"); $SUL("#rentalssqfeetType").removeClass("hide"); filterFieldBind("bedCount", false); selectedFilterValues.service = 'rentals'; selectedFilterValues.leaseType = ''; } } function selectLocation() { var searchlocation = $SUL('#searchlocation').val(); selectedFilterValues.locationtype = searchlocation; if ($SUL("#mapviewFilters").length == 1) { $SUL('#showMetrosM').removeClass("show").addClass('hide'); $SUL('#showStatesM').removeClass("show").addClass('hide'); $SUL('#showCityM').removeClass("show").addClass('hide'); $SUL('#showNeighbourhoodM').removeClass("show").addClass('hide'); $SUL('#showUnivM').removeClass("show").addClass('hide'); $SUL('#showLandmarkM').removeClass("show").addClass('hide'); mapviewlocationdetails.locationtype = searchlocation; if (searchlocation == "metro") { $SUL('#showMetrosM').removeClass('hide').addClass('show'); } else if (searchlocation == "state") { $SUL('#showStatesM').removeClass('hide').addClass('show'); } else if (searchlocation == "city") { $SUL('#showCityM').removeClass('hide').addClass('show'); } else if (searchlocation == "neighbour") { $SUL('#showNeighbourhoodM').removeClass('hide').addClass('show'); } else if (searchlocation == "university") { $SUL('#showUnivM').removeClass('hide').addClass('show'); } else if (searchlocation == "landmark") { $SUL('#showLandmarkM').removeClass('hide').addClass('show'); } } } function getNearCities() { var lat = "", long = "", locobjtype = $SUL('#hdObjType').val(); if (locobjtype == "city") { lat = $SUL('#hdLatNearCitiesCity').val(); long = $SUL('#hdLongNearCitiesCity').val(); } else { lat = $SUL('#hdLatNearCitiesMetro').val(); long = $SUL('#hdLongNearCitiesMetro').val(); } var zipcode = $SUL('#hdUserZipCode').val(), usercountry = $SUL('#hdUserCountry').val(); if (parseInt(lat) > 0 && (parseInt(zipcode) > 0 || zipcode.length == 0)) { var service = $SUL('#hdService').val() + ""; $SUL.ajax({ url: "/common/get-near-citiesv4.aspx?objecttype=donotcall&newlisting=1&lat=" + lat + "&long=" + long + "&zip=" + zipcode + "&cntry=" + usercountry + "&service=" + service, error: function (errmsg) { $SUL('#nearbyCityListContainer').html(''); }, success: function (data) { $SUL('#nearbyCityListContainer').html(data); } }); } else { $SUL('#nearbyCityListContainer').html('Currently no data available.'); } if ($SUL('#hdMetroUrl').val() != undefined && $SUL('#hdMetroUrl').val() != '' && $SUL('#hdObjType').val() == 'city') { $SUL('#metropromodivcont').remove(); if ($SUL('#hdService').val() == 'roommates') $SUL('
Offered Roommates Listings in ' + $SUL('#hdMetro').val() + ', Wanted Roommates Listings in ' + $SUL('#hdMetro').val() + '
').insertAfter('#nearbyCityListContainer'); else $SUL('
Offered Rentals Listings in ' + $SUL('#hdMetro').val() + ', Wanted Rentals Listings in ' + $SUL('#hdMetro').val() + '
').insertAfter('#nearbyCityListContainer'); } } function SearchAdsV3bySort(service, pageno, sortBy) { var userneed = ""; if (sortBy == undefined || sortBy == 'undefined' || sortBy == '') sortBy = $SUL('#adSortby').val(); else $SUL('#adSortby').val(sortBy); var searchURL = '', isServiceKeyAdded = false; var univUrlForm = checkunivUrl('', 1); var lndmrkUrlForm = checklndmrkUrl('', 1); var locobjType = $SUL('#hdObjType').val(); var isneighbourhoodpossible = $SUL('input[name=neighbourhoodReq]').val(); if (locobjType == 'neighborhood' && isneighbourhoodpossible == '1') { searchadsbyNeighbour(service, pageno, true); } //if (locobjType == "neighbour") { // var redirecturl = $SUL('#hdNeighbourUrl').val(); // if (redirecturl != null && redirecturl != "" && redirecturl != undefined) { // window.location.replace("https://" + window.location.host + "/" + redirecturl); // } // else { // Sulekha.Common.alert("Please Select Neighbourhood"); // hideplaceprocessing('listingsearch'); // } //} else if (locobjType == 'state') { searchadsbyState(service, pageno, true); } else if (univUrlForm == "1") { var univService = "", count = 0; $SUL("input[name=userRequirement]").each(function () { if ($SUL(this).prop("checked") == true) { userneed = $SUL(this).val(); } }); if (userneed.toLowerCase() == 'i-need-an-apartment' || $SUL("input[name=rentWanted]:checked").length > 0) { univService = "rentals-offered"; count = $SUL("input[name=rentWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-short-stay' || $SUL("input[name=shortstayWanted]:checked").length > 0) { univService = "rentals-offered-shortstay"; count = $SUL("input[name=shortstayWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-parking-garage') { univService = "rentals-offered-parking-garage"; } else if (userneed.toLowerCase() == 'i-have-an-apartment-to-rent' || $SUL("input[name=rentOffered]:checked").length > 0) { univService = "rentals-wanted"; count = $SUL("input[name=rentOffered]:checked").length; } else if (userneed.toLowerCase() == 'i-have-a-short-stay' || $SUL("input[name=shortstayOffered]:checked").length > 0) { univService = "rentals-wanted-shortstay"; count = $SUL("input[name=shortstayOffered]:checked").length } else if (userneed.toLowerCase() == 'i-have-a-parking-garage') { univService = "rentals-wanted-parking-garage"; } else if (userneed.toLowerCase() == 'i-need-a-room' || $SUL("input[name=roomWanted]:checked").length > 0) { univService = "roommates-offered"; count = $SUL("input[name=roomWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-have-a-room-to-rent' || $SUL("input[name=roomOffered]:checked").length > 0) { univService = "roommates-wanted"; count = $SUL("input[name=roomOffered]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-commercial-space' || $SUL("input[name=commercialWanted]:checked").length > 0) { univService = "rentals-commercial"; count = $SUL("input[name=commercialWanted]:checked").length; } else { hideplaceprocessing('listingsearch'); Sulekha.Common.alert("Please select any one Need"); if ((jQuery.browser = jQuery.browser || {}).mobile) { $SUL('#mobilefilter').removeClass('show hide').addClass('hide'); } } if (parseInt(pageno, 10) == 1 || parseInt(pageno, 10) == "NaN") { pageno = ""; } universityUrlForm(univService, pageno, sortBy, userneed, count, '0'); } else if (lndmrkUrlForm == "1") { var landmarkService = "", count = 0; $SUL("input[name=userRequirement]").each(function () { if ($SUL(this).prop("checked") == true) { userneed = $SUL(this).val(); } }); if (userneed.toLowerCase() == 'i-need-an-apartment' || $SUL("input[name=rentWanted]:checked").length > 0) { landmarkService = "rentals-offered"; count = $SUL("input[name=rentWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-short-stay' || $SUL("input[name=shortstayWanted]:checked").length > 0) { landmarkService = "rentals-offered-shortstay"; count = $SUL("input[name=shortstayWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-parking-garage') { landmarkService = "rentals-offered-parking-garage"; } else if (userneed.toLowerCase() == 'i-have-an-apartment-to-rent' || $SUL("input[name=rentOffered]:checked").length > 0) { landmarkService = "rentals-wanted"; count = $SUL("input[name=rentOffered]:checked").length; } else if (userneed.toLowerCase() == 'i-have-a-short-stay' || $SUL("input[name=shortstayOffered]:checked").length > 0) { landmarkService = "rentals-wanted-shortstay"; count = $SUL("input[name=shortstayOffered]:checked").length } else if (userneed.toLowerCase() == 'i-have-a-parking-garage') { landmarkService = "rentals-wanted-parking-garage"; } else if (userneed.toLowerCase() == 'i-need-a-room' || $SUL("input[name=roomWanted]:checked").length > 0) { landmarkService = "roommates-offered"; count = $SUL("input[name=roomWanted]:checked").length; } else if (userneed.toLowerCase() == 'i-have-a-room-to-rent' || $SUL("input[name=roomOffered]:checked").length > 0) { landmarkService = "roommates-wanted"; count = $SUL("input[name=roomOffered]:checked").length; } else if (userneed.toLowerCase() == 'i-need-a-commercial-space' || $SUL("input[name=commercialWanted]:checked").length > 0) { landmarkService = "rentals-commercial"; count = $SUL("input[name=commercialWanted]:checked").length; } else { hideplaceprocessing('listingsearch'); Sulekha.Common.alert("Please select any one Need"); if ((jQuery.browser = jQuery.browser || {}).mobile) { $SUL('#mobilefilter').removeClass('show hide').addClass('hide'); } } if (parseInt(pageno, 10) == 1 || parseInt(pageno, 10) == "NaN") { pageno = ""; } landmarkUrlForm(landmarkService, pageno, sortBy, userneed, count, '0'); } else if (univUrlForm == "0" && lndmrkUrlForm == "0") { var newcomb = checknewcombination('sorting'); if (newcomb == true) { SearchAdsSearchPage('', pageno, sortBy); } else { if (service.length > 0 && service == 'roommates') { if (pageFilterValues.reqType.length > 0) { searchURL = pageFilterValues.reqType + '_'; } if (pageFilterValues.gender.length > 0) { searchURL += pageFilterValues.gender + '_'; } if (pageFilterValues.roomtype.length > 0) { searchURL += pageFilterValues.roomtype + '_'; } if (parseInt(pageFilterValues.minPrice) > 0 && parseInt(pageFilterValues.maxPrice) > 0) { var reqType = ''; if (pageFilterValues.reqType == "offered") reqType = "room-to-share-rent-"; else if (pageFilterValues.reqType == "wanted") reqType = "room-for-share-rent-"; reqType += pageFilterValues.minPrice + "-" + pageFilterValues.maxPrice; searchURL += "roommates_" + reqType + "_"; isServiceKeyAdded = true; } if (pageFilterValues.usertype.length > 0) { var reqType = "for-" + pageFilterValues.usertype + "_"; if (!isServiceKeyAdded) { reqType = "roommates_" + reqType; isServiceKeyAdded = true; } searchURL += reqType; } var reqType = "", sortBy = $SUL('#adSortby').val(); if (sortBy.toLowerCase() == "latest") { //reqType = "latest"; $SUL('