
	function lookup(key) {

		if(key.length == 0) {
			// Hide the suggestion box.
			$('#search_auto').hide();
		} else if (key.length < 2) {
			
			
		} else {
			var args = {
					'key': key,
					'mid': 1,
					'ddvip_url_request': 'http://my.ddvip.com/universal/autofill'
				};


			$.ajax({
					type: "post",
					url: "/api.php",
					dataType: 'html',
					data: args,
					beforeSend: function(XMLHttpRequest){
						//ShowLoading();
					},
					success: function(data, textStatus) {
							$('#search_auto').show();
							$('#search_auto').html(data);

							$('#search_auto li:odd').addClass("li_bg4");
//							alert(data);
					},
					complete: function(XMLHttpRequest, textStatus){
						//HideLoading();
					},
					error: function(){

					}
			});	
		}
	}
	
	// lookup	
	function fill(thisValue) {
		$('#key').val(thisValue);
		setTimeout("$('#search_auto').hide();", 200);
	}





