hex=hex.toUpperCase(); if(hex.replace(new RegExp("["+_347+"]","g"),"")!=""){ return null; } if(hex.length==3){ rgb[0]=hex.charAt(0)+hex.charAt(0); rgb[1]=hex.charAt(1)+hex.charAt(1); rgb[2]=hex.charAt(2)+hex.charAt(2); }else{ rgb[0]=hex.substring(0,2); rgb[1]=hex.substring(2,4); rgb[2]=hex.substring(4); } for(var i=0;i<rgb.length;i++){ rgb[i]=_347.indexOf(rgb[i].charAt(0))*16+_347.indexOf(rgb[i].charAt(1)); } return rgb; }; 
dojo.gfx.color.hex2rgb = function(hex) {  var hexNum = "0123456789ABCDEF";  var rgb = new Array(3);  if( hex.indexOf("#") == 0 ) { hex = hex.substring(1); }  hex = hex.toUpperCase();  if(hex.replace(new RegExp("["+hexNum+"]", "g"), "") != "") {    return null;  }  if( hex.length == 3 ) {    rgb[0] = hex.charAt(0) + hex.charAt(0)    rgb[1] = hex.charAt(1) + hex.charAt(1)    rgb[2] = hex.charAt(2) + hex.charAt(2);  } else {    rgb[0] = hex.substring(0, 2);    rgb[1] = hex.substring(2, 4);    rgb[2] = hex.substring(4);  }  for(var i = 0; i < rgb.length; i++) {    rgb[i] = hexNum.indexOf(rgb[i].charAt(0)) * 16 + hexNum.indexOf(rgb[i].charAt(1));  }  return rgb;}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js