rem: var strRoot = 'http: 
add: var strRoot = 'http: 
context: function clickHandler (evt){	var elt;	if (document.layers)		elt = evt.taget;	else if (window.event && window.event.srcElement)	{		elt = window.event.srcElement;		evt = window.event;	}	else if (evt && evt.stopPropagation)		elt = evt.target;		if (!elt.className && elt.parentNode)		elt = elt.parentNode;	if (elt.className == 'l')	// label	{		var strClass;		var strField;		var strNamespace;		var strAssembly;		var strFieldType;		elt = getParentDiv (elt);		var strEltClass = elt.className;		if (strEltClass.charAt (strEltClass.length - 1) == '_')			strEltClass = strEltClass.slice (0, strEltClass.length - 1);		if (strEltClass == 'x')	// constructor		{			strField = 'ctor';			elt = getParentDiv (elt);		}		else		if (strEltClass == 'm' ||	// method			strEltClass == 'p' ||	// property			strEltClass == 'e' ||	// event			strEltClass == 'f')	// field		{			strFieldType = strEltClass;			strField = getName (elt);			var match = strField.match ( /[\.A-Z0-9_]*/i );			if (match)				strField = match [0];			elt = getParentDiv (elt);		}		var strEltClass = elt.className;		if (strEltClass.charAt (strEltClass.length - 1) == '_')			strEltClass = strEltClass.slice (0, strEltClass.length - 1);		if (strEltClass == 'c' ||	// class			strEltClass == 's' ||	// struct			strEltClass == 'i' ||	// struct			strEltClass == 'd' ||	// delegate			strEltClass == 'en')	// enum		{			strClass = getName (elt);			if (strEltClass == 'en')				strField = null;			elt = getParentDiv (elt);		}		var strEltClass = elt.className;		if (strEltClass.charAt (strEltClass.length - 1) == '_')			strEltClass = strEltClass.slice (0, strEltClass.length - 1);		if (strEltClass == 'n')		{			strNamespace = getName (elt);			elt = getParentDiv (elt);		}		var strEltClass = elt.className;		if (strEltClass.charAt (strEltClass.length - 1) == '_')			strEltClass = strEltClass.slice (0, strEltClass.length - 1);		if (strEltClass == 'y')		{			strAssembly = getName (elt);		}		if (evt.ctrlKey)		{			var strRoot = 'http://svn.myrealbox.com/viewcvs/trunk/mcs/class/';			var strExtra = '';			if (strAssembly)			{				if (strAssembly == 'mscorlib')					strAssembly = 'corlib';				else if (strAssembly == 'System.Xml')					strAssembly = 'System.XML';				strRoot = strRoot + strAssembly + '/';				if (strNamespace)				{					strRoot = strRoot + strNamespace + '/';					if (strClass)					{						strRoot += strClass + '.cs';						strExtra += '?view=markup';					}				}				window.open (strRoot + strExtra, 'CVS');			}		}		else if (strNamespace)		{			if (document.getElementById ('TargetMsdn1').checked)			{				var re = /\./g ;				strNamespace = strNamespace.toLowerCase ().replace (re, '');				if (strClass)					strNamespace += strClass.toLowerCase () + 'class';				if (strField)					strNamespace += strField;				if (strClass || strField)					strNamespace += 'topic';				window.open ('http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrf' + strNamespace + '.asp', 'MSDN');			}			else			{				if (strClass)					strNamespace += '.' + strClass;				if (strField)					strNamespace += '.' + strField;				if (document.getElementById ('TargetMonodoc').checked)				{					var category = null;					if (strClass == null)						category = "N:";					else if (strField == null)						category = "T:";					else {						switch (strFieldType) {						case 'f': category = "F:"; break;						case 'p': category = "P:"; break;						case 'm': category = "M:"; break;						case 'e': category = "E:"; break;						}					}					if (category != null)						window.open ('http://www.go-mono.com/docs/monodoc.ashx?link=' + category + strNamespace);				}				else				{					window.open ('http://msdn2.microsoft.com/library/' + strNamespace + '.aspx', 'MSDN');				}			}		}	}	else	{		if (elt.parentNode && elt.parentNode.className == 't')	// toggle			elt = elt.parentNode;		else if (elt.className != 't')	// toggle			return;		while (elt != null && elt.tagName != 'DIV')			elt = elt.parentNode;				if (evt.shiftKey)		{			var rgElts = getChildrenByTagName (elt, 'DIV');			var cElts = rgElts.length;			if (cElts != 0)			{				var fView = false;				var iElt;				for (iElt = 0; iElt < cElts; iElt ++)				{					if (getView (rgElts [iElt]))					{						fView = true;						break;					}				}				for (iElt = 0; iElt < cElts; iElt ++)				{					setView (rgElts [iElt], !fView);				}			}		}		else if (evt.ctrlKey)		{			setView (elt, true);			var eltParent = getParentDiv (elt);			while (eltParent)			{				var rgSiblings = getChildrenByTagName (eltParent, 'DIV');				var cSiblings = rgSiblings.length;				for (var iSibling = 0; iSibling < cSiblings; iSibling++)				{					var eltSibling = rgSiblings [iSibling];					if (eltSibling != elt)					{						setView (eltSibling, false);					}				}				elt = eltParent;				eltParent = getParentDiv (elt);			}		}		else			toggle (elt);	}	return false;}
meta: 172	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/172/12864bbcb1c3a752f54ee13d6d4ee3683a1b458e/cormissing.js/buggy/web/web/deploy/cm/cormissing.js