// Create an array to hold all references to scripts we need to load.

var onloads = new Array();

// General function to load all scripts defined in the array.

function initialize(){
	for(var i = 0; i < onloads.length; i++){
		onloads[i]();
		}
	}

// Call the initializer when the page finished loading.

window.onload = function(){ initialize(); }

// Function to add function references to the onload array.
//
// Usage: set_onload(functionname);

function set_onload(str_function){
	onloads[onloads.length] = str_function;
	}

function tdis(str_objref) {
	if(t = document.getElementById(str_objref)){
		if(t.style.display != 'block'){
			t.style.display = 'block';
			}
		else {
			t.style.display = 'none';
			}
		}
	}

