function window.onload()
{
	document.body.style.visibility="visible";
}

function document.oncontextmenu()
{
//	event.returnValue = false;
}

function document.onselectstart()
{
	var s = event.srcElement.tagName;
	if (s != "INPUT" && s != "TEXTAREA") event.returnValue = false;
}

function loadView(xmlFile,xslFile)
{
	var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
	xmlDoc.async = false;
	xmlDoc.load(xmlFile);
	var xslDoc = new ActiveXObject("Msxml2.DOMDocument");
	xslDoc.async = false;
	xslDoc.load(xslFile);
	oMainView.innerHTML = xmlDoc.transformNode(xslDoc);
	curPageXML = xmlFile;
	curPageXSL = xslFile;
}

function clearcombo(el)
{
    // this routine clears out a listbox or combo box
    for (var i = el.options.length; i >= 1; i--)
    {
        el.options[i] = null;
    }
    el.selectedIndex = 0;
}

function getAttribute(node,attribName)
{
	var att = node.attributes.getNamedItem(attribName);
	if (att != null)
		return att.value;
	else
		return "";
}
function setAttribute(node,attribName,attribValue)
{
	var xmlDoc = node.ownerDocument;
	var att = xmlDoc.createAttribute(attribName);
	att.value = attribValue;
	node.attributes.setNamedItem(att);
}