
//
//	anonymous init function

contactFormSubmitHandler = genericFormSubmitHandler;
contactFormResponseHandler = genericFormResponseHandler;

(function () {
	var f, x;

	if (f = dojo.byId("contactForm"))
	{
		f.action = "handler.asp";
		x = new dojo.io.FormBind
		({
			formNode: f,
			handle: contactFormResponseHandler,
			mimetype: "text/json",
			sendTransport: true
		});
		x.onSubmit = contactFormSubmitHandler;
	}
})();
