
window.addEvent('domready', function(){

	// The elements used.
	var myForm = document.id('myForm'),
		myResult = document.id('myResult');
		
	document.id('myFormActivate').value = 'bvwm1';

	// Labels over the inputs.
	myForm.getElements('[type=text], textarea').each(function(el){
		new OverText(el);
	});

	// Validation.
	new Form.Validator.Inline(myForm);

	// Ajax (integrates with the validator).
	new Form.Request(myForm, myResult, {
		requestOptions: {
			'spinnerTarget': myForm
		},
		onComplete: function() {
			myForm.getElement('fieldset').hide();
		}
	});

});

