/*********************************************************************
 * DOJO editing stuff
 *********************************************************************/
var editors = {};
function addEditor(myid,mykey){
	var editorArgs =  {
    	items: ["bold", "italic", "underline"]
	};
	editors[mykey+myid] = dojo.widget.createWidget("Editor2",editorArgs,document.getElementById(mykey + 'edit'+ myid));
}

function getEditorData(myid,mykey){
	if(editors[mykey+myid] != undefined && editors[mykey+myid] != null){
		retData = editors[mykey+myid].getEditorContent();
		editors[mykey+myid] = null;
		return retData;
	}else{
		alert('Could not get editor for key: '+ mykey +' ,id: ' + myid);
	}
}