	function load(){
		var anchor = getAnchor();	
		if (anchor != null && anchor != '' ) {
			loadContent(anchor);
		}
	}
	
	function reset(){
		var contentDiv = $('container1');
		while (contentDiv.firstChild)	
			contentDiv.removeChild(contentDiv.firstChild);
	}	
	
	function setIdentifier(id) {
		current_id = id;	
		location.hash = id;
		//$('edit_link').href =  "./doxa/edit#" + id;
		//setEditRights();
	}


	function htmlpartLink(parentNode, label, htmlpart ){
		var link = document.createElement('a');
		link.appendChild(document.createTextNode(label));	
		link.href= '#' + htmlpart;
		link.onclick = function () { loadContent(htmlpart) } ;
		parentNode.appendChild(link);
	}

	function loadContent(id) {
		var callback =
		{
	  	success: function(o) {
			setIdentifier(id);			
			contentDiv.innerHTML = contentDiv.innerHTML + o.responseText;
			},
	  	failure: function(o) {alert('Er is een fout opgetreden.');}
		};

		var contentDiv = $('container1');

		var url = './view/?' + id ;	
		var cObj = YAHOO.util.Connect.asyncRequest('GET', url, callback);
	}

