
function checkForm(form){
	var s = form.webaccess.value;
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if ( ( (c < "0") || (c > "9") )) 
        {
	alert("Please enter a Valid WebAccess Number from your Web Access Card.");
	form.webaccess.focus();
	return false;
        }	
    }
    var link1 = "http://www.hudsonandkeyse.com/login.php?goto=";
    var link2 = "http://www.hksln.com/register.html";	
    var link3 = "http://debtsales.hkinc.com/myinfo/register.asp";
	var link4 = "http://www.hudsonandkeyse.com/nafcu/index.html";	
		
    var k = s.substring(0,1);
    if(k == 1){
	location.href = link1;
    }else if(k == 2){
	location.href = link2;
    }else if(k == 3){
	location.href = link3;
	}else if(k == 4){
	location.href = link4;
    }else{
	alert("Please enter a Valid WebAccess Number from your Web Access Card.");
    }				
}
