 var _window = dojo.global(); var _document = dojo.doc(); element = dojo.byId(element); if(_document.selection && dojo.body().createTextRange){ var range = dojo.body().createTextRange(); range.moveToElementText(element); range.select(); }else if(_window["getSelection"]){ var selection = _window.getSelection(); if(selection["setBaseAndExtent"]){ selection.setBaseAndExtent(element, 0, element, element.innerText.length - 1); } else if(selection["selectAllChildren"]){ selection.selectAllChildren(element); } } }, 
 var _window = dojo.global(); var _document = dojo.doc(); element = dojo.byId(element); if(_document.selection && dojo.body().createTextRange){ var range = dojo.body().createTextRange(); range.moveToElementText(element); range.select(); }else if(_window["getSelection"]){ var selection = _window.getSelection(); if(selection["setBaseAndExtent"]){ selection.setBaseAndExtent(element, 0, element, element.innerText.length - 1); } else if(selection["selectAllChildren"]){ selection.selectAllChildren(element); } } }, 
	selectElementChildren: function(/*DomNode*/element){		// summary: clear previous selection and select the content of the node (excluding the node itself)		var _window = dojo.global();		var _document = dojo.doc();		element = dojo.byId(element);		if(_document.selection && dojo.body().createTextRange){ // IE			var range = dojo.body().createTextRange();			range.moveToElementText(element);			range.select();		}else if(_window["getSelection"]){			var selection = _window.getSelection();			if(selection["setBaseAndExtent"]){ // Safari				selection.setBaseAndExtent(element, 0, element, element.innerText.length - 1);			} else if(selection["selectAllChildren"]){ // Mozilla				selection.selectAllChildren(element);			}		}	},
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js