
var $jq = jQuery.noConflict();

$jq(document).ready(function(){
	$jq("form#alexa").submit(function(){
		if($jq(".input_1").val()==""){alert("Error: Query contents can't for empty!");return false;}
		$jq('#show').empty();
		$jq('#show').append("<br><br><center><img src='/tools/images/ajax-loader.gif'><br>正在查询，请稍候......</center>");
		$jq.post("/tools/GooglePr.php",{URL:$jq("#word").val()},function(Date){
			$jq('#show').empty();
			$jq('#show').html(Date);
		});
		return false;
		//$jq(this).bind("submit", function(){ return false; });
	});
	$jq(".link").click(function(){
		$jq('#show').empty();
		$jq('#show').append("<br><br><center><img src='/tools/images/ajax-loader.gif'><br>正在查询，请稍候......</center>");
		$jq.post("/tools/message.php",{word:$jq(this).text()},function(Date){
			$jq('#show').empty();
			$jq('#show').html(Date);
		});
		return false;
	});
	$jq('.urls').click(function(){
		var b = $jq(this).text();
		$jq("#word").val(b);
		return false;
	});
});


