//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_ContactForm(frm)
{
	with(frm)
    {	
		if(!IsEmpty(cont_name, 'Please enter your Name.'))
		{
			return false;
		}	
		if(!IsEmpty(cont_phone, 'Please enter your phone No.'))
		{
			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(!IsEmpty(cont_confirm_email, 'Please confirm your Email Address.'))
		{
			return false;
		}
		else if(!IsEmail(cont_confirm_email, 'Oppsss!!! Invalid Confirm Email Address specified.'))
		{
			return false;
		}	
		if(cont_email.value!=cont_confirm_email.value)
		{
			alert("Email address and Confirm email address are not same");
			return false;
		}
		
				
	}
	
	return true;
}

