var debug = true; 
var debug = false; 
org.apache.lenya.editors.getSelectedText = function(sourceElement) {  var debug = true;  if (!sourceElement) sourceElement = window;  // FF and friends if a form input element was specified  if (sourceElement.selectionStart) {    debug && alert("FF or similar, using 'selectionStart' on an XHTML <input> element named '" + sourceElement.name + "'.");    return sourceElement.value.substr(         sourceElement.selectionStart,          sourceElement.selectionEnd - sourceElement.selectionStart);  } else   // FF and friends in other parts of the document  if (sourceElement.getSelection) {    debug && alert("FF or similar, using a 'getSelection()' on a window element named '" + sourceElement.name + "'.");    return sourceElement.getSelection().toString();  } else  // IE if a window element was specified  if (sourceElement.document.selection) {    debug && alert("IE, using using 'selection' on the document element of a window named '" + sourceElement.name + "'.");    return sourceElement.document.selection.createRange().text;  } else {  // IE if a form object was specified (ignore it and use document instead)  if (window.document.selection) {    debug && alert("IE, ignoring form element and using 'selection' on the document element of the current window '" + window.name + "'.");    return window.document.selection.createRange().text;  } else    debug && alert("Sorry, your browser apparently doesn't support text selection via javascript.");    return "";  }}
791	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/791/80c00d18cc464d890bda4f532e2ceb4117e18918/org.apache.lenya.editors.js/buggy/src/modules/editors/resources/javascript/org.apache.lenya.editors.js