function getElem(name)
{
    nr=document.getElementById(name);
    return(nr);
}

var last_visible = false;
	
var last_visible = false;
var last_link = false;
function toggleAnswer( div_id, link_ref ) {

	var div_ref = document.getElementById( div_id );	
	
	//alert(last_link);
	
	if( div_ref ) {
		if( last_visible ) {
			last_visible.style.display = 'none';
			last_link.style.textDecoration = 'underline';
		}
		if( ( div_ref.style.display == 'none' ) ) {
			if ( last_visible == div_ref ) {												
				last_visible = false;
				last_link = false;
			} else {
				div_ref.style.display = 'block';
				link_ref.style.textDecoration = 'none';
				last_visible = div_ref;
				last_link = link_ref;
			}
		}
	}
}	



function scroll( position ) {
	var scroller = document.getElementById( 'scroll' );
	scroller.scrollLeft = position;
}

function showFlash( content ) {
	document.write( content );
}