//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {		
		if(!IsEmpty(cont_name, 'Please enter your Name.'))
		{
			return false;
		}
		
		if(IsEmpty(cont_zip, ''))
		{
			if(!IsZip(cont_zip, 'Please enter valid Zipcode.'))
			{
				return false;
			}
		}
		if(!IsEmpty(cont_email, 'Please enter your Email Address.'))
		{
			return false;
		}
		else if(!IsEmail(cont_email, 'Oppsss!!! Invalid Email Address specified.'))
		{
			return false;
		}
		
		if(!IsPhone(cont_daytime_phone, 'Oppsss!!! Invalid Daytime Phone Number.'))
		{
			return false;
		}
		
		if(!IsPhone(cont_evening_phone, 'Oppsss!!! Invalid Evening Phone Number.'))
		{
			return false;
		}
		
		if(!IsPhone(cont_fax, 'Oppsss!!! Invalid Fax Number.'))
		{
			return false;
		}
		
		if(!IsEmpty(cont_verification, 'Please enter Text.'))
		{
			return false;
		}
	}
	
	return true;
}
