var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false;

if (document.getElementById) {
	DHTML = true;
	DOM = true;
} else {
	if (document.all) {
		DHTML = true;
		MSIE4 = true;
	} else {
		if (document.layers) {
			DHTML = true;
			NS4 = true;
		}
	}
}
if (window.opera) {
	OP = true;
}

function setContent (Identifier, Text) {
	var Element = FIND(Identifier);
	if (!Element) {
		return false;
	}
	if (DOM && Element.firstChild) {
		Element.firstChild.nodeValue = Text;
		return true;
	}
	if (MSIE4) {
		Element.innerText = Text;
		return true;
	}
	if (NS4) {
		Element.document.open();
		Element.document.write(Text);
		Element.document.close();
		return true;
	}
}

function FIND(item) {
	if( window.mmIsOpera ) return(document.getElementById(item));
	if (document.all) return(document.all[item]);
	if (document.getElementById) return(document.getElementById(item));
	return(false);
}