function ValidateBillingInformation()
{
	var msg = '';
	var lThisChecked = false;

	for (i=0;i<document.BillingInformation.CardType.length;i++)
		if (document.BillingInformation.CardType[i].checked)
			lThisChecked = true;
	if (!lThisChecked)
		msg = msg + 'A credit card type must be selected.\n';
	if (document.BillingInformation.CardNumber.value.length < 12)
		msg = msg + 'Please enter a valid credit card number.\n';
	if (document.BillingInformation.Code.value.length < 3)
		msg = msg + 'Security Code must be at least 3 characters long.\n';
	if (msg.length > 0)
	{
		alert(msg);
		return false;
	}
	return true;
}


function ValidateJoinInformation()
{
	var msg = '';

	if (document.JoinInfo.CompanyName.value.length < 2)
		msg = msg + 'Please enter a Company Name.\n';
	if (document.JoinInfo.Websites.value.length < 9)
		msg = msg + 'Please enter at least one URL.\n';
	if (msg.length > 0)
	{
		alert(msg);
		return false;
	}
	return true;
}

