1var report_main; 2var mypop_loaded = 0; 3var loaded_non_xml = 0; 4var message = ''; 5var adding_comment; 6var updating_prefences; 7var mytitle; 8 9var f_my_assis = document.getElementById( 'get-myassistant' ); 10f_my_assis.style.width = "490px"; 11 12function checkvalue() 13{ 14 var comment = document.getElementById('ed-0_textarea').value; 15 16 if ( ! escape(comment) ) 17 { 18 alert( message ); 19 return false; 20 } 21 else 22 { 23 return ValidateForm(); 24 } 25} 26 27function xml_validate() 28{ 29 if ( loaded_non_xml ) 30 { 31 return true; 32 } 33 else 34 { 35 return false; 36 } 37} 38 39function dimmer(dim) 40{ 41 var shallwe = document.getElementById('mypop-dimmer'); 42 43 if( dim == true ) 44 { 45 shallwe.style.display=''; 46 } 47 else 48 { 49 shallwe.style.display='none'; 50 } 51} 52 53// Bug fix (No ID) 54// Fix's pixel gap on options 55 56function dimmer2(dim) 57{ 58 var shallwe = document.getElementById('mypop-dimmer2'); 59 60 if( dim == true ) 61 { 62 shallwe.style.display=''; 63 } 64 else 65 { 66 shallwe.style.display='none'; 67 } 68} 69 70function do_update() 71{ 72 var checkedids = Array('pm','email','boardalert'); 73 var additions = ''; 74 75 if ( loaded_non_xml ) 76 { 77 return; 78 } 79 80 for( var i in checkedids ) 81 { 82 var available = document.getElementById( checkedids[i] ); 83 if( available.checked == true ) 84 { 85 additions = additions+'&'+checkedids[i]+'='+1; 86 } 87 else 88 { 89 additions = additions+'&'+checkedids[i]+'='+0; 90 } 91 } 92 93 var url2 = ipb_var_base_url+'autocom=reportmanager&CODE=myass-alert-on' + additions; 94 95 do_request_function2 = function() 96 { 97 if ( ! xmlobj2.readystate_ready_and_ok() ) 98 { 99 dimmer2(true); 100 xmlobj2.show_loading( updating_preferences ); 101 return; 102 } 103 104 xmlobj2.hide_loading(); 105 dimmer2(false) 106 107 var output4 = xmlobj2.xmlhandler.responseText; 108 109 } 110 111 xmlobj2 = new ajax_request(); 112 xmlobj2.onreadystatechange( do_request_function2 ); 113 114 xmlobj2.process( url2 ); 115} 116 117function add_comment() 118{ 119 var comment = document.getElementById('comment-rmgr').value; 120 var id = document.getElementById('id-rmgr').value; 121 var url = ipb_var_base_url+'autocom=reportmanager&CODE=view-single&code2=do-comment&id='+escape(id)+'&reportid='+escape(id)+"&comment="+escape(comment); 122 123 if ( loaded_non_xml ) 124 { 125 return; 126 } 127 128 if ( ! escape(comment) ) 129 { 130 alert( message ); 131 } 132 else 133 { 134 do_request_function = function() 135 { 136 if ( ! xmlobj.readystate_ready_and_ok() ) 137 { 138 dimmer(true); 139 xmlobj.show_loading( adding_comment ); 140 return; 141 } 142 143 xmlobj.hide_loading(); 144 dimmer(false) 145 146 var output2 = xmlobj.xmlhandler.responseText; 147 148 if( output2 ) 149 { 150 var output3 = output2.split(';'); 151 report_popup( ipb_var_base_url + 'autocom=reportmanager&CODE=view-single&id=' + escape(id) + '&code2=comments', mytitle ); 152 } 153 else 154 { 155 alert(); 156 } 157 } 158 159 xmlobj = new ajax_request(); 160 xmlobj.onreadystatechange( do_request_function ); 161 162 xmlobj.process( url ); 163 164 } 165 166} 167 168function xml_popup( url, reporttitle ) 169{ 170 var not_loaded_yet = 0; 171 172// menu_action_close(); 173 174 if ( use_enhanced_js ) 175 { 176 try 177 { 178 report_popup( url, reporttitle ); 179 not_loaded_yet = 1; 180 } 181 catch( e ) 182 { 183 not_loaded_yet = 0; 184 } 185 } 186 187 if ( ! not_loaded_yet ) 188 { 189 loaded_non_xml = 1; 190 ipb_var_base_url = ipb_var_base_url.replace( '&', '&' ); 191 window.open( ipb_var_base_url + url + '&noxml=1','ReportManager','width=600,height=500,resizable=yes,scrollbars=no'); 192 } 193} 194 195function report_popup( url, reporttitle, is_myassis ) 196{ 197 var in_mypop_loaded = 0; 198 199 if( ! is_myassis ) 200 { 201 report_main = document.getElementById( 'get-mypopup' ); 202 report_drag = document.getElementById( 'mypop-drag' ); 203 report_content = document.getElementById( 'mypop-content' ); 204 report_title = document.getElementById( 'mypop-title' ); 205 report_title.innerHTML = reporttitle; 206 in_mypop_loaded = mypop_loaded; 207 } 208 else 209 { 210 report_main = document.getElementById( 'get-myassistant' ); 211 report_drag = document.getElementById( 'myass-drag' ); 212 report_content = document.getElementById( 'myass-content' ); 213 in_mypop_loaded = myass_loaded; 214 } 215 216 do_request_function = function() 217 { 218 if ( ! xmlobj.readystate_ready_and_ok() ) 219 { 220 return; 221 } 222 223 var html = xmlobj.xmlhandler.responseText; 224 225 if ( is_ie ) 226 { 227 html = "<iframe id='mypop-shim' src='javascript;' class='iframshim' scrolling='no' frameborder='0' style='position:absolute; top:0px; left:0px; right:0px; display: none;'></iframe>" + html; 228 } 229 230 report_content.innerHTML = html; 231 232 if ( is_ie ) 233 { 234 report_shim = document.getElementById('mypop-shim'); 235 report_shim.style.width = report_content.offsetWidth; 236 report_shim.style.height = report_content.offsetHeight; 237 report_shim.style.zIndex = report_content.style.zIndex - 1; 238 report_shim.style.top = report_content.style.top; 239 report_shim.style.left = report_content.style.left; 240 report_shim.style.display = "block"; 241 } 242 243 } 244 245 xmlobj = new ajax_request(); 246 xmlobj.onreadystatechange( do_request_function ); 247 248 xmlobj.process( ipb_var_base_url + url ); 249 250 report_main.style.position = 'absolute'; 251 report_main.style.display = 'block'; 252 report_main.style.zIndex = 99; 253 254 if ( ! in_mypop_loaded ) 255 { 256 var report_width = 0; 257 var report_height = 0; 258 259 if ( typeof( window.innerWidth ) == 'number' ) 260 { 261 report_width = window.innerWidth; 262 report_height = window.innerHeight; 263 } 264 else if ( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 265 { 266 report_width = document.documentElement.clientWidth; 267 report_height = document.documentElement.clientHeight; 268 } 269 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 270 { 271 report_width = document.body.clientWidth; 272 report_height = document.body.clientHeight; 273 } 274 275 var divheight = parseInt( report_main.style.height ); 276 var divwidth = parseInt( report_main.style.width ); 277 278 divheight = divheight ? divheight : 500; 279 divwidth = divwidth ? divwidth : 600; 280 281 if( ! is_myassis ) 282 { 283 var extratop = get_scrolling(); 284 } 285 else 286 { 287 Drag.cookiename = 'ipb-myass-div'; 288 var divxy = my_getcookie( 'ipb-myass-div' ); 289 var extratop = 0; 290 } 291 292 var co_ords; 293 294 if ( divxy && divxy != null ) 295 { 296 co_ords = divxy.split( ',' ); 297 298 if ( co_ords.length ) 299 { 300 var final_width = co_ords[0]; 301 var final_height = co_ords[1]; 302 303 if ( co_ords[0] > report_width ) 304 { 305 final_width = report_width - divwidth; 306 } 307 308 if ( co_ords[1] > report_height ) 309 { 310 final_height = report_height - divheight; 311 } 312 313 report_main.style.left = final_width + 'px'; 314 report_main.style.top = final_height + 'px'; 315 } 316 } 317 else 318 { 319 report_main.style.left = report_width / 2 - (divwidth / 2) + 'px'; 320 report_main.style.top = ((report_height / 2 - (divheight / 2)) + extratop) + 'px'; 321 } 322 323 if( is_myassis ) 324 { 325 Drag.cookiename = 'ipb-myass-div'; 326 } 327 328 Drag.init( report_drag, report_main ); 329 330 in_mypop_loaded = 1; 331 } 332} 333 334function get_scrolling() 335{ 336 var yaxis = 0; 337 338 if ( document.documentElement.scrollTop && document.documentElement ) 339 { 340 yaxis = document.documentElement.scrollTop; 341 } 342 else if ( document.body.scrollTop && document.body ) 343 { 344 yaxis = document.body.scrollTop; 345 } 346 else if ( window.pageYOffset ) 347 { 348 yaxis = window.pageYOffset; 349 } 350 else if ( window.yaxis ) 351 { 352 yaxis = window.yaxis; 353 } 354 355 return yaxis; 356} 357 358function xml_myassistant_change( linka ) 359{
360 report_popup( linka, '', 1 ); 361} 362 363 364function pms_redirect() 365{ 366 myass_content = document.getElementById( 'myass-content' ); 367 var limit1 = 0; 368 369 pm_cycle_count++; 370 371 if ( pm_cycle_count <= ipb_new_msgs ) 372 { 373 limit1 = pm_cycle_count - 1; 374 } 375 else 376 { 377 pm_cycle_count = 1; 378 } 379 380 xml_myassistant_change( 'act=buddy&xml=1&tab=newpms&limit=' + limit1 ); 381 382 myass_content.style.overflow = 'auto'; 383}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.