function CheckIsSign(fileid) { var x = new AjaxRequest('XML','CheckIsSign'); x.para = ['fileid='+fileid]; x.post('CheckIsSign','/cms/Ajax.aspx',function(s) { var xml = x.createXmlDom(s); var status = xml.getElementsByTagName("status")[0].firstChild.data; switch(status) { case "true": var issign = xml.getElementsByTagName("issign")[0].firstChild.data; var signpercent=xml.getElementsByTagName("percent")[0].firstChild.data; signpercent="0000"+signpercent; signpercent=signpercent.substring(signpercent.length-4,signpercent.length); signpercent=signpercent.substring(0,2)+"."+signpercent.substring(2,4); if(issign == "false") document.getElementById("content_signin").innerHTML = ""; else document.getElementById("content_signin").innerHTML = ""; break; } }) } function SigninContent(fileid) { var x = new AjaxRequest('XML','SigninContent'); x.para = ['fileid='+fileid]; x.post('SigninContent','/cms/Ajax.aspx',function(s) { CheckIsSign(fileid); }) } CheckIsSign('13711'); |