var Contact = {
	
	SubmitSmallForm : function ( form ) {
		var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
		if (  !filter.test($('frmContactSmall[email]').value) ) {
			alert("Bitte geben Sie eine korrekte E-Mail Adresse an.");
			return false;
		}
		
		new Ajax.Updater('divFrmSmallContact', HOME_URL + 'contact/sumbitsmallform/' , {
				onCreate: function() {},
				onComplete: function() {},
				onSuccess: function(req,json) {  },
				onFailure: function(req,json) {  },
				parameters: $(form).serialize()
			}
		);
	},
	
	
	SubmitForm : function ( form ) {
		new Ajax.Updater('frmContact', HOME_URL + 'contact/index/' , {
				onCreate: function() {},
				onComplete: function() {},
				onSuccess: function(req,json) {  },
				onFailure: function(req,json) {  },
				parameters: $(form).serialize()
				
			}
		);
	}
	
}
