Index: /trunk/webapps/GTEC/js/vdsLayer.js
===================================================================
--- /trunk/webapps/GTEC/js/vdsLayer.js	(revision 567)
+++ /trunk/webapps/GTEC/js/vdsLayer.js	(revision 568)
@@ -1,4 +1,4 @@
 var postmileList = [];  // the list of postmiles saved from the json file.
-var chosenColor = null; // stores color that user picks
+var chosenColor = "yellow"; // stores color that user picks, initial default yellow
 
 // function to find differences between two arrays
@@ -135,4 +135,5 @@
                 first[1] + "            " + first[2] + "        " + range.toFixed(3) + "         " 
                 + getColorAbbr(chosenColor);
+                console.log(lineOut);
 
                 // Using Ajax POST to send the data 
@@ -188,4 +189,5 @@
             {
                 console.log('wrong choice');
+                clicked = !clicked;
             }
             clicked = !clicked;
@@ -306,12 +308,23 @@
     map.controls[google.maps.ControlPosition.BOTTOM_CENTER].push(yellowColor);
     // store the user picked color in "chosenColor"
+    
     redColor.addEventListener('click', function() {
         chosenColor = "red";
+        redColor.style.background = "red";
+        greenColor.style.background = "gray";
+        yellowColor.style.background = "gray";
+        
     });
     greenColor.addEventListener('click', function() {
         chosenColor = "lime";
+        greenColor.style.background = "green";
+        redColor.style.background = "gray";
+        yellowColor.style.background = "gray";        
     });
     yellowColor.addEventListener('click', function(){
         chosenColor = "yellow";
+        yellowColor.style.background = "yellow";
+        redColor.style.background = "gray";
+        greenColor.style.background = "gray";     
     });
 }
