function saveForm(formName) {
	names = {form: formName}
	$.each($('input'), function(i, el) {
		if($(el).val().length) {
			if($(el).attr('type') != 'checkbox') {
				names[$(this).attr('name')] = $(this).val();
			}
			else if($(el).attr('checked')) {
				names[$(this).attr('name')] = $(this).val();
			}
			else {
				names[$(this).attr('name')] = 'remove';
			}
		}
		else {
			names[$(this).attr('name')] = 'remove';
		}
	});
	$.each($('select'), function(i, el) {
		if($(el).val().length) {
			if($(el).attr('type') != 'checkbox') {
				names[$(this).attr('name')] = $(this).val();
			}
			else if($(el).attr('checked')) {
				names[$(this).attr('name')] = $(this).val();
			}
		}
	});
	$.each($('textarea'), function(i, el) {
		if($(el).val().length) {
			if($(el).attr('type') != 'checkbox') {
				names[$(this).attr('name')] = $(this).val();
			}
		}
		else {
			names[$(this).attr('name')] = 'remove';
		}
	});
	$.get('forms.inc.php', names);
}
