function Hover(isover) {
	var it = event.srcElement;
	if (it.parentElement.className == 'TableMenu' && it.tagName == 'TD' && it.children.length && it.children(0).href) {
		it.style.cursor = isover ? 'hand' : 'default';
		window.status = isover ? it.children(0).href : '';
		if (event.type == 'click') location.href = it.children(0).href;
	}
	if (it.parentElement.className == 'TableHoverMenu' && it.tagName == 'TD' && it.children.length && it.children(0).href) {
		it.style.cursor = isover ? 'hand' : 'default';
		window.status = isover ? it.children(0).href : '';
		if (event.type == 'click') location.href = it.children(0).href;
		if (it.className == 'BlogT1') {
			if (isover) it.style.backgroundColor = '#F4F4E9';
			else it.style.backgroundColor = '#FAFAFA';
		}
		if (it.className == 'BlogT2') {
			if (isover) it.style.backgroundColor = '#D5D5D5';
			else it.style.backgroundColor = '#EAEAEA';
		}
	}
	else if (it.parentElement.className == 'BukvTD' || it.parentElement.className == 'Category' || it.parentElement.className == 'BlogT1') {
		if (isover) it.parentElement.style.backgroundColor = '#F4F4E9';
		else it.parentElement.style.backgroundColor = '#FAFAFA';
	}
	else if (it.parentElement.className == 'BlogT2') {
		if (isover) it.parentElement.style.backgroundColor = '#D5D5D5';
		else it.parentElement.style.backgroundColor = '#EAEAEA';
	}
}

function SelectAllTextFields() {
	var TextItem = document.getElementsByTagName("input");
	for (var i=0; i < TextItem.length; ++i) {
		if (TextItem.item(i).getAttribute("type") == "text") {
			//  TextItem.item(i).setAttribute("onfocus", "this.select()");
			//  TextItem.item(i).onfocus='this.select()';
			//  TextItem.item(i).setAttribute("onblur", "");
		}
	}
}

function wo(id, na) {
	window.open('/akkords.php?id='+id, na,'scrollbars=no,status=no,width=122,height=240,menubar=0,resizable=0');
}

function chColor(obj, color) {
 	document.getElementById(obj).style.backgroundColor = color;
}