//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {
		if(!IsEmpty(contact_name, 'Please enter Name.'))
		{
			return false;
		}
		
		if(!IsEmpty(contact_phone, 'Please enter Phone.'))
		{
			return false;
		}
		else if(!IsPhone(contact_phone, 'Oppsss!!! Invalid Phone specified.'))
		{
			return false;
		}
		
		if(!IsEmpty(contact_email, 'Please enter Email.'))
		{
			return false;
		}
		else if(!IsEmail(contact_email, 'Oppsss!!! Invalid Email specified.'))
		{
			return false;
		}
		
		if(contact_me_phone.checked == false && contact_me_email.checked == false)
		{
			alert('Please select Contact me by.');
			contact_me_phone.focus();
			return false;
		}
		
		if(!IsEmpty(contact_comment, 'Please enter Requests / Comments.'))
		{
			return false;
		}
	}
	
	return true;
}
