var str="http://www.163.com/show.asp?id=1234";
var reg=/^http:\/\/www\.163\.com\/show\.asp\?id=[^\?\&]+$/g;
alert(reg.test(str));