/* author: Golant */
/* Creation date: 11.10.2004 */
/* Update date: 27.03.07 */

function filterausw(){
i = Form0.Fiar.options.selectedIndex;
if (i == "0")
{I3.location.href = "0.html"};
if (i == "1")
{I3.location.href = "start/start_filter_air.html"};
if (i == "2")
{I3.location.href = "start/start_filter_oil.html"};
if (i == "3")
{I3.location.href = "start/start_filter_kraft.html"};
if (i == "4")
{I3.location.href = "start/start_filter_hydr.html"};
if (i == "5")
{I3.location.href = "start/start_filter_hg.html"};
if (i == "6")
{I3.location.href = "start/start_filter_kabin.html"};
if (i == "7")
{I3.location.href = "start/start_filter_kf.html"};
if (i == "8")
{I3.location.href = "start/start_filter_le.html"};
if (i == "9")
{I3.location.href = "start/start_filter_lt.html"};
if (i == "10")
{I3.location.href = "start/start_filter_sport.html"};
if (i == "11"){
if (top.lang == "rus")
{I3.location.href = "start/start_filter_ers_rus.html"};
if (top.lang == "deu")
{I3.location.href = "start/start_filter_ers_deu.html"};
if (top.lang == "eng")
{I3.location.href = "start/start_filter_ers_eng.html"};
};}

function productstatus(){
i = myform.product.options.selectedIndex
y = myform.product.options[i].value
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:46; dialogHeight:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function filtrstatus(){
i = myform.product.options.selectedIndex
y = "../Filter_SCT/1" + myform.product.options[i].value
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:45.5; dialogHeight:41.1; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function filtrstatus_sport(){
i = myform.product.options.selectedIndex
if (top.lang == "rus")
{y = "../Filter_SCT/1" + myform.product.options[i].value +"_rus.html"
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:45.5; dialogHeight:41.1; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")};
if (top.lang == "deu")
{y = "../Filter_SCT/1" + myform.product.options[i].value + "_deu.html"
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:45.5; dialogHeight:41.1; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")};
if (top.lang == "eng")
{y = "../Filter_SCT/1" + myform.product.options[i].value + "_eng.html"
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:45.5; dialogHeight:41.1; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")};
}

function filtrersatz(){
i = myform.product.options.selectedIndex
y = "../Filter_SCT/1" + myform.product.options[i].value
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:45.5; dialogHeight:41.1; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function bremstatus(){
i = myform.product.options.selectedIndex
y = "../Bremse/1" + myform.product.options[i].value
i_WIN = window.showModalDialog(y,"i_WINNAME","dialogWidth:46; dialogHeight:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function beltstatus(){
i = myform.product.options.selectedIndex
y = "../Belts_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function kerzstatuscl(){
i = myform.product.options.selectedIndex
y = "../Kerzen_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function kerzstatusperf(){
i = myform.product.options.selectedIndex
y = "../Kerzen_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function kerzstatuspl(){
i = myform.product.options.selectedIndex
y = "../Kerzen_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function kerzstatustun(){
i = myform.product.options.selectedIndex
y = "../Kerzen_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function kerzstatusgl(){
i = myform.product.options.selectedIndex
y = "../Kerzen_SCT/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function lampstatus(){
i = myform.product.options.selectedIndex
y = "../Lamps/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:42; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")
}

function bladestatus(){
i = myform.product.options.selectedIndex
y = "../Blades/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:28; dialogHeight:28; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")}

function amortstatus(){
i = myform.product.options.selectedIndex
y = "../Amort/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")}

function andstatus(){
i = myform.product.options.selectedIndex
y = "../Andere/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")}

function podstatus(){
i = myform.product.options.selectedIndex
y = "../Podsh/" + myform.product.options[i].value
i_WIN = window.showModalDialog(y, "i_WINNAME", "dialogWidth:46; dialogHeight:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")}

function FilOpen_onclick(){
divfil.style.visibility = "visible"
I1.location.href = "start/start_filter.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr1.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Br_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_br.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake1.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Ker_Open_onclick(){
divfil.style.visibility = "hidden"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze1.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"
{if (top.lang == "rus")
	I1.location.href = "start/start_kerz_rus.html"
if (top.lang == "eng")
	I1.location.href = "start/start_kerz_eng.html"
if (top.lang == "deu")
	I1.location.href = "start/start_kerz_deu.html"}}

function Bel_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_belts.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt1.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Lampe_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_lamps.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe1.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Blade_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_blades.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade1.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Amort_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_amort.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort1.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function Pod_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_pod.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod1.gif"
ButForm.B9_i.src = "images/Bilder_anw/and2.gif"}

function And_Open_onclick(){
divfil.style.visibility = "hidden"
I1.location.href = "start/start_and.html"
I2.location.href = "0.html"
I3.location.href = "0.html"
ButForm.B1_i.src = "images/Bilder_anw/filtr2.gif"
ButForm.B2_i.src = "images/Bilder_anw/brake2.gif"
ButForm.B3_i.src = "images/Bilder_anw/belt2.gif"
ButForm.B4_i.src = "images/Bilder_anw/kerze2.gif"
ButForm.B5_i.src = "images/Bilder_anw/lampe2.gif"
ButForm.B6_i.src = "images/Bilder_anw/blade2.gif"
ButForm.B7_i.src = "images/Bilder_anw/amort2.gif"
ButForm.B8_i.src = "images/Bilder_anw/pod2.gif"
ButForm.B9_i.src = "images/Bilder_anw/and1.gif"}

function kerzenausw(){
i = KerzAusw.options.selectedIndex;
if (i == "1")
{top.I2.location.href = "start_kerz_cl.html"};
if (i == "2")
{top.I2.location.href = "start_kerz_perf.html"};
if (i == "3")
{top.I2.location.href = "start_kerz_pl.html"};
if (i == "4")
{top.I2.location.href = "start_kerz_tun.html"};
if (i == "5")
{top.I2.location.href = "start_kerz_gl.html"};
if (i == "6")
{top.I2.location.href = "start_kerz_kab.html"};
}

function click() {
if (event.button==2) {
alert('Copyright by SCT Germany!')}
}
document.onmousedown=click

function unvisible() 
{top.I3.location.href = "../0.html"}

function start_sct() 
{top.I3.location.href = "0.html";
top.I2.location.href = "0.html";
divfil.style.visibility = "hidden";
top.I1.location.href = "Start/start_all.html";}

function unvisible_all() 
{top.I3.location.href = "../0.html";
myform.product.style.visibility = "visible"}

/*==================================================*
 $Id$
 Copyright 2003 Patrick Fitzgerald
 http://www.barelyfitz.com/webdesign/articles/filterlist/

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *==================================================*/

function filterlist(selectobj) {

  // VARIABLES

  // HTML SELECT object
  this.selectobj = selectobj;

  // Flags for regexp matching.
  // "i" = ignore case; "" = do not ignore case
  this.flags = "i";

  // Make a copy of the options array
  this.optionscopy = new Array();
  for (var i=0; i < selectobj.options.length; i++) {
    this.optionscopy[i] = new Option();
    this.optionscopy[i].text = selectobj.options[i].text;
    this.optionscopy[i].value = selectobj.options[i].value;
  }

  //==================================================
  // METHODS
  //==================================================

  //--------------------------------------------------
  this.reset = function() {
  // This method resets the select list to the original state.
  // It also unselects all of the options.

    this.set("");
  }

  //--------------------------------------------------
  this.set = function(pattern) {
  // This method removes all of the options from the select list,
  // then adds only the options that match the pattern regexp.
  // It also unselects all of the options.
  // In case of a regexp error, returns false

    var loop=0, index=0, regexp, e;

    // Clear the select list so nothing is displayed
    this.selectobj.options.length = 0;

    // Set up the regular expression
    try {
      regexp = new RegExp(pattern, this.flags);
    } catch(e) {
      return;
    }

    // Loop through the entire select list
    for (loop=0; loop < this.optionscopy.length; loop++) {

      // Check if we have a match
      if (regexp.test(this.optionscopy[loop].text)) {

        // We have a match, so add this option to the select list
        this.selectobj.options.length = index + 1;
        this.selectobj.options[index].text = this.optionscopy[loop].text;
        this.selectobj.options[index].value = this.optionscopy[loop].value;
        this.selectobj.options[index].selected = false;

        // Increment the index
        index++;
      }
    }
  }

  //--------------------------------------------------
  this.set_ignore_case = function(value) {
  // This method sets the regexp flags.
  // If value is true, sets the flags to "i".
  // If value is false, sets the flags to "".

    if (value) {
      this.flags = "i";
    } else {
      this.flags = "";
    }
  }

}

