function doSubmit(frm)
{
	if( isBlank(frm.firstname.value, 2) )
	{
		alert("First Name should be atleast 2 characters in length.");
		frm.firstname.focus();
		return false;
	}

	if( isBlank(frm.lastname.value, 2) )
	{
		alert("Last Name should be atleast 2 characters in length.");
		frm.lastname.focus();
		return false;
	}

	if( isBlank(frm.address.value, 6) )
	{
		alert("Address should be atleast 6 characters in length.");
		frm.address.focus();
		return false;
	}

	if( isBlank(frm.city.value, 2) )
	{
		alert("City should be atleast 2 characters in length.");
		frm.city.focus();
		return false;
	}

	if( isBlank(frm.state.value, 2) )
	{
		alert("State should be atleast 2 characters in length.");
		frm.state.focus();
		return false;
	}

	if( !EmailValidation(frm.email, "E-Mail Address") )
	{
		return false;
	}

	if( frm.country.value == "US" )
	{
		if( isBlank(frm.taxid.value, 0) )
		{
			alert("Please provide your Tax Id or Social Security Id.");
			frm.taxid.focus();
			return false;
		}
	}

	if( !frm.terms.checked )
	{
		alert("You should read and accept NewsDemon.com Affiliate Terms and Conditions.");
		frm.terms.focus();
		return false;
	}

	frm.keyword.value = "SUBMIT";

	/* POST the form now */
	return true;
}
