i2ml / Portail_saad

Found redeclared variables JS-0085
Bug risk
Minor
6 occurrences in this check
'disp' is already defined
108	else if (window.getComputedStyle)
109	{
110		// For most other browsers
111		var disp = document.defaultView.getComputedStyle(elem, null).getPropertyValue('display');112	}
113
114	// Toggle the state of the "display" style
'disp' is already defined
103	else if (elem.currentStyle)
104	{
105		// For MSIE, naturally
106		var disp = elem.currentStyle['display'];107	}
108	else if (window.getComputedStyle)
109	{
'id' is already defined
 39	// Hide all content divs except the first
 40	var i = 0;
 41
 42	for (var id in contentDivs) 43	{
 44		if (i != 0)
 45		{
'id' is already defined
 23	// highlight the first tab
 24	var i = 0;
 25
 26	for (var id in tabLinks) 27	{
 28		tabLinks[id].onclick = showTab;
 29		tabLinks[id].onfocus = function () {
'i' is already defined
 37	}
 38
 39	// Hide all content divs except the first
 40	var i = 0; 41
 42	for (var id in contentDivs)
 43	{
'i' is already defined
 21
 22	// Assign onclick events to the tab links, and
 23	// highlight the first tab
 24	var i = 0; 25
 26	for (var id in tabLinks)
 27	{