Event.onDOMReady(function() {


/* FORMIDABLE: Framework Formidable.path initialization */
Formidable.initialize({path: 'http://www.anamar.org.tr/typo3conf/ext/ameos_formidable/'});



/* FORMIDABLE: Form 'regform' instance description */
Formidable.Context.Forms["regform"] = new Formidable.Classes.FormBaseClass(
		{"sFormId":"regform","Misc":{"HiddenIds":{"Lister":{"page":"regform_AMEOSFORMIDABLE_DHLISTER_PAGE","sortField":"regform_AMEOSFORMIDABLE_DHLISTER_SORT_FIELD","sortDirection":"regform_AMEOSFORMIDABLE_DHLISTER_SORT_DIRECTION"}},"Urls":{"Lister":{"sortAction":"\/Kayit.40.0.html#LISTER_regform"},"Ajax":{"event":"http:\/\/www.anamar.org.tr\/index.php?eID=tx_ameosformidable&object=tx_ameosformidable&servicekey=ajaxevent"}},"MajixSpinner":{}}}
	);



/* FORMIDABLE: Calendar regform_dt_birth initialization */
if($("regform_dt_birth")) {
		Calendar.setup({"inputField":"regform_dt_birth","ifFormat":"%d\/%m\/%Y","showsTime":false,"button":"regform_dt_birth_trigger","singleClick":true,"step":1});
	}



/* FORMIDABLE: Box regform_anonymous_32023a5a34 initialization */
Formidable.Context.Forms["regform"].Objects["regform_anonymous_32023a5a34"] = new Formidable.Classes.Box(
	{"id":"regform_anonymous_32023a5a34","formid":"regform","hasdata":false}
);



/* FORMIDABLE: Box regform_transportation_info initialization */
Formidable.Context.Forms["regform"].Objects["regform_transportation_info"] = new Formidable.Classes.Box(
	{"id":"regform_transportation_info","formid":"regform","hasdata":false}
);



/* FORMIDABLE: RdtBaseClass regform_email initialization */
Formidable.Context.Forms["regform"].Objects["regform_email"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_email","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_name initialization */
Formidable.Context.Forms["regform"].Objects["regform_name"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_name","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_surname initialization */
Formidable.Context.Forms["regform"].Objects["regform_surname"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_surname","formid":"regform"}
);



/* FORMIDABLE: ListBox regform_sex initialization */
Formidable.Context.Forms["regform"].Objects["regform_sex"] = new Formidable.Classes.ListBox(
	{"id":"regform_sex","formid":"regform"}
);



/* FORMIDABLE: Date regform_dt_birth initialization */
Formidable.Context.Forms["regform"].Objects["regform_dt_birth"] = new Formidable.Classes.Date(
	{"id":"regform_dt_birth","formid":"regform"}
);



/* FORMIDABLE: ListBox regform_event initialization */
Formidable.Context.Forms["regform"].Objects["regform_event"] = new Formidable.Classes.ListBox(
	{"id":"regform_event","formid":"regform"}
);



/* FORMIDABLE: ListBox regform_country initialization */
Formidable.Context.Forms["regform"].Objects["regform_country"] = new Formidable.Classes.ListBox(
	{"id":"regform_country","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_club initialization */
Formidable.Context.Forms["regform"].Objects["regform_club"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_club","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_address initialization */
Formidable.Context.Forms["regform"].Objects["regform_address"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_address","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_phone initialization */
Formidable.Context.Forms["regform"].Objects["regform_phone"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_phone","formid":"regform"}
);



/* FORMIDABLE: ListBox regform_transportation initialization */
Formidable.Context.Forms["regform"].Objects["regform_transportation"] = new Formidable.Classes.ListBox(
	{"id":"regform_transportation","formid":"regform"}
);



/* FORMIDABLE: ListBox regform_poa initialization */
Formidable.Context.Forms["regform"].Objects["regform_poa"] = new Formidable.Classes.ListBox(
	{"id":"regform_poa","formid":"regform"}
);



/* FORMIDABLE: CheckSingle regform_agree initialization */
Formidable.Context.Forms["regform"].Objects["regform_agree"] = new Formidable.Classes.CheckSingle(
	{"id":"regform_agree","formid":"regform"}
);



/* FORMIDABLE: RdtBaseClass regform_action initialization */
Formidable.Context.Forms["regform"].Objects["regform_action"] = new Formidable.Classes.RdtBaseClass(
	{"id":"regform_action","formid":"regform"}
);



/* FORMIDABLE: CLIENT Event onload for regform.transportation_info */
Formidable.f('regform').executeClientEvent('regform_transportation_info', false, {"init":{},"attachevents":{},"tasks":{}});



/* FORMIDABLE: RDT Events */
Formidable.f("regform").attachEvent("regform_transportation", "change", function(event) {
		  $('regform_transportation_info').style.display = $('regform_transportation').value == 0 ? 'none' : '';
		  calcFee();
		  });
Formidable.f("regform").attachEvent("regform_poa", "change", function(event) {
				  calcFee();
				  });
Formidable.f("regform").attachEvent("regform_action", "click", function(event) {Event.stop(event);
Formidable.f('regform').addFormData({"action":"1"});Formidable.f('regform').submitFull();});
});
