All pastes #474168 Raw Edit

Something

public javascript v1 · immutable
·published 2007-05-06 17:36 UTC
rendered paste body
function PadDigits(string, newlength) {	var pad = "";	var len = newlength-String(string).length;	var i;	for (i = 0; i<len; i++) {		pad += "0";	}	return pad+string;}function colm(a,i,bla) {	alert(bla);	if (document.getElementById){		var e = document.getElementById( bla );		if (e && e.style.display == 'none') {			alert(e.style.display);			e.style.display = '';			a.src = 'pic/b_minus.png';			for (x = 1; x <= i; x++)			{				var num = PadDigits(x,4);				var doc = document.getElementById(num);				doc.style.display = '';			}		}		else if (e) {			e.style.display = 'none';			a.src = 'pic/b_plus.png';			for (x = 1; x <= i; x++)			{				var num = PadDigits(x,4);				var doc = document.getElementById(num);				doc.style.display = 'none';			}		}	}}