var url1='http://getfastit.com/search.php?qq='; var url2=''; function a(k) { window.location=url1+k+url2; }