function check2()

	{

	if (document.form2.email.value == "")

	{

		alert("Please enter email address.");

		document.form2.email.focus();

		return (false );

	}

    if(document.form2.email.value.charAt(0)==" " || document.form2.email.value.charAt(document.form2.email.value.length-1)==" ")

	{

		alert("Space is not allowed before or after Email Address.");

		document.form2.email.focus();

		document.form2.email.select();

		return false;

	}	

	if (document.form2.email.value.indexOf("@") == -1 || document.form2.email.value.indexOf(".")==-1 || document.form2.email.value.length<7 || document.form2.email.value.search(" ")>0)

	{

		alert("Please enter a valid email address.");

		document.form2.email.select();

		document.form2.email.focus();

		return (false);

	}

	else

	{

		for(i=0;i<document.form2.email.value.length;i++)

		{

			if( document.form2.email.value.charAt(i)==">" || document.form2.email.value.charAt(i)=="<")

			{

				alert("Special characters > and < are not permitted to enter.");

				document.form2.email.focus();

				return false;

			}

		}

		for(i=0;i<document.form2.email.value.length;i++)

		{

			if( document.form2.email.value.charAt(i)=="'")

			{

				alert("Special characters ' are not permitted to enter.");

				document.form2.email.focus();

				return false;

			}

		}

	}

	}

function check3()

	{

	if (document.form3.username.value == "")

	{

		alert("Please enter your username.");

		document.form3.username.focus();

		return (false );

	}

	if (document.form3.password.value == "")

	{

		alert("Please enter your password.");

		document.form3.password.focus();

		return (false );

	}

	}


