<!--
function validate_required_cc(field,alerttxt)
{
	with (field)
	{
		if (value==null||value=="")
		  {alert(alerttxt);return false}
		else {return true}
	}
}

function validate_ccnum(field,alerttxt)
{
	with (field)
	{
		if (value.length!=16)
		  {alert(alerttxt);return false}
		else {return true}
	}
}

function validate_form_cc(thisform)
{
	with (thisform)
	{
		if (validate_required_cc(NAME,"First name must be filled out")==false)
		  {NAME.focus();return false}
		if (validate_required_cc(SURNAME,"Surname name must be filled out")==false)
		  {SURNAME.focus();return false}
		if (validate_required_cc(CREDIT_TYPE,"Please choose your credit card type")==false)
		  {CREDIT_TYPE.focus();return false}
		if (validate_required_cc(CREDIT_CARD_NUM,"Please enter your credit card number")==false)
		  {CREDIT_CARD_NUM.focus();return false}
		if (validate_required_cc(CSC,"Please enter your credit card number security code located on the back of the card")==false)
		  {CSC.focus();return false}
		if (validate_required_cc(EXP_MONTH,"Please enter your credit card expiry month")==false)
		  {EXP_MONTH.focus();return false}
		if (validate_required_cc(EXP_YEAR,"Please enter your credit card expiry year")==false)
		  {EXP_YEAR.focus();return false}
		if (validate_ccnum(CREDIT_CARD_NUM,"Please check the credit card number entered (must be correct length and no spaces)")==false)
		  {CREDIT_CARD_NUM.focus();return false}
	}
}
-->