trHover = function() {
	var trEls = document.getElementById("main").getElementsByTagName("tr");
	for (var i=0; i<trEls.length; i++) {
		trEls[i].onmouseover=function() {
			this.className+=" trhover";
		}
		trEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" trhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", trHover);
function wait() {
document.getElementById('button').value="Подождите...";
}
