// ############################################################# // ### Copyright eRwin // ### http://www.la-start.ro // ############################################################# function sel(UrlAdress){ UrlAdress=document.frm.com[document.frm.com.selectedIndex].value; window.open(UrlAdress,"I1"); } var MAX_ENGINES = 100; var tp=''; var tpp=''; var find = 'gotyou'; var hold=0; var hold2=0; var gog=0; var ap=''; function MakeArray(n) { for (var i = 1; i <= n; i++) { this[i] = 0; } this.maxlen = n; this.len = 0; return this; } var engs = new MakeArray(MAX_ENGINES); function find_substring(needle, haystack) { var i, needlen = needle.length, haylen = haystack.length; for (i=0; i<=haylen-needlen; i++) { if (needle == haystack.substring(i,i+needlen)) return i; } return false; } function Engine(name, opts, home, search) { var gotcha = find_substring(find, search); this.name = name; this.opts = opts; this.home = home; this.pre_gotcha = search.substring(0,gotcha); this.post_gotcha= search.substring(gotcha+find.length, search.length); } function Add(style, name, opts, home, search) { engs.len++; if (engs.len <= engs.maxlen) { engs[engs.len] = new Engine(style, name, opts, home, search) } else { alert ('Better increase MAX_ENGINES: ' + engs.Len + '>' + engs.maxlen) } } function DisplayForm() { document.writeln('
'); document.writeln("

"); document.writeln('

'); document.writeln('
'); document.Gotchaform.query.focus() } function HandleForm(form){ var i, newq="", oldq = form.query.value; for (i=0; i