range.moveStart('character', aTag.length + insText.length + eTag.length); 
range.moveStart('character', aTag.length + insText.length + eTag.length); 
function InsertTags(aTag, eTag, parentWindow, param2) {	var input = refreshElement(parentWindow);	setFocus(input);	if (parentWindow == 1) {		var docsel = window.opener.document;	}	else {		var docsel = document;	}	if(typeof docsel.selection != 'undefined') {        var range = docsel.selection.createRange();        var insText = range.text;        if (param2 == 1) {        	insText = '';        }        range.text = aTag + insText + eTag;        range = docsel.selection.createRange();        if (insText.length == 0) {          range.move('character', -eTag.length);        } else {          range.moveStart('character', aTag.length + insText.length + eTag.length);              }        range.select();    }    else if(typeof input.selectionStart != 'undefined') {        var start = input.selectionStart;        var end = input.selectionEnd;        var insText = input.value.substring(start, end);        if (param2 == 1) {        	insText = '';        }        input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);        var pos;        if (insText.length == 0) {          pos = start + aTag.length;        } else {          pos = start + aTag.length + insText.length + eTag.length;        }        input.selectionStart = pos;        input.selectionEnd = pos;    }    else {        input.value = input.value + aTag + '' + eTag;    }}
9569	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9569/feb79a266837befd93952d51210dec25e498c0d6/editor.js/clean/viscacha08/admin/html/editor.js