// ActionScript Document function Test(){ alert("OK"); } function Show_Help(text){ var x = 15 var y = 15; text_of_help.innerText = text; ypos=event.y + document.body.scrollTop; xpos=event.x + document.body.scrollLeft; help_table.style.left = ((xpos + x + help_table.clientWidth) > document.body.clientWidth) ? (xpos - x - help_table.clientWidth) : (xpos + x); help_table.style.top = ((ypos + y + help_table.clientHeight) > document.body.clientHeight) ? ypos - y - help_table.clientHeight : ypos + y; help_table.style.visibility = 'visible'; } function Hide_Help(text){ help_table.style.visibility = 'hidden'; } function replaceSelectedText(obj,start,end){ obj.focus(); if (document.selection) { var s = document.selection.createRange(); if (s.text){ eval("s.text=start+''+s.text+''+end"); s.select(); return true; } else obj.value = obj.value + start + end; } else if (typeof(obj.selectionStart)=="number"){ if (obj.selectionStart!=obj.selectionEnd){ var start = obj.selectionStart; var end = obj.selectionEnd; eval("var rs = "+cbFunc+"(obj.value.substr(start,end-start));"); obj.value = obj.value.substr(0,start)+rs+obj.value.substr(end); obj.setSelectionRange(end,end); } else obj.value = obj.value + start + end; return true; } return false; } function show_info (page, width, height, name, text){ //alert(text); window.showModelessDialog(page, [name, text], "dialogHeight:" + height + "px; dialogWidth: "+ width + "px; status=no; help=no; edge=sunken;"); } function show_ok(page, width, height, text){ //alert(text); window.showModalDialog(page, [text], "dialogHeight:" + height + "px; dialogWidth: "+ width + "px; status=no; help=no; edge=sunken;"); } function replaceSelectedText(obj,start,end){ obj.focus(); if (document.selection) { var s = document.selection.createRange(); if (s.text){ eval("s.text=start+''+s.text+''+end"); s.select(); return true; } else obj.value = obj.value + start + end; } else if (typeof(obj.selectionStart)=="number"){ if (obj.selectionStart!=obj.selectionEnd){ var start = obj.selectionStart; var end = obj.selectionEnd; eval("var rs = "+cbFunc+"(obj.value.substr(start,end-start));"); obj.value = obj.value.substr(0,start)+rs+obj.value.substr(end); obj.setSelectionRange(end,end); } else obj.value = obj.value + start + end; return true; } return false; }