rem: containerName = ThisCalendarObject.Id.split(':')[2]; 
add: var containerName = ThisCalendarObject.Id.split(':')[2]; 
context: function calendarColorStyleRuleUpdate( ThisCalendarObject ){   var j = -1;   var i;      // obtain calendar name from the Id   containerName = ThisCalendarObject.Id.split(':')[2];   var tempStyleSheets = document.styleSheets;   for (i=0; i<tempStyleSheets.length; i++)   {      if (tempStyleSheets[i].href.match(/chrome.*\/skin.*\/calendar.css$/))	  {          j = i;          break;	  }   }   // check that the calendar.css stylesheet was found   if( j != -1 )   {	   var ruleList = tempStyleSheets[j].cssRules;	   var ruleName;	   for (i=0; i < ruleList.length; i++)	   {		  ruleName = ruleList[i].cssText.split(' ');		  // find the existing rule so that it can be deleted	      if (ruleName[0] == "." + containerName)		  {	         tempStyleSheets[j].deleteRule(i);	         break;	      }	   }	   // insert the new calendar color rule	   tempStyleSheets[j].insertRule("." + containerName + " { background-color:" +ThisCalendarObject.color + " !important;}",1);	}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4c45ef82548cb211397be177fd26e5a4234bc45c/calendarManager.js/buggy/calendar/resources/content/calendarManager.js