function validateForm(opt)
{
	trimFields();
	if(obj.first_name.value == "")
	{
		alert("Please enter the First Name.");
		obj.first_name.focus();
		return;
	}
	if(obj.last_name.value == "")
	{
		alert("Please enter the Last Name.");
		obj.last_name.focus();
		return;
	}
	if(obj.address.value == "")
	{
		alert("Please enter the Address.");
		obj.address.focus();
		return;
	}
	if(obj.city.value == "")
	{
		alert("Please enter the City.");
		obj.city.focus();
		return;
	}
	if(obj.state.selectedIndex == 0)
	{
		alert("Please enter the State.");
		obj.state.focus();
		return;
	}
	if(obj.zip.value == "")
	{
		alert("Please enter the Zip.");
		obj.zip.focus();
		return;
	}
	if(obj.email.value == "")
	{
		alert('Please enter Email Address');
		obj.email.focus();
		return;
	}
	if(!chkEmail(obj.email.value))
	{
		alert('Please enter a valid Email Address');
		obj.email.select();
		obj.email.focus();
		return;
	}
	if(obj.broker.value == "")
	{
		alert("Please enter the Current Broker/Dealer.");
		obj.broker.focus();
		return;
	}

	if((obj.best_time[0].checked == false) && (obj.best_time[1].checked == false))
    {
        alert("Please choose the Best time to call");
        obj.best_time[0].focus();
        return;
    }
	if(obj.security_code.value == "")
	{
		alert("Please enter the Security Code correctly.");
		obj.security_code.focus();
		return;
	}
	obj.action = "going_independent.php";
	obj.submit();
}
