<!--

// author=Nasir Jamal
//code for validating last_name starts here


function validate_lastName()
{
	var lastName = document.registration.LastName
	if (lastName.value=="")
	{
		errormsg +='Please enter your Last Name.\n';
		error_lastName=true;
		if(!error_firstName)
		{
			lastName.focus();	
		}
	}

	for(var a=0; a < lastName.value.length; a++)
	{
		for(var b=0; b<alphaChars.length; b++)
		{
			if(alphaChars.charAt(b)==lastName.value.charAt(a))
			{
				break;
			}
			else
			{
				if(b==(alphaChars.length-1))
				{
					errormsg +='The character '+ '\"' + lastName.value.charAt(a) + '"' + ' in your Last Name box is not valid.\n';
					error_lastName=true;
				}
			}
			if(!error_firstName)
			{
				lastName.focus();
			}
			
		}
	}
}

//code for validating last_name finishes here

//-->
