function validateCertificate()
{
	trimFields();
	if(obj.sender_name.value == "")
	{
		alert("Please enter Sender's Name.");
		obj.sender_name.focus();
		return;
	}
	if(obj.recipient_name.value == "")
	{
		alert("Please enter Recipient's Name.");
		obj.recipient_name.focus();
		return;
	}
	if(obj.recipient_email.value == "")
	{
		alert("Please enter Recipient's Email.");
		obj.recipient_email.focus();
		return;
	}
	if(!chkEmail(obj.recipient_email.value))
	{
		alert("Please enter a valid Recipient's Email.");
		obj.recipient_email.focus();
		obj.recipient_email.select();
		return;
	}
	if(obj.amount.selectedIndex == 0)
	{
		alert("Please select Amount.");
		obj.amount.focus();
		return;
	}
	if(obj.personal_message.value == "")
	{
		alert("Please enter Personal Message.");
		obj.personal_message.focus();
		return;
	}
	if(obj.personal_message.value.length >= 255)
	{
		alert("Personal Message must be within 255 characters.");
		obj.personal_message.select();
		obj.personal_message.focus();
		return;
	}
	obj.action = 'gift_certificates.html';
	obj.submit();
}

