anchor.diff:              function () { $('#u').val(img.MediaUrl); }
           ));
       });
  +}
  +
  +function bingImageSearch() {
  +    var bingSearch = $('#bingSearch'),
  +        bingSearchVal = bingSearch.val();
  +
  +    if (bingSearchVal.match(/[^\s]/)) {
  +        bingSearch.val('');
  +
  +        $.ajax({
  +            type : 'GET',
  +            url : 'http://api.bing.net/json.aspx',
  +            data : {
  +                AppId : 'A120380275E87F0071F163210211F0592D0E964C',
  +                Query : bingSearchVal + ' imagesize:Medium',
  +                Sources : 'Image',
  +                Version : '2.0',
  +                Market : 'en-us',
  +                'Image.Count' : 5,
  +                'Image.Offset' : 0,
  +                JsonType : 'callback'
  +            },
  +            dataType : 'jsonp',
  +            jsonpCallback : 'showBingImages',
  +            jsonp : 'JsonCallback'
  +        });
  +    }
   }
   
   $(function () {
  
positive.code:         $('#u').focus();
      }
  
      bingSearch = $('#bingSearch');
  
      bingSearch.keypress(function (event) {
          if (event.which == 13) {
              event.preventDefault();
              bingSearchVal = bingSearch.val();
              bingSearch.val('');
              $.ajax({
                  type : 'GET',
                  url : 'http://api.bing.net/json.aspx',
                  data : {
                      AppId : 'A120380275E87F0071F163210211F0592D0E964C',
                      Query : bingSearchVal + ' imagesize:Medium',
                      Sources : 'Image',
                      Version : '2.0',
                      Market : 'en-us',
                      'Image.Count' : 5,
                      'Image.Offset' : 0,
                      JsonType : 'callback'
                  },
                  dataType : 'jsonp',
                  jsonpCallback : 'showBingImages',
                  jsonp : 'JsonCallback'
              });
          }
      });
  });
  </script>
  
  
negative.code: <div id="bingImageResults"></div>
  
  <form action="" method="get">
  <input type="text" id="bingSearch" />
  <input type="button" id="bingButton" value="Bing Image Search" />
  </form>
  
  </div>
  