function Focus(that) {
	for (i=1; i<11; i++) {
		id = 'l' + i;
		document.getElementById(id).className = 'ob_link';
	}
	that.className = 'ob_link_f';
	if (that.id == "l3")
		if (document.getElementById("ll12").style.display == 'none')
			document.getElementById("ll12").style.display = 'block';
		else
			document.getElementById("ll12").style.display = 'none';
}
function FocusHM(that) {
	for (i=1; i<10; i++) {
		id = 'hm' + i;
		document.getElementById(id).className = 'p1_row';
	}
	that.className = 'p1_rowh';
}
function Focus2(that) {
	for (i=1; i<5; i++) {
		id = 'l' + i;
		document.getElementById(id).className = 'ob_link';
	}
	that.className = 'ob_link_f';
}
function Focus3(that) {
	for (i=1; i<3; i++) {
		id = 'll' + i;
		document.getElementById(id).className = 'ob_link';
	}
	that.className = 'ob_link_f';
}
function ShowSelectBox(that) {
	for (i=1; i<3; i++) {
		id = "of_s" + i;
		document.getElementById(id).style.display = "none";	
	}
	document.getElementById(that.value).style.display = "block";
}
function ShowValue(that) {
	for (i=1; i<3; i++) {
		id = "Value" + i;
		document.getElementById(id).style.display = "none";
	}
	document.getElementById(that.value).style.display = "block";
}
function AddField(that) {
	for (i=2; i<6; i++) {
		id = "field" + i;
		if (document.getElementById(id).style.visibility == "") {
			document.getElementById(id).style.visibility = "visible";
			break;
		}
		else
			if (i == 4)
				that.style.display = "none";
	}
}
function SetImage(dest, src) {
	document.getElementById(dest).src = src;
}
