function add_rounded(){ var temp; var temp2; var toprounded = document.createElement("b"); toprounded.className="xtop"; for(var i=1;i<5;i++){ temp = document.createElement("b"); temp.className="xb"+i; toprounded.appendChild(temp); } var bottomrounded = document.createElement("b"); bottomrounded.className="xbottom"; for(var i=4;i>0;i--){ temp = document.createElement("b"); temp.className="xb"+i; bottomrounded.appendChild(temp); } var contentdiv = document.createElement("div") contentdiv.className="xboxcontent"; var divs = document.getElementsByTagName("div"); for(var i=0;i= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; } var http = getHTTPObject(); // We create the HTTP Object function exclicker(e){ var target = (window.event) ? window.event.srcElement : e.target; if(target.childNodes.length>2){ var temptext = target.childNodes[1].nodeValue; var fulltext = target.lastChild.value; var temp = temptext; target.childNodes[1].nodeValue = fulltext; target.lastChild.value = temptext; //alert(target.lastChild.value) } } function fireat(url,action) { http.open("GET", url, true); if(action=="need"){http.onreadystatechange = function(){ if(http.readyState==4){ var switchbox = document.getElementById("exchange_switch"); var temp,tempdata,tempa; if(http.responseText!=""){ var data = http.responseText.split("[]"); for(var i=0;i