var timeoutID2; function doit2(){ doShowmsg2(); timeoutID2 = window.setTimeout(doit, 60000); } function doShowmsg2(){ var posts = ""; sendRequest(getmsg2,posts,'POST','xml/login_state2.asp',true,true); } function getmsg2(oj){ var x0 = ""; var x1 = ""; var x2 = ""; var x3 = ""; var x4 = ""; var s = ""; if (oj.readyState == 4){ eval("res = " + oj.responseText); if (res) { for (i=0;i