function getDOMelement( name )
{
	return document.getElementById(name)
}


function getIE4Element( name )
{
	return document.all[name];
}

function getNS4Layer( name )
{
	return document.layers[name];
}

var getElement = null;

function SetGetElementMethod()
{
	
	// set correct DHTML-function for accessing elements
	if( document.getElementById ) // MSIE 5+ and Mozilla
		getElement = getDOMelement;
	else if( document.all ) // MSIE 4
		getElement = getIE4Element;
	else if ( document.layers ) // NS 4
		getElement = getNS4Layer;
}

function PrintThisPage()
{
	if( window.print )
	{
		window.print();
	}
	else
	{
		var w = window.open( document.location.href + "&print=1"  , null, "scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=no");
		w.focus();
	}	
}