var thefirst = new LiveValidation( 'thefirst' );
thefirst.add( Validate.Presence );

var thesecond = new LiveValidation( 'thesecond' );
thesecond.add( Validate.Presence );

var thethird = new LiveValidation( 'thethird' );
thethird.add( Validate.Presence );
thethird.add( Validate.Numericality );

var thefourth = new LiveValidation( 'thefourth' );
thefourth.add( Validate.Email );

var thefifth = new LiveValidation( 'thefifth' );
thefifth.add( Validate.Presence );
thefifth.add( Validate.Numericality );


var form = document.getElementById( 'contactForm' );

form.onsubmit = function(e){
	var val= LiveValidation.massValidate( [ thefirst, thesecond, thethird, thefourth, thefifth ] );
	//alert('Is everything valid? ' + val);
	if(val)
	return true;
	return false;
}
