doInit=0;
doInit2=0;
trInit=0;
function check_init() {
	if(doInit==1) {
		init();
	}
	if(doInit2==1) {
		init2();
	}
	if(trInit==1) {
		tr_check_form(e('tr_form').value)
	}
}

function e(element) {
	return document.getElementById(element)
}

function get_top(o) {
	//if(!o.offsetTop) { return; }
	var top = 0;
	while (o) {
		top += parseInt(o.offsetTop);
		o = o.offsetParent;
	}
	return top;
}
function get_left(o) {
	//if(!o.offsetLeft) { return; }
	var left = 0;
	while (o) {
		left += parseInt(o.offsetLeft);
		o = o.offsetParent;
	}
	return left;
}

function gotourl(myurl,mydelay) {
	if(!mydelay) { mydelay=10; }
	var befehl="document.location.href='"+myurl+"'"
	window.setTimeout(befehl,mydelay);
}
