document.write("<input id=\"search\" type=\"text\" placeholder=\"wyszukaj na chomiku\">");
document.write("<a id=\"send\" onclick=\"start();\">wyœlij</a>");
function start(){
var szukany = document.getElementById("search")
document.getElementById("send").href = "http://chomikuj.pl/action/SearchFiles?ref=cpp_popup&FileName="+szukany.value+"&FileType=all";}