document.write('<form action="javascript:pressEnter()" name="searchWorld" onsubmit="return false;">');
document.write('<input type="text" onkeydown="checkInput()" maxlength="100" size="16" style=\"width:100px;height:18px;\" title="Bitte Suchbegriff eingeben" name="keyword" id="keyword" value=""/>');
document.write(' <select style="width:140px;height:22px;" onchange="setEngine(this.options[this.options.selectedIndex].value)" id="chooseSite" name="chooseSite">');
document.write('<option >Suchen</option>');
document.write('<option value="get:http://www.google.de/search?q=site:lindnerei.de %KEYWORD%">Google Lindnerei</option>')
document.write('<option value="get:http://search.cpan.org/search?query=%KEYWORD%&mode=all">Search Cpan</option>');
document.write('<option value="get:http://perldoc.perl.org/search.html?q=%KEYWORD%">Perldoc</option>');
document.write('<option value="get:http://www.mysql.com/search/?q=%KEYWORD%&=Search">Mysql.com</option>');
document.write('<option value="get:http://www.perlboard.de/cgi-bin/suche.pl?muster=%KEYWORD%&treffer_anzahl=1000000&max_tiefe=2&submit=suche+starten">Perlguide</option>');
document.write('<option value="get:http://board.perl-community.de/perl-bin/board.pl?words=%KEYWORD%&boards=all&searchfrom=all&action=search">perl-community</option>');
document.write('<option value="get:http://suche.de.selfhtml.org/cgi-bin/such.pl?suchausdruck=%KEYWORD%&case=on&feld=alle&index_1=on&hits=101">selfhtml</option>');
document.write('<option value="get:http://cpan.uwinnipeg.ca/search?query=%KEYWORD%&mode=module">Cpan Modules</option>');
document.write('<option value="get:http://cpan.uwinnipeg.ca/search?query=%KEYWORD%&mode=dist">Cpan Distributions</option>');
document.write('<option value="get:http://cpan.uwinnipeg.ca/search?query=%KEYWORD%&mode=author">Cpan Authors</option>');
document.write('<option value="get:http://cpan.uwinnipeg.ca/search?query=%KEYWORD%&mode=dist">Cpan Distributions</option>');
document.write('<option value="get:http://www.google.com/search?q=site:cppreference.com %KEYWORD%">CPP Reference</option>');
document.write('<option value="get:http://trolltech.com/search?SearchableText=%KEYWORD%">Qt Trolltech</option>');
document.write('<option value="get:http://www.heise.de/newsticker/search.shtml?T=%KEYWORD%&button=los%21">Heise.de</option>');
document.write('<option value="get:http://www.google.de/search?hl=de&ie=UTF-8&q=%KEYWORD%&btnG=Suche&meta=lr%3Dlang_de">Google</option>');
document.write('</select> ');
document.write('</form>');
var uA = navigator.userAgent;
var MSIE = uA.match(/MSIE/g);
if(!MSIE){
window.captureEvents(Event.KEYDOWN);
}
document.onkeydown = pressEnter;
var inputk = 0;
var s = 0;
var searchEngine = "get:/fulltext.html&query=%KEYWORD%";
function pressEnter(Event){
if(inputk == 1 ){
if(!MSIE){
if (Event.which == 13 ) {
searchIT();
}
}else{
if (window.event.keyCode == 13) {
searchIT();
}
}
}
}
function setEngine(engine){
searchEngine = engine;
searchIT();
}
function checkInput(){
var g = document.getElementById("keyword").value;
if(g.length < "3"){
inputk = 0;
}else{
inputk = 1;
}
}
function searchIT(){
value = searchEngine;
var i = 0;
var method = "get";
while (i < value.length){
if (value.substring(i, i+3) == "get"){
get(value.substring(i+4,value.length));
i = value.length;
}
if(value.substring(i, i+4) == "post"){
var j = i+5;
while(j < value.length){
if(value.substring(j, j+4) == "::::"){
var formi = value.substring(i+5,j);
var pid = value.substring(j+4,value.length);
post(formi,pid);
i = value.length;
j = value.length;
}
j++;
}
}
i++;
}
}
var q = param('query');
if(q)
document.getElementById("keyword").value = param('query');
var info = "Suchbegriff ins Feld eingeben auf die gewuenschte Suchmaschine auswahlen.";
function get(Url){
Submit = "GET";
var gesucht = document.getElementById("keyword").value;
if(gesucht.length == "0"){
alert(info);
return;
}
Url = Url.replace("%KEYWORD%",gesucht);
if( searchEngine == "get:/fulltext.html&query=%KEYWORD%"){
location.href = Url;
}else{
window.open(Url);
}
}
function post(frm, SubInput){
var gesucht = document.getElementById("keyword").value;
if(gesucht.length == "0"){
alert(info);
return;
}
document.getElementById(SubInput).value = gesucht;
document.forms[frm].submit();
}