function Validate_Form(frm,prodInq)
{
	with(frm)
	{
		if(prodInq == '')
		{
			var checkProductSelection = checkProductSelect();
			var checkRadioButton = '';
			if(checkProductSelection == false)
			{
				return false;
			}
		
			if(!IsEmpty(qty, 'Please enter quantity.'))
			{
				return false;
			}
			
			for(i=0;i<plan_to_purc.length;i++)
			{
				if (plan_to_purc[i].checked)
				{
					checkRadioButton = plan_to_purc[i].value //set found_it equal to checked button's value
				} 
			}
		}
		if(checkRadioButton == '')
		{
			alert('Please select When do you plan to purchase?');
			return false;
		}
		if(!IsEmpty(inq_name, 'Please enter your name.'))
		{
			return false;
		}
		else if(!IsEmpty(inq_phone, 'Please enter phone number.'))
		{
			return false;
		}
		else if(!IsEmail(inq_email, 'Oppsss!!! Invalid email address specified.'))
		{
			return false;
		}
		else
		{
			return true;
		}
	}
}

//====================================================================================================
//	Function Name	:	SendInquiry_Click()
//----------------------------------------------------------------------------------------------------
function SendInquiry_Click(Prod_Id, Action)
{
	xajax_ProductAjaxCall(Action,Prod_Id);
}

function reloadCaptcha()
{
	document.getElementById("capatch_image_id").src = "../image.php?time="+ Date();
}