
 function E(cc){ return (typeof(cc)!='object')? document.getElementById(cc) : cc; }
 function R(cc){ var em = E(cc); try{em.parentNode.removeChild(em);}catch(e){} }

 function XmlHttp(){ var p = null; if(window.XMLHttpRequest){p = new XMLHttpRequest();}else{try{p = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{p = new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}} return p; }
 function AjaxSend(url,succ,argv){ var pp = XmlHttp(); if(pp){ pp.open('GET', url, true); pp.setRequestHeader('Cache-Control','no-cache'); pp.onreadystatechange = function(){if(pp.readyState==4 && pp.status==200) succ(pp.responseText,argv); }; pp.send(null); return 1;}return 0;}

 function move(aa,cc,w){ var e = E(aa), i; if(e){ pp = e.childNodes, pn = pp.length; if(pn>1){ i = pn; while(--i>=0 && pp[i].id!=cc); if(i<0 || (w>0 && i<1) || (w<0 && i>pn-2)) return; if(w>0){ e.insertBefore(pp[i], pp[i-1]); }else{ if(i>pn-3) e.appendChild(pp[i]); else e.insertBefore(pp[i], pp[i+2]); }}}}

 function hide(cc){ var e = E(cc), s; if(e){ s = e.style.display; e.style.display = (s=='none')? 'block' : 'none'; }}


