function showWarning ( text ) {

	var bodyTag = document.getElementById('body');
	var nBox = document.createElement('div');
	var nBoxId = document.createAttribute('id');
	nBoxId.value = 'warnings';
	var nBoxClass = document.createAttribute('class');
	nBoxClass.value = 'opacity0';
	nBox.setAttributeNode(nBoxId);
	nBox.setAttributeNode(nBoxClass);
	var nBoxText = document.createTextNode(text);
	
	nBox.appendChild(nBoxText);
	bodyTag.appendChild(nBox);
	fade ('warnings', 0, 80, 500);
	setTimeout( "fade ('warnings', 80, 0, 500)", 5000);
}

function fatalErrorHandling() {
	if ( document.getElementById('fatalErrors') == null )
		return;
	var feBox = document.getElementById('fatalErrors');
	
	// I hate IE ;)
	if (window.innerHeight) {
    var viewHeight = window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    var viewHeight = document.body.offsetHeight;
  } else {
    var viewHeight = false;
  }

	feBox.style.height = viewHeight;
	
	document.getElementById('body').style.overflow = 'hidden';
}
	
