<!--

// author=Nasir Jamal
//code for validating first_name starts here

alphaChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
function validate_firstName()
{
	
	var firstName = document.registration.FirstName
	
	if (firstName.value=="")
	{
		
		errormsg +='Please enter your First Name.\n';
		error_firstName=true;
		firstName.focus();
	
	}

	for(var a=0; a < firstName.value.length; a++)
	{
		for(var b=0; b<alphaChars.length; b++)
		{
			if(alphaChars.charAt(b)==firstName.value.charAt(a))
			{
				break;
			}
			else
			{
				if(b==(alphaChars.length-1))
				{
					errormsg +='The data "'+firstName.value.charAt(a)+'"'+' in your First Name box is not valid.\n';
					error_firstName=true;
				}
			}
			if(error_firstName)
			{
				firstName.focus();
			}
			
		}
	}
}

//code for validating first_name finishes here

//-->
