function getObj(id) {if (document.getElementById) {return document.getElementById(id)}	else if (document.all) {return document.all[id]}	else {return document.all[id]}}

function rnd(max) {
	var x = Math.random() * max;
	x = x + 1;
	return parseInt(x);
}
