function ValidateFormFreeTrial()
{
		$("#frmFreeTrial").validate({
		rules:
				{
					b_name: "required",
					b_companyname: "required",
					businesstype: "required",
					phone: "required",
					email: {
						required: true,
						email: true
					},
					password: {
						required: true,
						minlength: 4
					},
					verifypassword: {
						required: true,
						minlength: 4,
						equalTo: "#password"
					}
				},

		messages:
				{
					b_name: "Required.",
					b_companyname: "Required.",
					businesstype: "Required.",
					phone: "Required.",
					email: {
						required: "Required.",
						email: "Invalid."
					},
					password: {
						required: "Required.",
						minlength: "Invalid."
					},
					verifypassword: {
						required: "Required.",
						minlength: "Invalid.",
						equalTo: "Invalid."
					}
				}
		});
		
		$("#phone").mask("999-999-9999");
}

function loadCountyList(state)
{
//	$("#searchcounty").removeOption(/./);

	if (state != "")
	{
		// Get the xml file
		$.get("/projects/listcounty.asp?UID=<%=UID%>&state=" + state, {}, function(xml){

			var options = '';
			options += '<option value="">County</option>';

			$("county", xml).each(function(i){
//				$("#searchcounty").addOption($(this).find("fip").text(), $(this).find("state").text() + ' - ' + $(this).find("name").text());
				options += '<option value="' + $(this).find("fip").text() + '">' + $(this).find("state").text() + ' - ' + $(this).find("name").text() + '</option>';
			});

			$("#searchcounty").html(options);

//			$("#searchcounty").addOption("", "County");
		});
	}
}

function menuover(event)
{
	$("#businesstype").css("visibility", "hidden");
}

function menuout(event)
{
	$("#businesstype").css("visibility", "visible");
}
