function validateForm()
{
	trimFields();
	if(obj.txtName.value == "")
	{
		alert("Please enter your Name.");
		obj.txtName.focus();
		return;
	}
	if(obj.txtTitle.value == "")
	{
		alert("Please enter Title");
		obj.txtTitle.focus();
		return;
	}
	if(obj.txtCompany.value == "")
	{
		alert("Please enter your Company or Organization");
		obj.txtCompany.focus();
		return;
	}
	if(obj.txtAddress.value == "")
	{
		alert("Please enter your Street Address");
		obj.txtAddress.focus();
		return;
	}
	if(obj.txtSuite.value == "")
	{
		alert("Please enter your Suite number");
		obj.txtSuite.focus();
		return;
	}
	if(obj.txtCity.value == "")
	{
		alert("Please enter your City");
		obj.txtCity.focus();
		return;
	}
	if(obj.cboState.selectedIndex == 0)
	{
		alert("Please select a State");
		obj.cmbState.focus();
		return;
	}
	if(obj.txtZip.value == "")
	{
		alert("Please enter Zip code");
		obj.txtZip.focus();
		return;
	}
	if(obj.txtMail.value == "")
	{
		alert("Please enter your Email Address.");
		obj.txtMail.focus();
		return;
	}
	if(!chkEmail(obj.txtMail.value))
	{
		alert("Please enter a valid Email Address.");
		obj.txtMail.focus();
		obj.txtMail.select();
		return;
	}
	if(obj.txtCaptcha.value == "")
	{
		alert("Please enter the 6-digit security code shown.");
		obj.txtCaptcha.focus();
		return false;
	}
	//All fine?
	obj.action = "ContactInfoMail.asp";
	obj.submit();
}


function disableCombo(chk)
{
	var hdnName = 'txt'+chk.name.substring(3);
	var cboName = 'cbo'+chk.name.substring(3);
	if(chk.checked == true)
	{
		obj.elements[cboName].disabled = false;
	}
	else
	{
		obj.elements[cboName].selectedIndex = 0;
		obj.elements[hdnName].value = obj.elements[cboName].options[obj.elements[cboName].selectedIndex].value;
		obj.elements[cboName].disabled = true;
	}
}

function storeValue(cbo)
{
	var hdnName = 'txt'+cbo.name.substring(3);
	obj.elements[hdnName].value = cbo.options[cbo.selectedIndex].value;
}
