//====================================================================================================
//	Function Name	:	Validate_Form
//----------------------------------------------------------------------------------------------------
function Validate_Form(frm)
{
	with(frm)
    {	
		if(!IsEmpty(cont_name, 'Please enter your Name.'))
		{
			return false;
		}
		if(!IsEmpty(cont_phone, 'Please enter your Phone No..'))
		{
			return false;
		}
		else if(!IsPhone(cont_phone, 'Oppsss!!! Invalid Phone No.'))
		{
			return false;
		}
		if(!IsPhone(cont_ext, 'Oppsss!!! Invalid Phone Extention.'))
		{
			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;
		}
		
		var flg = false;
		
		for(i=1; i<=3; i++)
		{
			if(document.getElementById('contactto['+i+']').checked)
				flg = true;
		}
		
		if(!flg)
		{
			alert('Please Select Contact Purpose information.');
			return false;
		}
				
		if(!IsEmpty(cont_comments, 'Please enter your Comment.'))
		{
			return false;
		}
		if(!IsEmpty(code_of_image, 'Please enter Validation Code.'))
		{
			return false;
		}

	}
	
	return true;
}
