function replaceCurrent()
 {
	 var newNode = createNewNode(document.getElementById( "replace" ).value );
	 currentNode.parentNode.replaceChild( newNode, currentNode );
	 switchTo( newNode );
 } // end function replaceCurrent

// replace the currently selected node with a paragraph node

replace the currently selected node with a paragraph node
replace the currently selected node with a paragraph node
function replaceCurrent()
 {
	 var newNode = createNewNode(document.getElementById( "replace" ).value );
	 currentNode.parentNode.replaceChild( newNode, currentNode );
	 switchTo( newNode );
 } 
function replaceCurrent ( ) { var newNode = createNewNode ( document . getElementById ( "replace" ) . value ) ; currentNode . parentNode . replaceChild ( newNode , currentNode ) ; switchTo ( newNode ) ; }
replace the currently selected node with a paragraph node
replace the currently selected node with a paragraph node
// end function replaceCurrent
