function popupchecker(a){var b=window.open('itestwin.html','','width=1,height=1,left=0,top=0,scrollbars=no');if(b==null){alert(a)}else{b.close()}};function popUpProperties(a){op=window.open();op.document.open('text/plain');for(objprop in a){op.document.write(objprop+' => '+a[objprop]+'\n')}op.document.close()}function fillmessagebox(a){document.form.message.value=a}function copyrichtext(a){return true}function checkall(){void(d=document);void(el=d.getElementsByTagName('INPUT'));for(i=0;i<el.length;i++)void(el[i].checked=1)}function checknone(){void(d=document);void(el=d.getElementsByTagName('INPUT'));for(i=0;i<el.length;i++)void(el[i].checked=0)}function lockoptions(a,b,c){if(eval("document."+a+"."+b+".checked")){for(i=0;i<c.length;i++){unlockoption(a,c[i])}}else{for(i=0;i<c.length;i++){lockoption(a,c[i])}}return(true)}function lockoption(a,b){eval("document."+a+"."+b+".disabled=true");eval("document."+a+".h"+b+".value=1")}function unlockoption(a,b){eval("document."+a+"."+b+".disabled=false");eval("document."+a+".h"+b+".value=0")}function submitFormById(a){var b=document.getElementById(a);if(!b){return false}if(b.tagName!='FORM'){return false}if(!b.onsubmit||b.onsubmit()){return b.submit()}}function select_all_in(b,c,d){var e=document.getElementsByTagName('INPUT');e=filterByParent(e,function(a){return findParentNode(a,b,c,d)});for(var i=0;i<e.length;++i){if(e[i].type=='checkbox'||e[i].type=='radio'){e[i].checked='checked'}}}function deselect_all_in(b,c,d){var e=document.getElementsByTagName('INPUT');e=filterByParent(e,function(a){return findParentNode(a,b,c,d)});for(var i=0;i<e.length;++i){if(e[i].type=='checkbox'||e[i].type=='radio'){e[i].checked=''}}}function confirm_if(a,b){if(!a){return true}return confirm(b)}function findParentNode(a,b,c,d){while(a.nodeName!='BODY'){if((!b||a.nodeName==b)&&(!c||a.className.indexOf(c)!=-1)&&(!d||a.id==d)){break}a=a.parentNode}return a}function elementToggleHide(a,b,c){if(!c){var d=a}else{var d=c(a)}if(d.className.indexOf('hidden')==-1){d.className+=' hidden';var e=0}else{d.className=d.className.replace(new RegExp(' ?hidden'),'');var e=1}if(b==true){new cookie('hide:'+d.id,1,(e?-1:356),'/').set()}}function elementCookieHide(a){var b=document.getElementById(a);var c=new cookie('hide:'+a).read();if(c!=null){elementToggleHide(b,false)}}function filterByParent(a,b){var c=[];for(var i=0;i<a.length;++i){var d=b(a[i]);if(d.nodeName!='BODY'){c.push(a[i])}}return c}function fix_column_widths(){var a=navigator.userAgent.toLowerCase();if((a.indexOf("msie")!=-1)&&(a.indexOf("opera")==-1)){fix_column_width('left-column');fix_column_width('right-column')}}function fix_column_width(a){if(column=document.getElementById(a)){if(!column.offsetWidth){setTimeout("fix_column_width('"+a+"')",20);return}var b=0;var c=column.childNodes;for(i=0;i<c.length;++i){if(c[i].className.indexOf("sideblock")!=-1){if(b<c[i].offsetWidth){b=c[i].offsetWidth}}}for(i=0;i<c.length;++i){if(c[i].className.indexOf("sideblock")!=-1){c[i].style.width=b+'px'}}}}function insertAtCursor(a,b){if(document.selection){a.focus();sel=document.selection.createRange();sel.text=b}else if(a.selectionStart||a.selectionStart=='0'){var c=a.selectionStart;var d=a.selectionEnd;a.value=a.value.substring(0,c)+b+a.value.substring(d,a.value.length)}else{a.value+=b}}

