function validateForm(did)
{
	trimFields();
	if(obj.full_name.value == "")
	{
		alert("Please enter your Full Name");
		obj.full_name.focus();
		return;
	}
	if(obj.phone.value == "")
	{
		alert("Please enter your Phone Number");
		obj.phone.focus();
		return;
	}
	if(obj.email.value == "")
	{
		alert("Please enter your Email ID");
		obj.email.focus();
		return;
	}
	if(!chkEmail(obj.email.value))
	{
		alert("The Email ID appears to be invalid!\nPlease review and correct it.");
		obj.email.focus();
		obj.email.select();
		return;
	}
	//All okay?
	obj.action = "distributors/"+did+"/contact.html";
	obj.submit();

}

function setBlank(val)
{
	if(val != "")
		obj.province.value = '';
}

function setIndex(val)
{
	if(val != "")
		obj.state.selectedIndex = 0;
}