function validateFrm(frm)
{
	if (frm.fldCompanyName.value == "")
	{	window.alert("Please enter your company name");
		frm.fldCompanyName.focus();
		return false;

	}

	if (frm.fldContactName.value == "")
	{	window.alert("Please enter your contact name");
		frm.fldContactName.focus();
		return false;
	}

	if (frm.fldCompanyAddress.value == "")
	{	window.alert("Please enter your company address");
		frm.fldCompanyAddress.focus();
		return false;
	}

	if (!eMailcheck(frm.fldEmailAddress.value))
		{	window.alert("Please enter a valid email address");
			frm.fldEmailAddress.focus();	
			return false;			
		}


	if (frm.fldTelephoneNo.value == "")
	{	window.alert("Please enter your company telephone number");
		frm.fldTelephoneNo.focus();
		return false;
	}

	if ( (frm.fldProduct1.value == "") && (frm.fldProduct2.value == "") && (frm.fldProduct3.value == "") && (frm.fldProduct4.value == "") )
	{	window.alert("Please enter details of at least one of the products you intend to promote");
		frm.fldProduct1.focus();
		return false;
	}

	var blnCountyChecked, i;
	blnCountyChecked = false;
	for(i=0; i<frm.elements.length; i++)
	{
   		if ( (frm.elements[i].name.indexOf('Chk')==0)&& (frm.elements[i].checked) )
		{	
			blnCountyChecked = true; 
		}
   }

	if (!(blnCountyChecked))
	{	window.alert("Please select at least one county you wish to target");
		frm.Chk0.focus();
		return false;
	}

	if (frm.strCAPTCHA.value == "")
	{	window.alert("Please enter the form validation characters exactly as shown in the image.");
		frm.strCAPTCHA.focus();
		return false;
	}

	return true;
}