function _show(id, how) {
	if (!how) {
		how = 'block';
	}
	var div = document.getElementById(id);
	if (div) {
		div.style.display = how;
	}
}

function _hideSelf(el) {
	el.style.display = 'block'
}

function _hide(id) {
	var div = document.getElementById(id);
	if (div) {
		div.style.display = 'none';
	}
}

function simpleQuery(url) {
	var s=document.createElement('script');
	s.type='text/javascript';
	s.src=url;
	document.documentElement.firstChild.appendChild(s);
}

function fillCombobox(comboId, obj) {
	combo = document.getElementById(comboId);
	if (!combo) {
		alert('Combobox are not found');
	}

	combo.options.length = 0;
	for(var item in obj) {
		var opt = document.createElement('option');
		var textNode = document.createTextNode(obj[item]);
		opt.value = item;
		opt.appendChild(textNode);
		combo.appendChild(opt);
	}
}

