function createNewNode( text )
 {
	var newNode = document.createElement( "p" );
 	nodeId = "new" + idcount;
 	++idcount;
	newNode.setAttribute( "id", nodeId ); // set newNode's id
 	text = "[" + nodeId + "] " + text;
	newNode.appendChild( document.createTextNode( text ) );
	return newNode;
 } // end function createNewNode

// a unique id and the given text

a unique id and the given text
a unique id and the given text
function createNewNode( text )
 {
	var newNode = document.createElement( "p" );
 	nodeId = "new" + idcount;
 	++idcount;
	newNode.setAttribute( "id", nodeId ); 
 	text = "[" + nodeId + "] " + text;
	newNode.appendChild( document.createTextNode( text ) );
	return newNode;
 } 
function createNewNode ( text ) { var newNode = document . createElement ( "p" ) ; nodeId = "new" + idcount ; ++ idcount ; newNode . setAttribute ( "id" , nodeId ) ; text = "[" + nodeId + "] " + text ; newNode . appendChild ( document . createTextNode ( text ) ) ; return newNode ; }
a unique id and the given text
a unique id and the given text
// set newNode's id
 // end function createNewNode
