anchor.diff:  				$("#dialog").dialog(
   					{ buttons: [{
   						text: "登録", click: function() {
  -							// #new_qusubmitを行なう。
  +							// #new_quaにsubmitを行なう。
   							// 実行後にwelcome/index.html.erbを再表示する。
  -							// $("#new_qua").ajax(  );
  +							$("#new_qua").ajaxSubmit(function(data) {
  +									var qua = data.qua;
  +									var image = '<img alt="No image" src="/quas/' + qua.id + '/show_image">'
  +									entryMapIcon(qua.id, qua.name, qua.latitude, qua.longitude, qua.quality, qua.effect,
  +										qua.stay_required, qua.price, qua.url, qua.image1_caption, image , true);
  +									$("#dialog").dialog( "close" );
  +							});
  +
  +							/*
   							$.ajax({
   								url: $("#new_qua").attr('action'),
   								type: $("#new_qua").attr('method'),
  
positive.code: 								success: function(data) {
  									var qua = data.qua;
  									var image = '<img alt="No image" src="/quas/' + qua.id + '/show_image">'
  									entryMapIcon(qua.id, qua.name, qua.latitude, qua.longitude, qua.quality, qua.effect, 
  										qua.stay_required, qua.price, qua.url, qua.image1_caption, image , true);
  									$("#dialog").dialog( "close" );
  								}
  							});
  						}
  					},{
  						text: "キャンセル", click: function() {
  
negative.code: 	<script type="text/javascript" src="//maps.google.com/maps/api/js?sensor=false"></script>
  	<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
  	<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
  	<script src="http://malsup.github.com/jquery.form.js"></script>
  	<%= javascript_include_tag "googlemap" %>
  	<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css">
  	<script type="text/javascript">
  