function faq(obj) {
	$.ajax({
	   type: 'POST',
	   url: $(obj).attr('action'),
	   data: $(obj).serialize(),
	   success: function(msg){
		 $('#message').fadeIn('slow').html('<p style="text-align:center;background:#d0f5ff;color:#333;font-weight:bold;font-size:17px;padding:20px;">New FAQ added to site.</p>').fadeOut(4000);
		 //setTimeout($('html').load('../admin/faq.php'),2000);
		 setTimeout(window.location.reload(),3000);
	   }
	 });
	 return false;
}

function faq_update(obj,id) {
	$.ajax({
	   type: 'POST',
	   url: $(obj).attr('action'),
	   data: $(obj).serialize(),
	   success: function(msg){
		 $('#'+id).hide().fadeIn('slow').html('<p style="text-align:center;background:#d0f5ff;color:#333;font-weight:bold;font-size:17px;padding:20px;">Answer updated.</p>');
	   }
	 });
	 return false;
}

function faq_delete(obj,id) {
	$.ajax({
	   type: 'POST',
	   url: $(obj).attr('action'),
	   data: $(obj).serialize(),
	   success: function(msg){
		 $('#'+id).hide().fadeIn('slow').html('<p style="text-align:center;background:#d0f5ff;color:#333;font-weight:bold;font-size:17px;padding:20px;">Question deleted.</p>');
	   }
	 });
	 return false;
}
