function validateForm(do_reload)
{
	// check to see if a human has done this
	if ((do_reload===0)&&(ta_clk>=0))
	{
		// probably not a person
		ta_fb.pop_warn("Sorry, there was a problem submitting your information. Please re-type the information and try again.");
		return false;
	}

	// shortcut
	var frm = ta_fb.get_object('sec_image_demo');

	// check for double submit
	if (parseInt(frm.is_click.value,10)!==0) {return false;}

	// are we reloading or submitting
	if (do_reload===1)
	{
		// clear the count
		ta_clk = 0;

		// set some bits
		frm.is_reload.value = '1';
		frm.is_submit.value = '0';
		frm.is_click.value = 0;

		// submit it
		frm.submit();
		return false;
	}

	// this is a submission, check it

	// check for blanks
	if (ta_fb.no_blank_allowed(frm.username,'User Name')) {return false;}
	if (ta_fb.no_blank_allowed(frm.value2,'Security Code')) {return false;}

	// do other validations
	if (ta_fb.compare_codes(frm.value1,frm.value2)) {return false;}

	// set some bits
	frm.is_reload.value = '0';
	frm.is_submit.value = '1';

	// store the click count
	frm.is_click.value = ta_clk;

	// set up to show in process
	ta_fb.show_inproc_form();

	// submit the form, all is good
	frm.submit();
	return false;
}

