if(typeof Xinha=="undefined"){Xinha=window.opener.Xinha}HTMLArea=Xinha;function getAbsolutePos(A){var C={x:A.offsetLeft,y:A.offsetTop};if(A.offsetParent){var B=getAbsolutePos(A.offsetParent);C.x+=B.x;C.y+=B.y}return C}function comboSelectValue(E,C){var A=E.getElementsByTagName("option");for(var B=A.length;--B>=0;){var D=A[B];D.selected=(D.value==C)}E.value=C}function __dlg_onclose(){opener.Dialog._return(null)}function __dlg_init(A,B){__xinha_dlg_init(B)}function __xinha_dlg_init(E){if(window.__dlg_init_done){return true}if(window.opener._editor_skin){var D=document.getElementsByTagName("head")[0];var C=document.createElement("link");C.type="text/css";C.href=window.opener._editor_url+"skins/"+window.opener._editor_skin+"/skin.css";C.rel="stylesheet";D.appendChild(C)}if(!window.dialogArguments&&opener.Dialog._arguments){window.dialogArguments=opener.Dialog._arguments}var B=Xinha.pageSize(window);if(!E){E={width:B.x,height:B.y}}window.resizeTo(E.width,E.height);var G=Xinha.viewportSize(window);window.resizeBy(0,B.y-G.y);if(E.top&&E.left){window.moveTo(E.left,E.top)}else{if(!Xinha.is_ie){var A=opener.screenX+(opener.outerWidth-E.width)/2;var F=opener.screenY+(opener.outerHeight-E.height)/2}else{var A=(self.screen.availWidth-E.width)/2;var F=(self.screen.availHeight-E.height)/2}window.moveTo(A,F)}Xinha.addDom0Event(document.body,"keypress",__dlg_close_on_esc);window.__dlg_init_done=true}function __dlg_translate(G){var F=["input","select","legend","span","option","td","th","button","div","label","a","img"];for(var E=0;E<F.length;++E){var D=document.getElementsByTagName(F[E]);for(var C=D.length;--C>=0;){var B=D[C];if(B.firstChild&&B.firstChild.data){var A=Xinha._lc(B.firstChild.data,G);if(A){B.firstChild.data=A}}if(B.title){var A=Xinha._lc(B.title,G);if(A){B.title=A}}if(B.tagName.toLowerCase()=="input"&&(/^(button|submit|reset)$/i.test(B.type))){var A=Xinha._lc(B.value,G);if(A){B.value=A}}}}document.title=Xinha._lc(document.title,G)}function __dlg_close(A){opener.Dialog._return(A);window.close()}function __dlg_close_on_esc(A){A||(A=window.event);if(A.keyCode==27){__dlg_close(null);return false}return true};