// JavaScript Document

function focuson(focusobject) {
	if (document.getElementById(focusobject)) {
		document.getElementById(focusobject).focus();
	}
}

function focusonifvisible(focusobject, container) {
	if (document.getElementById(container).style.display == '') {
		if (document.getElementById(focusobject)) {
			document.getElementById(focusobject).focus();
		}
	}
}
