function  showSchools(featureSet)  {
	   // alert("aaaa");
//alert(featureSet.features.length);
var features1 = featureSet.features;
if (features1.length < 1) {
        dojo.byId("info").innerHTML = "<div class='schoollist'><h1>No school found...</h1></div>";
		dijit.byId("myAccordionContainer").selectChild(dijit.byId("ResultsPane"));
}
else {

//set school symbol
        //var schoolsymbol = new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([0,0,255]));
		//var schoolsymbol = new esri.symbol.PictureMarkerSymbol('images/schoolsymbol.png', 27, 27);
		var schoolsymbol = new esri.symbol.PictureMarkerSymbol('images/schoolsymbol3.png', 27, 27);
		


		
	  var s = "";
	  var loc_code, name, address, grades, city, st, zip;
	  
	  s = "<div class='schoollist'><h1>Schools in the Census Tract: " + features1.length + "</h1>";

        for (var i=0, il=features1.length; i<il; i++) {
		map.graphics.add(features1[i].setSymbol(schoolsymbol));
          var featureAttributes = features1[i].attributes;
          
		  loc_code = featureAttributes.LOC_CODE;
		  name = featureAttributes.SCHOOLNAME;
		  address = featureAttributes.ADDRESS;
		  grades = featureAttributes.GRADES;
		  city = featureAttributes.City;
		  st = featureAttributes.STATE_CODE;
		  zip = featureAttributes.ZIP;
		  
		   s = s + "<span class='label'>School Name:</span> " + name + "<br />";
		   s = s + "<span class='label'>Location Code:</span>  " + loc_code + "<br />";
		   s = s + "<span class='label'>Address:</span>  " + address + "<br />";
		   s = s + "<span class='label'>Grades:</span>  " + grades + "<br />";
		   s = s + "<span class='label'>City:</span>  " + city + "<br />";
		   s = s + "<span class='label'>State:</span>  " + st + "<br />";
		   s = s + "<span class='label'>ZIP:</span>  " + zip + "<br />";
		  
		  //for (att in featureAttributes) {
           // s = s + "<b>" + att + ":</b>  " + featureAttributes[att] + "<br />";
			//}
		s = s + "<br>" ;
		
		 }
		 s = s + "</div>" ;
        dojo.byId("info").innerHTML = s;
		dijit.byId("myAccordionContainer").selectChild(dijit.byId("ResultsPane"));
	  }
}
