function getObj(name) {
	// get object by various methods - 100% success
	var obj;
	if (document.getElementById) {
		obj = document.getElementById(name);
	}
	else if (document.all) {
		obj = document.all[name];
	}
	else if (document.layers) {
		obj = document.layers[name];
	}
	return obj;
}

function decodeEmail(address) {
	var decoded;
	decoded = address.replace(/--AT--/gi, "@");
	window.open('mailto:' + decoded,'','width=1,height=1');
}

function openWindow(path, width, height) {
	window.open(path,'','width='+width+',height='+height+',resizable=yes,scrollbars=yes');
}

function changeCSSClass(elem, name) {
	elem.className = name;
}

function getRandom(min,max) {
  return (Math.round(Math.random()*(max-min)))+min;
}