function ValidateRegistrationForm()
{
	var alertString = "Please check following error(s):\n";
	var alertStringLength = alertString.length;
	var goodBusinessPhone = document.form_registration.businessphonenum.value.replace(/[^0-9]/g,"");
	var goodBusinessFax = document.form_registration.businessfaxnum.value.replace(/[^0-9]/g,"");
	var goodMobilePhone = document.form_registration.mobilephonenum.value.replace(/[^0-9]/g,"");

	if(document.form_registration.login_id.value=="")
	{
		alertString = alertString + "--Login ID field is empty!\n";
	}
	else if(document.form_registration.login_id.value.length < 4)
	{
		alertString = alertString + "--Login ID should be atleast 4 characters long!\n";
	}
	else if(document.form_registration.login_id.value.length > 100)
	{
		alertString = alertString + "--Login ID should be at most 100 characters long!\n";
	}

	if(document.form_registration.password.value=="")
	{
		alertString = alertString + "--Password field is empty!\n";
	}
	else if(document.form_registration.password.value.length < 4)
	{
		alertString = alertString + "--Password should be atleast 4 characters long!\n";
	}
	else if(document.form_registration.password.value.length > 100)
	{
		alertString = alertString + "--Password should be less than 101 characters!\n";
	}

	if(document.form_registration.firstname.value=="")
	{
		alertString = alertString + "--First Name field is empty!\n";
	}
	else if(document.form_registration.firstname.value.length > 30)
	{
		alertString = alertString + "--First Name should be less than 31 characters!\n";
	}

	if(document.form_registration.lastname.value=="")
	{
		alertString = alertString + "--Last Name field is empty!\n";
	}
	else if(document.form_registration.lastname.value.length > 30)
	{
		alertString = alertString + "--Last Name should be less than 31 characters!\n";
	}

	if(document.form_registration.emailaddress.value=="")
	{
		alertString = alertString + "--Email Address field is empty!\n";
	}
	else if(isBadEmailAddress(document.form_registration.emailaddress.value))
	{
		alertString = alertString + "--Incorrect email!\n";
	}

	if(document.form_registration.company_name.value=="")
	{
		alertString = alertString + "--Company Name field is empty!\n";
	}
	else if(document.form_registration.company_name.value.length > 100)
	{
		alertString = alertString + "--Company Name should be less than 101 characters!\n";
	}

	if(document.form_registration.web_user_country_code.value == "USA")
	{
		if(document.form_registration.businessphonenum.value == "")
		{
			alertString = alertString + "--Business Phone # field is empty!\n";
		}
		else if(goodBusinessPhone.length != 10)
		{
			alertString = alertString + "--Invalid business phone number!\n";
		}

		if(document.form_registration.businessfaxnum.value != "")
		{
			if(goodBusinessFax.length != 10)
			{
				alertString = alertString + "--Invalid business fax number!\n";
			}
		}

		if(document.form_registration.mobilephonenum.value != "")
		{
			if(goodMobilePhone.length != 10)
			{
				alertString = alertString + "--Invalid mobile phone number!\n";
			}
		}
	}
	else
	{
		if(document.form_registration.businessphonenum.value == "")
		{
			alertString = alertString + "--Business Phone # field is empty!\n";
		}
		else if(goodBusinessPhone.length > 20)
		{
			alertString = alertString + "--Too many digits in business phone number!\n";
		}

		if(document.form_registration.businessfaxnum.value != "")
		{
			if(goodBusinessFax.length > 20)
			{
				alertString = alertString + "--Too many digits in business fax number!\n";
			}
		}

		if(document.form_registration.mobilephonenum.value != "")
		{
			if(goodMobilePhone.length > 20)
			{
				alertString = alertString + "--Too many digits in mobile phone number!\n";
			}
		}
	}

	if(alertString.length > alertStringLength)
	{
		alert(alertString);
		return false;
	}

	return true;
}

