 		var ptsArray=[];
 
 
+
+
+
+	var polygons=null;
+google.maps.event.addDomListener(drawingManager, "polygoncomplete", function(polygon) {
+        polygons=polygon;
+});
+
+
+
+
+
 	function clearTerm(id){
 		$("#" + id).val('');
 	}

		var ll=markers[i].getPosition();
		console.log(ll);

if(google.maps.geometry.poly.containsLocation(ll, poly) == true) {


		 console.log('inside');
		} else{console.log('outside');}

       bounds.extend(extendPoint2);
    }

	map.fitBounds(bounds);





}
function createMarker(p) {
	var cpa=p.split(",");
