function hideLoading() {
	//window.document.getElementById( 'loading' ).style.display = 'none';
	window.document.getElementById( 'loadingtext' ).style.display = 'none';
}//hideLoading

function showLoading() {
	window.setTimeout( 'showLoadingMessage( "Data loading - please wait" );', 2 );
}//showLoading

function showWait( sMessage ) {
	window.setTimeout( 'showLoadingMessage("' + sMessage + '" );', 2 );
}//showWait

function showLoadingMessage( sMessage ) {
	var oElmLoadingCaption = window.document.getElementById( 'loadingcaption' );
	var cnt = oElmLoadingCaption.childNodes.length;
	for( i = 0;i < cnt;i++ ) {
		oElmLoadingCaption.removeChild(
		oElmLoadingCaption.childNodes[ i ] );
	}//for

	var ausgabe = sMessage.split( '<br>' );
	for( i = 0;i < ausgabe.length;i++ ) {
		var myBr = window.document.createElement( 'br' );
		var myText = window.document.createTextNode( ausgabe[ i ] );
		oElmLoadingCaption.appendChild( myText );
		oElmLoadingCaption.appendChild( myBr );
	}//for

//	var oElmLoading = window.document.getElementById( 'loading' );
	var oElmLoadingText = window.document.getElementById( 'loadingtext' );
	oElmLoadingText.style.display = 'block';
	var width = 1024;
	if ( window.innerWidth ) {
		width = window.innerWidth;
	} else {
		width = window.document.body.clientWidth;
	}//else
	var left = ( width / 2 - 125 ) + "px";
	oElmLoadingText.style.left = left;
	oElmLoadingText.style.zIndex = 100;
}//showLoadingMessage
