function remove_field(element, item) {
 	element.parent().parent().remove();
	toggle_doc_button();
}

function toggle_doc_button() {
	var button = $('#add_doc_button');
	if ($('.attachments-row').length >= 5) {
		button.hide();
	}
	else {
		button.show();
	}
}



		function build_alt()
		{

		
		
			var q = $("#question").attr('value');

		$("#question_button").attr('alt','/questions/new/?question='+q+"&TB_iframe=true&height=600&width=740")
			//return_string = return_string + "&TB_iframe=true&height=600&width=740"
		
		}


