function create_menu( obj ){
	var edit_button = document.createNode('A');
	edit_button.className = 'edit_button';
	edit_button.href = '#';
	edit_button.onclick = function(){ return; };
	edit_button.appendChild( document.createTextNode('Edit') );
	obj.appendChild( edit_button );
}

function destroy_menu( obj ){
	links = obj.getElementsByTagName('A');
	for( var x=0; x<links.length; x++ ){
		if( links[x].className == 'edit_button' ){
			links[x].parentNode.removeChild( links[x] );
		}
	}
}