- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
function running(html, clear) {
	var	id, brk = true;
	if(clear)
		html.className = "";
	if(html.className != "Ready") {
		if(html.children.length > 0) {
			if(!clear) {
				for(id = 1; id < html.childNodes.length; ++ id) {
					var	active = findActive(html.childNodes[id]);
					if(active == null) {
						brk = true;
						break;
					}
					brk = active.className != "Ready" ? false : brk;
				}
			}
			if(!brk && html.childNodes[0].value && html.childNodes[0].max) {
				if(clear)
					html.childNodes[0].value = 1;
				else
				if(html.childNodes[0].value <= html.childNodes[0].max) {
					++ html.childNodes[0].value;
					if(brk) {
						for(id = 1; id < html.childNodes.length; ++ id)
							findActive(html.childNodes[id], true);
						html.parentNode.className = "";
					}
					return null;
				} else {
					html.parentNode.className = "Ready";
					html.className = "";
					return html;
				}
			}
			if(!clear)
				html.className = html.className != "Active" ? "Active" : "Ready";
			return null;
		} else {
			if(!clear)
				html.className = html.className != "Active" ? "Active" : "Ready";
			return html;
		}
	}
	return html;
}