 function CheckIdAvail() { try { var S0982V = document.getElementById('ctl00_mContentPlaceHolder_uCreateUser_CreateUserStepContainer_UserName').value; var regEx = new RegExp('^[0-9a-zA-Z]+$'); if(S0982V.replace(/^\s+|\s+$/g,'') != '') { if (S0982V.match(regEx)) { document.getElementById('divAvailStatus').innerHTML = AS2803HHJTRT1RC(S0982V); } else { document.getElementById('divAvailStatus').innerHTML = 'Status'; alert('User Id can contain only a-z, 0-9.'); } } else { document.getElementById('divAvailStatus').innerHTML = 'Status'; alert('Please type a user id, to check if it is available or not.'); } } catch(ex) { } } function AS2803HHJTRT1RC(S0982V) { try { var reqPa; var req; var S0986V = 'true'; req = Obj(); reqPa = AS2903SSTTT1(S0982V); req.open("POST", "http://www.wambt.com/script/Helper.asmx", false); req.setRequestHeader("SOAPAction", "Wambt/A18RXXG29"); req.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); req.send(reqPa); if(req.readyState == 4) { if(req.status == 200) { if(req.responseText != '') { S0986V = AS2903YYUPCTR(req.responseXML.documentElement); } } } if(S0986V == 'true') { return "<div style='font-family:Tahoma;font-size:10px;line-height:14px;color:#00FF00;'><strong>Available</strong></div>"; } else { return "<div style='font-family:Tahoma;font-size:10px;line-height:14px;color:#FF0000;'><strong>Not Available</strong></div>"; } } catch(ex) { return "<div style='font-family:Tahoma;font-size:10px;line-height:14px;color:#00FF00;'><strong>Available</strong></div>"; } } function AS2903SSTTT1(cvLV1) { var reqPa; reqPa = "<?xml version='1.0' encoding='utf-8'?>"; reqPa += "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>"; reqPa += "<soap:Body>"; reqPa += "<A18RXXG29 xmlns='http://www.wambt.com'>"; reqPa += "<aVJK1CI99>" + cvLV1 + "</aVJK1CI99>"; reqPa += "</A18RXXG29>"; reqPa += "</soap:Body>"; reqPa += "</soap:Envelope>"; return reqPa; }
