All pastes #474154 Raw Edit

Stuff

public javascript v1 · immutable
·published 2007-05-06 17:28 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';  } }}}