function btnMDown(obj)
{
    obj.style.borderStyle = 'inset';
}

function btnMUp(obj)
{
    obj.style.borderStyle = 'outset';
}

function getElementFromDocument(id, document)
{
	if (document.getElementById)
	{
		return document.getElementById(id);
	}
	else if (document.all)
	{
		return document.all[id];
	}
	else
	{
		return null;
	}
}

function getDocumentFromFrame(frame)
{
	// Document logic for Internet Explorer
	if (frame.contentWindow)
	{
		return frame.contentWindow.document;
	}
	// Document logic for Mozilla
	else if (frame.contentDocument)
	{
		return frame.contentDocument;
	}
	else
	{
		return null;
	}
}
