function feedadmin() {


		$(document).keypress(function(evt){
					    if ((evt.keyCode == 10 || evt.keyCode == 13) && (evt.ctrlKey))
					    {
							$("#feedback_support").dialog( "open" );
					    }
				});


		var comment = $( "#comment" ),
			name = $("#name"),
			email = $("#email"),
			phone = $("#phone"),
			tips = $( ".validateTips" );

		function updateTips( t ) {
			tips
				.text( t )
				.addClass( "ui-state-highlight" );
			setTimeout(function() {
				tips.removeClass( "ui-state-highlight", 1500 );
			}, 500 );
		}


		function checkRegexp( o, regexp, n ) {
			if ( !( regexp.test( o.val() ) ) ) {
				o.addClass( "ui-state-error" );
				updateTips( n );
				return false;
			} else {
				return true;
			}
		}

		$( "#dialog-message" ).dialog({
			autoOpen: false,
			modal: false,
			buttons: {
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});


		$( "#feedback_support" ).dialog(
		{
		autoOpen: false,
		
		width: 360,
		modal: false,
		buttons: 
			{
				"Отправить": function() 
				{
					var dialog = $( this )
					var bValid = true;
					bValid = bValid && checkRegexp( comment, /^(.{10,})$/im, "Введите комментарий" );
					if ( bValid ) 
					{
						$.ajax(
						{
							  type: 'POST',
							  url: "/feedback_admin.php",
							  data: $("#feedback_support>form").serialize(),
							  success: function(data){
								  if (data.result == "ok"){
									dialog.dialog( "close" );
									$( "#dialog-message" ).dialog("open")} 
								   else {updateTips( "При отправке сообщения возникла ошибка" )}
							  },
							  dataType: "json"
						 });

						return false;

					}
				}
			 } 
		});

	}
