function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 5) try { http = new ActiveXObject("Msxml2.XMLHTTP"); http2 = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http = new ActiveXObject("Microsoft.XMLHTTP"); http2 = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e2) { http = false; } } @end @*/ if (!http && typeof XMLHttpRequest != 'undefined') { http = new XMLHttpRequest(); http2 = new XMLHttpRequest(); } if (typeof http != 'object') { var err_msg = "This site only works in modern browsers:\n" + "+ IE 5.5 and later\n" + "+ Firefox 1.0 and later\n" + "+ Safari 2.0 and later\n" + "+ Opera 8.5 and later\n" + "+ Konqueror 3.5 and later" alert(err_msg); } var sid; var showCats = new Array(); showCats['ae'] = true; showCats['co'] = true; showCats['ee'] = true; showCats['et'] = true; showCats['ff'] = true; showCats['gp'] = true; function getCats(xxx) { var ts = new Date().getTime(); sid = xxx; http.open('get', 'inv_cats.php?sid='+xxx); if (showCats[sid] == true) { http.onreadystatechange = showCategories; showCats[sid] = false; } else { http.onreadystatechange = hideCategories; showCats[sid] = true; } http.send(null); } function showCategories() { if(http.readyState == 4){ var response = http.responseText; document.getElementById(sid).innerHTML = response; } } function hideCategories() { if(http.readyState == 4){ var response = http.responseText; document.getElementById(sid).innerHTML = ''; } }