function setObjData(){document.getElementById("workspace:objData").value=document.getElementById("workspace:tabSet:0:autoCmpFrom").value+", "+document.getElementById("workspace:tabSet:0:autoCmpTo").value}function handleConvert(a){handleClick("conv",true)}function handleClick(b,a){if(b.indexOf("x")>-1){b=b.replace(/x/,"")}if(isMultipleSelection()){selectionValue=selectionValue.replace(/~ ~/,"~"+b+"~");if(a){initSend()}}else{handleSingleSelectClick(b)}}function handleSingleSelectClick(a){if(startSelect!="0"){document.getElementById(startSelect).childNodes[0].focus();document.getElementById(startSelect).childNodes[0].innerHTML+=a}}function clearConsole(){document.getElementById("workspace:consoleTextArea").value=""}function clickLink(c){var b=document.getElementById(c);if(document.createEvent){var a=document.createEvent("MouseEvents");a.initEvent("click",true,false);b.dispatchEvent(a)}else{if(document.createEventObject){b.fireEvent("onclick")}}}function handleCopyEvent(){if(originalValues!=""){return}if(startSelect=="0"){copyTextSelection()}else{if(isMultipleSelection()){appClipBoard=getSelectionValues(false)}else{appClipBoard=stripHTML(document.getElementById(startSelect).childNodes[0].innerHTML)}}}function copyTextSelection(){if(isMSIE){appClipBoard=document.selection.createRange().text}else{var a=document.getElementById("workspace:consoleTextArea");appClipBoard=a.value.substr(a.selectionStart,a.selectionEnd-a.selectionStart)}}function handleCutEvent(){if(originalValues!=""){return}if(startSelect=="0"){cutTextSelection()}else{if(isMultipleSelection()){appClipBoard=getSelectionValues(true)}else{appClipBoard=stripHTML(document.getElementById(startSelect).childNodes[0].innerHTML);document.getElementById(startSelect).childNodes[0].innerHTML=""}}}function cutTextSelection(){if(isMSIE){appClipBoard=document.selection.createRange().text;document.selection.createRange().text=""}else{var a=document.getElementById("workspace:consoleTextArea");appClipBoard=a.value.substr(a.selectionStart,a.selectionEnd-a.selectionStart);a.value=a.value.substr(0,a.selectionStart)+a.value.substr(a.selectionEnd)}}function handlePasteEvent(){if(originalValues!=""){return}if(startSelect=="0"){pasteTextSelection()}else{if(/(,|\|)/.test(appClipBoard)){pasteMultiSelection()}else{document.getElementById(startSelect).childNodes[0].innerHTML=appClipBoard}}}function pasteMultiSelection(){if(appClipBoard.indexOf("=")<0){handleMultiDisplay(appClipBoard,startSelect)}else{var d=startSelect.split("_");var a=appClipBoard.split(/\s{1}/);var c;var e=0;for(var b=0;b<a.length;b++){if(a[b].length>0){c=(parseInt(d[0])+e).toString()+"_"+d[1];handleMultiDisplay(a[b],c);e+=getWidth(a[b],",","|")}}}}function pasteTextSelection(){var a=document.getElementById("workspace:consoleTextArea");if(isMSIE){a.focus();var b=document.selection.createRange();b.text=appClipBoard}else{a.value=a.value.substring(0,a.selectionStart)+appClipBoard+a.value.substring(a.selectionEnd,a.value.length)}}function handleDeleteEvent(){if(originalValues!=""){return}if(startSelect=="0"){deleteTextSelection()}else{if(isMultipleSelection()){getSelectionValues(true)}else{document.getElementById(startSelect).childNodes[0].innerHTML=""}}}function deleteTextSelection(){if(isMSIE){document.selection.createRange().text=""}else{var a=document.getElementById("workspace:consoleTextArea");a.value=a.value.substr(0,a.selectionStart)+a.value.substr(a.selectionEnd)}}function initSend(){if(selectionValue.indexOf("~ ~")==-1&&selectionValue.indexOf("~")>-1){document.getElementById("workspace:query").value=selectionValue;sendVal()}}function sendVal(){if(originalValues!=""){if(confirm("End game? \n")){restoreValues()}else{return}}document.getElementById("workspace:equal").click()};
