function getXMLHttp(){if(typeof XMLHttpRequest=='undefined'){XMLHttpRequest=function(){try{return new ActiveXObject('Msxml2.XMLHTTP.6.0')}catch(e){}try{return new ActiveXObject('Msxml2.XMLHTTP.3.0')}catch(e){}try{return new ActiveXObject('Msxml2.XMLHTTP')}catch(e){}try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){}}}var a=new XMLHttpRequest();return a}function grabdata(a,b,c){var d=getXMLHttp();d.onreadystatechange=function(){if(d.readyState==1&&c!=null){outputstate('<div align="center"><img src="'+c+'/rt_loading.gif"></div>',b)}if(d.readyState==4){outputstate(d.responseText,b)}};d.open('GET',a,true);d.send(null)}function outputstate(a,b){document.getElementById(b).innerHTML=a}function trim(a){return a.replace(/^\s\s*/,'').replace(/\s\s*$/,'')}var t;function searchsub(a,b,c,d,e){if(t)clearTimeout(t);t=setTimeout(function(){searchexecute(a,b,c,d,e)},250)}function searchexecute(a,b,c,d,e){a=trim(a);if(a.length>=c&&a!=b){var f=getXMLHttp();f.onreadystatechange=function(){if(f.readyState==4){if(f.responseText.length!=0){outputstate(f.responseText,e);show(e)}else{hide(e)}}};d=d+encodeURIComponent(a);f.open('GET',d,true);f.send(null)}else{hide(e)}}function quote(a){var b=document.getElementById('comment_text_'+a).innerHTML;while(b.indexOf('[QUOTE')!=-1){var c=b.indexOf('[QUOTE');var d=b.lastIndexOf('[/QUOTE]')+8;b=b.substring(0,c)+b.substring(d)}if(!document.getElementById('triggerform'))return;document.getElementById('triggermessage').value+='[QUOTE='+document.getElementById('comment_user_'+a).innerHTML+']'+b+'[/QUOTE]\n'}function show(a){document.getElementById(a).style.display='block'}function hide(a){document.getElementById(a).style.display='none'}function showhide(a){if(document.getElementById(a).style.display=='none'){document.getElementById(a).style.display='block'}else{document.getElementById(a).style.display='none'}}function edit(a){showhide('comment_block_'+a);showhide('comment_edit_'+a)}function tl(a,b){if(a.value.length>b){a.value=a.value.substring(0,b)}}function sa(a,b){var c=document.getElementById(a);for(x=0;x<c.elements.length;x++){if(c.elements[x].className.indexOf(a)!=-1){c.elements[x].checked=b}}}function forgot(a){var b=window.open(a,'forgot','width=550,height=205,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0');b.focus()}function profile(a){var b=window.open(a,'profile','width=550,height=495,scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=0');b.focus()}function settings(a){var b=window.open(a,'settings','width=550,height=495,scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=0');b.focus()}function password(a){var b=window.open(a,'password','width=550,height=240,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0');b.focus()}function report(a){var b=window.open(a,'report','width=550,height=275,scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0');b.focus()}
