var xmlHttp; var contextpath = ""; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else { if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } } } function cardCreate(value, where){ document.all.content_frame.src=contextpath + "/cardCreate!createcard.do?cardHistoryId=" + value; } function cardBrowser(value, where){ document.all.content_frame.src=contextpath + "/cardCreate!getTableTable.do?cardHistoryId=" + value; } function cardHistoryBrowser(){ var url = contextpath+"/cardHistory.do?from="+document.all.from.value+"&to="+document.all.to.value; createXMLHttpRequest(); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.open("GET", url, true); xmlHttp.send(null); } function userDetail(value,where){ parent.document.all.content_frame.src=contextpath + "/memberBrowser!"+where+".do?userId=" + value; } function updateAgent(value,where){ document.all.content_frame.src=contextpath + "/agent!"+where+".do?agentId=" + value; } function handleStateChange() { if (xmlHttp.readyState == 4) { if (xmlHttp.status == 200) { document.getElementById('tableDiv').innerHTML=xmlHttp.responseText; } else { alert(xmlHttp.status); } } }