var show_history = new Array();

function show(obj, display)
{
	if( document.getElementById(obj) ) obj = document.getElementById(obj);
	
	if( !display || display == undefined ) display = 'block';

	
	if( obj && typeof obj == 'object' ) {
		
		if( show_history[obj.id] != undefined && show_history[obj.id] != '' ) {

			obj.style.display = show_history[obj.id];
			show_history[obj.id] = '';
		
		} else {

			show_history[obj.id] = obj.style.display;
			obj.style.display = display;
		
		}
		
	}
	
}

function newElem(type)
{
	return document.createElement(type);
}

function byID(id)
{
	obj = document.getElementById(id);
	return (typeof obj == 'undefined') ? false : obj;
}
