HM_DOM = document.getElementById ? true : false;
HM_IE  = document.all ? true : false;
HM_NS4 = document.layers ? true : false;

/* Library Functions */
function getIdElement(item) { /* what can i do with an element: content discovery, ... */
	theElement = (HM_DOM) ? document.getElementById(item) : (HM_IE) ? document.all(item) : document.layers[item];
	return theElement;
}

function getIdAttribute(item, attrib) {
//	alert("getAttr "+attrib+" for "+item);
	return getElementAttribute(getIdElement(item), attrib);
}

function getElementAttribute(elem, attrib) {
//	alert("getAttr "+attrib+" as "+elem.id);
	return elem[ attrib ];
}

function setIdAttribute(item, attrib, value) {
	setElementAttribute(getIdElement(item), attrib, value);
}

function setElementAttribute(elem, attrib, value) {
	//style = elem.style;
	//style[ attrib ] = value;
	elem[ attrib ] = value;
	//alert("viewNovel in "+attrib+" as "+value);
}

/* Library Functions */

