function formSubmit(url,div, form) {
	seria = $(form).serialize();
	new Ajax.Request('logincheck.php',{
		method: 'post',
		postBody: seria,
		onSuccess: function(text) {
			var response = text.responseText || "no response text";
			new Effect.Fade($(div), {
				duration: 1, queue: 'end', afterFinish: function() {
					$(div).innerHTML = response;
					new Effect.Appear($(div), {
						duration: 1, queue: 'end', afterFinish: function() {
							}
					});
				}
			});
		},
		onFailure: function(fail) {
			alert(fail);
		}
	});
}