function buttonDown(el)
	{
	if ( el.className == "ButtonControlDisabled" )
		return;

	el.className = "ButtonControlPressed";	
	}
	

function buttonUp(el)
	{
	if ( el.className == "ButtonControlDisabled" )
		return;
		
	el.className = "ButtonControl";	
	}

	
function buttonHandle(child)
	{
	this.child = child;
	
	return(window);
	}

	
function buttonHide(btnName)
	{
	spn = getElement(btnName); 
		
	if ( spn != null )
		spn.style.display = "none";
	}

		
function buttonShow(btnName)
	{
	spn = getElement(btnName); 
		
	if ( spn != null )
		spn.style.display = "";
	}
		
	
function buttonDisable(btnName, state)	
	{
	var spn;
	
	spn = getElement(btnName); 
	
	if ( spn == null )
		return;
		
	if ( state )
		spn.className = "ButtonControlDisabled";
	else
		spn.className = "ButtonControl";
	}
	
		
function buttonIsDisabled(btnName)	
	{
	var spn;
	
	spn = getElement(btnName);

	if ( spn == null )
		return true;

	if ( spn.className == "ButtonControlDisabled" )
		return true;
		
	return false;
	}

