//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {	
		if(!IsEmpty(contact_name, 'Please enter your name.'))
		{
			return false;
		}
		if(contact_phone_no.value == '' && contact_mobile_no.value == '')
		{
			alert("Please enter atleast one contact no");
			contact_phone_no.focus();
			return false;
		}
		if(!IsEmpty(contact_email, 'Please enter email address.'))
		{
			return false;
		}
		else if(!IsEmail(contact_email, 'Oppsss!!! Invalid email address specified.'))
		{
			return false;
		}
		if(!IsEmpty(code_of_image1, 'Please enter code shown in image.'))
		{
			return false;
		}
		if(!IsEmpty(code_of_image2, 'Please enter code shown in image.'))
		{
			return false;
		}
		}
	return true;
}

