function EditMenuTextItem(txt, pfx) 
{
    /**
     * the text of the menu item 
     * @type String
     * @private
     */
    this.fText = txt;

    /**
     * the prefix to the text (used for special markers)
     * @type String
     * @private
     */
    this.fPrefix = pfx;

    /**
     * the dom elem for the prefix to the text
     * @type String
     * @type DOMElement
     * @private
     */
    this.fPrefix = pfx;

    /**
     * override of base class method provides the menu item content
     */
    this.provideContent = function() {
	var table = document.createElement("table");
	table.style.fontWeight = "bold";
	var tr = table.insertRow(0);

	var d1 = tr.insertCell(0);
	d1.style.width = "1em";

	var pfx = this.fPrefix;
	if( !pfx || pfx == "" ) pfx = " ";
	this.fPrefixElem = document.createTextNode(pfx);
	d1.appendChild(this.fPrefixElem);
	    

	var d2 = tr.insertCell(1);
	this.fTextNode = document.createTextNode( this.fText );
	d2.appendChild(this.fTextNode);
	table.style.width = "100%";	// important on IE, otherwise highlighting dont work right
	return table;
    }

    /**
     * set/change the prefix
     * @param {String}	new prefix
     */
    this.setPrefix = function( pfx ) {
	if( !pfx || pfx == "" ) pfx = " ";
	if( this.fPrefixElem )
	    this.fPrefixElem.nodeValue = pfx;
    }

    /**
     * set the text of the menu item
     */
    this.setText = function(txt) {
	this.fText = txt;
	if( this.fTextNode ) 
	    this.fTextNode.nodeValue = txt;
    }

    /**
     * the text node of the menu item
     * @type DOMElement
     * @private
     */
    this.fTextNode = null;
}
/**
 * @class
 * represents a menu item in the exit menu
 * @constructor
 * @param {String} txt	the text of the menu item
 * @param {String} pfx	the prefix to the text (user for special markers)
 */
@class
represents a menu item in the exit menu
@constructor
@param {String} txt  the text of the menu item
@param {String} pfx  the prefix to the text (user for special markers)
@class represents a menu item in the exit menu @constructor @param { String } txt the text of the menu item @param { String } pfx the prefix to the text ( user for special markers )
function EditMenuTextItem(txt, pfx) 
{
    this.fText = txt;
    this.fPrefix = pfx;
    this.fPrefix = pfx;
    this.provideContent = function() {
	var table = document.createElement("table");
	table.style.fontWeight = "bold";
	var tr = table.insertRow(0);
	var d1 = tr.insertCell(0);
	d1.style.width = "1em";
	var pfx = this.fPrefix;
	if( !pfx || pfx == "" ) pfx = " ";
	this.fPrefixElem = document.createTextNode(pfx);
	d1.appendChild(this.fPrefixElem);
	var d2 = tr.insertCell(1);
	this.fTextNode = document.createTextNode( this.fText );
	d2.appendChild(this.fTextNode);
	table.style.width = "100%";	
	return table;
    }
    this.setPrefix = function( pfx ) {
	if( !pfx || pfx == "" ) pfx = " ";
	if( this.fPrefixElem )
	    this.fPrefixElem.nodeValue = pfx;
    }
    this.setText = function(txt) {
	this.fText = txt;
	if( this.fTextNode ) 
	    this.fTextNode.nodeValue = txt;
    }
    this.fTextNode = null;
}
function EditMenuTextItem ( txt , pfx ) { this . fText = txt ; this . fPrefix = pfx ; this . fPrefix = pfx ; this . provideContent = function ( ) { var table = document . createElement ( "table" ) ; table . style . fontWeight = "bold" ; var tr = table . insertRow ( 0 ) ; var d1 = tr . insertCell ( 0 ) ; d1 . style . width = "1em" ; var pfx = this . fPrefix ; if ( ! pfx || pfx == "" ) pfx = " " ; this . fPrefixElem = document . createTextNode ( pfx ) ; d1 . appendChild ( this . fPrefixElem ) ; var d2 = tr . insertCell ( 1 ) ; this . fTextNode = document . createTextNode ( this . fText ) ; d2 . appendChild ( this . fTextNode ) ; table . style . width = "100%" ; return table ; } this . setPrefix = function ( pfx ) { if ( ! pfx || pfx == "" ) pfx = " " ; if ( this . fPrefixElem ) this . fPrefixElem . nodeValue = pfx ; } this . setText = function ( txt ) { this . fText = txt ; if ( this . fTextNode ) this . fTextNode . nodeValue = txt ; } this . fTextNode = null ; }
@class
 represents a menu item in the exit menu
 @constructor
 @param {String} txt  the text of the menu item
 @param {String} pfx  the prefix to the text (user for special markers)
@class represents a menu item in the exit menu @constructor @param { String } txt the text of the menu item @param { String } pfx the prefix to the text ( user for special markers )
/**
     * the text of the menu item 
     * @type String
     * @private
     */ /**
     * the prefix to the text (used for special markers)
     * @type String
     * @private
     */ /**
     * the dom elem for the prefix to the text
     * @type String
     * @type DOMElement
     * @private
     */ /**
     * override of base class method provides the menu item content
     */ // important on IE, otherwise highlighting dont work right
 /**
     * set/change the prefix
     * @param {String}	new prefix
     */ /**
     * set the text of the menu item
     */ /**
     * the text node of the menu item
     * @type DOMElement
     * @private
     */