
function valid_register(itntiform)
{
	var myerror = "";

	if (itntiform.f_name.value == "")
	{
		myerror += "You must enter First Name\n";
	}

	if (itntiform.l_name.value == "")
	{
		myerror += "You must enter Last Name\n";
	}

	if (itntiform.education.value == "")
	{
		myerror += "You must enter Education\n";
	}

	if (itntiform.company.value == "")
	{
		myerror += "You must enter Company\n";
	}

	if (itntiform.occupation.value == "")
	{
		myerror += "You must enter Occupation\n";
	}

	if (itntiform.address.value == "")
	{
		myerror += "You must enter Address\n";
	}

	if (itntiform.city.value == "")
	{
		myerror += "You must enter City\n";
	}

	if (itntiform.zip.value == "")
	{
		myerror += "You must enter Zip Postal Code\n";
	}

	if (itntiform.phone_no.value == "")
	{
		myerror += "You must enter Mobile or Phone\n";
	}

	if (itntiform.phone_no.value.length < 6)
	{
		myerror += "Minimum length for the field Phone or Mobile is 6\n";
	}

	if (itntiform.email.value == "")
	{
		myerror += "You must enter Email\n";
	}

	if (itntiform.password1.value == "")
	{
		myerror += "You must enter Password\n";
	}

	if (itntiform.password1.value.length < 6)
	{
		myerror += "Password must be minimum 6 digits\n";
	}

	if (itntiform.password2.value == "")
	{
		myerror += "You must enter Confirm Password\n";
	}

	if (itntiform.password1.value != itntiform.password2.value)
	{
		myerror += "Password and Confirm Password did not match\n";
	}

	if (itntiform.security_code.value == "")
	{
		myerror += "You must enter Security Code\n";
	}

	if (myerror != "")
	{
		alert(myerror);
		return false;
	}
	else
	{
		return true;
	}
}
