function swkx(){ c = document.FORM.c.value; sc = document.FORM.sc.value; if (c>0){ swk(c,sc); }else{ document.getElementById('kbtopx').innerHTML = ""; } } function swk(c,sc){ httpObj = createXMLHttpRequest(swk2); if (httpObj){ httpObj.open("GET",'//support.na.square-enix.com/kbtopx_ajax.php?id=14681&la=1&c='+c+'&sc='+sc+'&pv=20&ret=faq&q='); httpObj.send(null); } } function swk2(){ if ((httpObj.readyState == 4) && (httpObj.status == 200)){ if (httpObj.responseText != "ERROR"){ document.getElementById('kbtopx').innerHTML = httpObj.responseText; }else{ //document.getElementById('kbtopx').innerHTML = ""; } } } function swk3(){ swk(0,0)}