/*
** Form.js
** Provides form specific client-side functionality
*/

$(function() {
	// Set focus to the first input element
	var ctrl = $("div.dataForm input").get(0);
	if ((ctrl) && (!ctrl.disabled)) {
		if (ctrl.focus) { ctrl.focus(); }
		if (ctrl.select) { ctrl.select(); }
   }
   
   // Indicate mandatory fields
   $("div.mandatory span.label").append("<span>*</span>");
});
