<A HREF="../HowItWorks/HIWLogin.asp"><IMG SRC="../images/btssmall.gif" WIDTH="115" HEIGHT="52" ALT="Click here to learn how this page works" BORDER=0></A>
// This function checks that the form was filled out with valid data (i.e. an integer
// for the AccountID and a non-null string for the password)
function validate()
{
if (!isNum(document.LoginForm.AccountID.value)){
alert('Please provide a valid account number');
document.LoginForm.AccountID.select();
return false;
}
return true;
}
// This function is called by the validate function and checks if a string
// contains an integer
function isNum(str) {
for (var i = 0; i < str.length; i++) {
var ch = str.substring(i, i + 1);
if (ch < "0" || "9" < ch) {
return false;
}
}
return true;
}
</SCRIPT>
<%
Sub CheckPassword
On Error Resume Next
Dim Member, intPassResult
Set Member = Server.CreateObject("ExAir.Member")
If Err.Number <> 0 Then
m_strMainPrompt = err.number & err.description & " An error occurred while trying to create an instance of the Member component. Please try to log in again later."