// ## Copyright persists with NetworkSavvy, and EWN has unlimited usage as per agreement // // function HideIfAddressExists() { var addr=document.getElementById('emailaddress'); getfromserver('/erisk7/?page=httpapi&fn=checkusername&username=' + addr.value,UserExists); // Do an AJAX call to check if username exists } function UserExists(userexist) { if(userexist == 1) { for (i=1; i<=11; i=i+1) { document.getElementById('extrainfo' + i ).style.display= 'none'; } } else { for (i=1; i<=11; i=i+1) { document.getElementById('extrainfo' + i ).style.display= ''; } } } function onpageload() { return HideIfAddressExists(); }