var orderBy = "price"; var orderDir = "DESC"; var currentPage = 1; var listing_source = ""; var selected_home_features= ""; var selected_comm_features= ""; function Listing(property_id,agent_id){ this.property_id = property_id; this.agent_id = agent_id; this.city = ""; this.prop_type = ""; this.bedroom = ""; this.bathroom = ""; this.garage = ""; this.footage = ""; this.pool = ""; this.spa = ""; this.price = ""; this.brokerlogo_sm = ""; this.listing_photo = ""; this.keyword = ""; this.title = ""; this.all_photos = ""; this.clear_data = function() { this.property_id = ""; this.agent_id = ""; this.city = ""; this.prop_type = ""; this.bedroom = ""; this.bathroom = ""; this.garage = ""; this.footage = ""; this.pool = ""; this.spa = ""; this.price = ""; this.brokerlogo_sm = ""; this.listing_photo = ""; this.keyword = ""; } this.copy_data = function(obj) { this.property_id = obj.property_id; this.agent_id = obj.agent_id; this.city = obj.city; this.prop_type = obj.prop_type; this.bedroom = obj.bedroom; this.bathroom = obj.bathroom; this.garage = obj.garage; this.footage = obj.footage; this.pool = obj.pool; this.spa = obj.spa; this.price = obj.price; this.brokerlogo_sm = obj.brokerlogo_sm; this.listing_photo = obj.listing_photo; this.keyword = obj.keyword; } } var listingArrayIndex = 0; var listingArray = new Array(10); for(var i=0; i<11; i++) { listingArray[i] = new Listing("",""); } var seletedListingArrayIndex = 0; var selectedListingArray = new Array(20); for(var i=0; i<20; i++) { selectedListingArray[i] = new Listing("",""); } function ImageLoadFailed(obj) { obj.src = "http://www.househunt.org/images/no-photo-01.jpg"; //window.event.srcElement.style.display = "None"; } function resize_logo() { if(img_brokerlogo.height>80) img_brokerlogo.height = 80; } function getStyleObject(objectId) { // checkW3C DOM, then MSIE 4, then NN 4. // if(document.getElementById && document.getElementById(objectId)) { return document.getElementById(objectId).style; } else if (document.all && document.all(objectId)) { return document.all(objectId).style; } else if (document.layers && document.layers[objectId]) { return document.layers[objectId]; } else { return false; } } function genSearchOption(home_feature,comm_feature) { var sch_opt_content = ''; sch_opt_content += '
| Home Features | '; var arr_home_feature = home_feature.split(","); cnt_cell =0; for(var i = 0; i < arr_home_feature.length; i++){ if(home_feat[arr_home_feature[i]] == undefined) continue; if(cnt_cell==0) sch_opt_content += '||||
| =0) sch_opt_content += ' CHECKED '; sch_opt_content += '>' + home_feat[arr_home_feature[i]]+' | '; if(cnt_cell==5) cnt_cell=0 ; } sch_opt_content += '||||
| Community Features | '; var arr_comm_feature = comm_feature.split(","); cnt_cell =0; for(var i = 0; i < arr_comm_feature.length; i++){ if(comm_feat[arr_comm_feature[i]] == undefined) continue; if(cnt_cell==0) sch_opt_content += '||||
| =0) sch_opt_content += ' CHECKED '; sch_opt_content += '>' + comm_feat[arr_comm_feature[i]]+' | '; if(cnt_cell==5) cnt_cell=0 ; } sch_opt_content += '||||
| '+selectedListingArray[i].city+' | ' + ''+selectedListingArray[i].price+' | ' + '
| '+selectedListingArray[i].bedroom+' bd, '+selectedListingArray[i].bathroom+' ba, '+selectedListingArray[i].footage+' sf | ' + 'remove | '+ '
| '+
' No properties found. Please change your criteria. '+ 'Even though no properties matched my criteria,'+ ' '+ 'please send listings on homes/condos in the surrounding areas.'+ ' '+ 'Yes, I am entering my information on the next screen. Thank you!'+ ' '+ ' |