// JavaScript Document

	function pageReady() {
		//alert('Page Running');	
	}
	
	function checkSendForm() {
				sendform('frm_TAF','page_form','page_form_result','page_form_ajaxwait','');			
	}
	
	function formResult(jsonObj) {
		if (jsonObj.form == 'TAF form') {
			if (jsonObj.status == 'success') {
				formFail(jsonObj.message,jsonObj.form); // It's actually the same for this form.
			} else {
				formFail(jsonObj.message,jsonObj.form);
			}
		} else {

		}
	}
	
	function formFail(err,frm) {
		$('page_form_result').innerHTML = err;
		$('page_form_result').removeClass('hidden');
	}
