function createSummary(props) {

	var container = document.getElementById('results');

	var h = '<table width="650">';

	h += '<th></th><th><a href="javascript:getMapWithSort(\'lp_ListingAddr1\')">Address</a></th><th><a href="javascript:getMapWithSort(\'lp_MLS_Number\')">MLS Number</th><th><a href="javascript:getMapWithSort(\'lp_Listing_Price\')">Price</a></th><th><a href="javascript:getMapWithSort(\'lp_No_Bedrooms\')">Beds</a></th><th><a href="javascript:getMapWithSort(\'lp_No_Bathrooms\')">Baths</a></th><th><a href="javascript:getMapWithSort(\'lp_amt_Struct_SqFt_Est\')">SqFt</a></th><th>MLS</th></tr>';

	var bgcolor = '#ffffff';

        var queryString = createQueryString();


	for (var i = 0; i < props.length; i++) {

		if (bgcolor == '#ffffff') {
			bgcolor = '#cecece';
		} else {
			bgcolor = '#ffffff';
		}

		h += '<tr id="' + i + '" onMouseOver="hideAll();  document.getElementById(\'LISTING_\' + this.id).style.visibility = \'visible\';" bgcolor="' + bgcolor + '">';

		if (props[i].getAttribute('lp_Photo_URL').length > 0) {                        
			h += '<td><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=LISTING_DETAIL_P_BLANK&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3d' + props[i].getAttribute('cd_MLS') + '" target="_parent"><img src="http://' + cleanString(props[i].getAttribute('lp_Photo_URL')) + props[i].getAttribute('lp_MLS_Number') + 'at.jpg" width="150" height="117" border="0"></a>';                
		} else {
			h += '<td></td>';
		}

		h += '<td><a href="' + root_url + '/vp/ListingServlet?cd_MLS=' + props[i].getAttribute('cd_MLS') + '&SITE=' + site + '&ScreenID=LISTING_DETAIL_P_BLANK&pres_agent=' + pres_agent + '&mapvars=' + queryString + '%26s_layer%3D' + props[i].getAttribute('cd_MLS') + '&pres_agent=' + pres_agent + '" target="_parent">' + cleanString(props[i].getAttribute('lp_ListingAddr1')) + '</a></td>';



		h += '<td>' + cleanString(props[i].getAttribute('lp_MLS_Number')) + '</td>';

		h += '<td>$' + cleanString(props[i].getAttribute('lp_Listing_Price_Display')) + '</td>';

		h += '<td>' + cleanString(props[i].getAttribute('lp_No_Bedrooms')) + '</td>';

		h += '<td>' + cleanString(props[i].getAttribute('lp_No_Bathrooms')) + '</td>';
		h += '<td>' + cleanString(props[i].getAttribute('lp_amt_Struct_SqFt_Est')) + '</td>';

		var source = cleanString(props[i].getAttribute('lp_cd_Source'));

		h += '<td align="center">';

		if (cleanString(props[i].getAttribute('cd_Company')) == 'REO') {
			h += '<img src="images/' + cleanString(props[i].getAttribute('v15c')) + '.gif">';
		} else {
			if (source == 'MIALPENA' || source == 'MIGLADWIN' || source == 'MIJACKSON' || source == 'MILUTAR' || source == 'MIWWLX' || source == 'MIWCAR') {
				h += '<img src="images/mls_icons/lapeer_and_generic.gif">';
			} else if (source == 'MIAA') {
				h += '<img src="images/mls_icons/AAAMLS.gif">';
			} else if (source == 'MIFLINT') {
				h += '<img src="images/mls_icons/flint.gif">';
			} else if (source == 'MILANSING') {
				h += '<img src="images/mls_icons/Lansing.gif">';
			} else if (source == 'MINMMLS') {
				h += '<img src="images/mls_icons/NM_MLSx.gif">';
			} else if (source == 'MIPBMLS') {
				h += '<img src="images/mls_icons/pbmlsidxlogoc.gif">';
			} else if (source == 'MIRC') {
				h += '<img src="images/mls_icons/Realcomp.gif">';
			} else if (source == 'MIRM') {
				h += '<img src="images/mls_icons/mirealsource.gif">';
			} else if (source == 'MITAAR') {
				h += '<img src="images/mls_icons/taar_traverse.gif">';
			}
		}
	 
		h += '</td>';	

		h += '</tr>';
	
	}

h += '</table>';

container.style.overflow = 'scroll';
container.style.visibility = 'visible';
container.innerHTML = h;

}

function clearSummary() {

	var s = document.getElementById('results');

	s.style.overflow = 'hidden';
	s.style.visibility = 'hidden';

}


