
//++++++++++++++++++++++++++++++++++++++
function getParentTag(tag, obj) {
	tag = tag.toUpperCase()
	
	while(obj.parentNode && obj.tagName.toUpperCase() != tag) obj = obj.parentNode

	if (obj.tagName.toUpperCase() == tag) return(obj)
	return false
}

function $(id) {
	return document.getElementById(id);
}