
function verify(i, v, s) {
	var ids = { id: i, value: v, value2: s };
	$.ajax({
		type: "post",
		url: "http://www.onlineleaf.com/scripts/verify.php",
		data: ids,
		dataType: "script",
		beforeSend: function() { $("#"+i).css("background-image", "url('http://www.rune-jensen.com/images/loader-small.gif')"); }
	});
}
jQuery(document).ready(function() {
	$("input").each(function() {
		$(this).change(function() { verify($(this).attr("id"), $(this).attr("value"), $("#password").attr("value")); });
	});

	$("form").each(function(i) {
		var url = "http://www.onlineleaf.com/Contact/";
		$(this).ajaxForm({
			url: url,
			type: "post",
			dataType: "script",
			beforeSubmit: function() { $("form").fadeTo(200, 0.01); }
		});
	});
	$("textarea.autogrow").autogrow({ minHeight: 10, lineHeight: 18 });
});