/**
 * Replaces a button with id str id with a normal
 * html link performing teh same action
 */
function buttonReplace(id) {
	var button = document.getElementById(id); 
	button.style.display = 'none';
	   
	var link = document.createElement('a');
	link.setAttribute('onclick', 'this.parentNode.submit(); return false;');
	link.setAttribute('href', '#');

	var text = document.createTextNode(button.value);
	link.appendChild(text);
	button.parentNode.appendChild(link);

	//for the really weird browser...
	if (DOM2compliance = 'really poor') {
		var HTML = button.parentNode.innerHTML;
		button.parentNode.innerHTML = HTML;
	}
}
