anchor.diff:  <input type="checkbox" name="list" onClick="toggle(this)" value=<%=h index %> checked /> <%=h map.title %> <br>
   <% end %>
   <input type="button" name="CheckAll" value="Check All"
  -onClick="checkAll(document.myform.list)">
  +onClick="loadAll(document.myform.list)">
   <input type="button" name="UnCheckAll" value="Uncheck All"
  -onClick="uncheckAll(document.myform.list)">
  +onClick="unloadAll(document.myform.list)">
   <br>
   <div id='s'><%=h @s %></div>
   
  
positive.code: colorDumpList.push("#00DDFF");
  
  function load_map() {
  	var lat = 0;
  	var lng = 0;
  	var center;
     
  	
  	var tableID = 2036527;
  	var geocoder = new google.maps.Geocoder();
  	 var uluru = new google.maps.LatLng(37.8667186, -122.2533931);
  	map = new google.maps.Map(document.getElementById('mapview_map'), {
  	  center: uluru,
  	  zoom: 14,
     mapTypeId: google.maps.MapTypeId.SATELLITE
  	});	
  	var i = 0;
  	<% @areas.each do |coordinate_list| %>
  		var newPath = new google.maps.MVCArray;
  		<% coordinate_list.each do |item| %>
  		var lat = <%= h(item[0]) %>
  		var lng =<%= h(item[1]) %>
  			newPath.insertAt(newPath.length, new google.maps.LatLng(lat,lng));
  		<% end %>
  	  poly = new google.maps.Polygon({
  	      strokeWeight: 3,
  	      fillColor: colorDumpList[i]
  	    });
  	    polygons.push(poly);
  	    poly.setMap(map);
  	    poly.setPaths(new google.maps.MVCArray([newPath]));
  	    i = i + 1;
  	<% end %>
  
  }
  function addPoint(event) {
  
negative.code: 
  function getParameter()
  {
  
  }
  
  function load()
  {
  
  }
  
  function toggle(boxName)
  {
    if(boxName.checked == true)
    {
      polygons[boxName.value].setMap(map);
    }
    else
    {
      polygons[boxName.value].setMap(null);
    }
  }
  
    function unloadAll(field){
      for (i = 0; i < field.length; i++)
    field[i].checked = false ;
  
    }
    function loadAll(field){
  
      for (i = 0; i < field.length; i++)
        field[i].checked = true ;
    }
  
  </script>
  <div id='content'>
  