function gebi(id) { return document.getElementById(id); }

function dwr(str) { return document.write(str); }

function docloc (url) {	document.location = url; }

function bon(obj,cls) {
	if (obj == undefined) return;
	cls = cls || '';
	obj.className = cls+' on';
}

function bof(obj,cls) {
	if (obj == undefined) return;
	cls = cls || '';
	obj.className = cls;
}

function ton(obj) {
	if (obj == undefined) return;
	obj.className = 'top-on';
}

function tof(obj) {
	if (obj == undefined) return;
	obj.className = 'top-off';
}

function pon(obj) {
	if (obj == undefined) return;
	obj.className = 'pnt-on';
}

function pof(obj) {
	if (obj == undefined) return;
	obj.className = 'pnt-off';
}

function trov(obj,cls) {
	if (obj == undefined) return;
	if (cls == undefined) cls = ''; else cls += ' ';
	obj.className = cls+'mrk';
}

function trou(obj,cls) {
	if (obj == undefined) return;
	if (cls == undefined) cls = ''; else cls += ' ';
	obj.className = cls;
}

function trdn(obj,cls) {
	if (obj == undefined) return;
	if (cls == undefined) cls = ''; else cls += ' ';
	obj.className = cls+'prs';
}

function trup(obj,cls) {
	if (obj == undefined) return;
	if (cls == undefined) cls = ''; else cls += ' ';
	obj.className = cls+'mrk';
}

function imgov(obj) {
	if (obj != undefined) {
		var id = obj.id+'_ov';
		if (gebi(id)) obj.src = gebi(id).src;
	}
}

function imgou(obj) {
	if (obj != undefined) {
		var id = obj.id+'_ou';
		if (gebi(id)) obj.src = gebi(id).src;
	}
}

function imgbgov(obj) {
	if (obj != undefined) {
		var id = obj.id+'_ov';
		if (gebi(id)) obj.style.backgroundImage = gebi(id).style.backgroundImage;
	}
}

function imgbgou(obj) {
	if (obj != undefined) {
		var id = obj.id+'_ou';
		if (gebi(id)) obj.style.backgroundImage = gebi(id).style.backgroundImage;
	}
}

function inp_val(id,val) {
	var obj = gebi(id);
	if (obj == undefined) return true;
	obj.value = val;
	var e = window.event;
	e.cancelBubble = true;
	return false;
}