Index: wp-includes/js/colorpicker.dev.js
===================================================================
--- wp-includes/js/colorpicker.dev.js	(revision 20104)
+++ wp-includes/js/colorpicker.dev.js	(working copy)
@@ -60,7 +60,6 @@
 //   of the named anchor, relative to the page.
 function getAnchorPosition(anchorname) {
 	// This function will return an Object with x and y properties
-	var useWindow=false;
 	var coordinates=new Object();
 	var x=0,y=0;
 	// Browser capability sniffing
@@ -350,17 +349,18 @@
 // Pass an event and return whether or not it was the popup DIV that was clicked
 function PopupWindow_isClicked(e) {
 	if (this.divName != null) {
+        var t;
 		if (this.use_layers) {
 			var clickX = e.pageX;
 			var clickY = e.pageY;
-			var t = document.layers[this.divName];
+			t = document.layers[this.divName];
 			if ((clickX > t.left) && (clickX < t.left+t.clip.width) && (clickY > t.top) && (clickY < t.top+t.clip.height)) {
 				return true;
 				}
 			else { return false; }
 			}
 		else if (document.all) { // Need to hard-code this to trap IE for error-handling
-			var t = window.event.srcElement;
+			t = window.event.srcElement;
 			while (t.parentElement != null) {
 				if (t.id==this.divName) {
 					return true;
@@ -370,7 +370,7 @@
 			return false;
 			}
 		else if (this.use_gebi && e) {
-			var t = e.originalTarget;
+			t = e.originalTarget;
 			while (t.parentNode != null) {
 				if (t.id==this.divName) {
 					return true;
@@ -580,11 +580,12 @@
 		var divname = arguments[0];
 		}
 
+    var cp;
 	if (divname != "") {
-		var cp = new PopupWindow(divname);
+		cp = new PopupWindow(divname);
 		}
 	else {
-		var cp = new PopupWindow();
+		cp = new PopupWindow();
 		cp.setSize(225,250);
 		}
 
