$(document).ready( function() {
	$('form', document).eq(1).bind('submit', function() { return false; });
});

function validate()
{
	var form = $('form', document).eq(1);
	var go = true;
	var patt = /^[a-z]+[a-z0-9\.\-]*@[a-z][a-z0-9\.]*$/i
	var emsg = '';
	$("input.required", form).each( function() {
		$(this).val($.trim(this.value));
		if( !this.value )
			go = false;
		else if ( $(this).attr('name') == "email" ) {
			if(!patt.test(this.value)) {
				go = false;
				emsg = "\nOr maybe you have entered an e-mail address that seems not valid";
			}
		}
	});

	if( go ) {
		form.unbind("submit");
		return true;
	}
	alert( "Remember to fill the fields marked with asterisk, they are required" + emsg );
	return false;

}