/* author: Golant */
/* Creation date: 25.10.2004 */
/* Update date: 02.08.06  */

var IntBatNo =""

function start(){
top.I1.location.href = "0.html"
top.I3.location.href = "0.html"}

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:43; center:yes; location:0; directories:0; status:0; menubar:0; copyhistory:0; resizable:1")}

function kerzstatus(){
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 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 andstatus(){
i = myform.product.options.selectedIndex
y = "../Andere/" + 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 ClickRadio (IntBatNo) {
if (sct == "1"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEM.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {
		top.I1.location.href = "Start/StartRef.html"
		top.I3.location.href = "0.html"}}
if (sct == "2") {
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMbr.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {top.I1.location.href = "Start/StartRefbr.html"
		top.I3.location.href = "0.html"}}
if (sct == "4"){
	if (IntBatNo == "1")	 {
		top.I1.location.href = "Start/StartOEMbel.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {top.I1.location.href = "Start/StartRefbel.html"
			top.I3.location.href = "0.html"}}
if (sct == "3"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMker.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {top.I1.location.href = "Start/StartRefker.html"
		top.I3.location.href = "0.html"}}
if (sct == "5"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMlamp.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {top.I1.location.href = "Start/StartReflamp.html"
		top.I3.location.href = "0.html"}}
if (sct == "6"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Filter/notfound.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {top.I1.location.href = "Start/StartRefblade.html"}}
if (sct == "7"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMamort.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {
		top.I1.location.href = "Start/StartRefamort.html"
		top.I3.location.href = "0.html"}}
if (sct == "9"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMand.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {
		top.I1.location.href = "Start/StartRefand.html"
		top.I3.location.href = "0.html"}}
if (sct == "8"){
	if (IntBatNo == "1") {
		top.I1.location.href = "Start/StartOEMpod.html"
		top.I3.location.href = "0.html"}
	if (IntBatNo == "2") {
		top.I1.location.href = "Start/StartRefpod.html"
		top.I3.location.href = "0.html"}}}

function FilOpen_onclick(){
top.sct = "1"
top.I1.location.href = "Start/StartOEM.html"
top.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"
R2[0].checked = "1"}

function Br_Open_onclick(){
top.sct = "2"
top.I1.location.href = "Start/StartOEMbr.html"
top.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"
R2[0].checked = "1"}

function Ker_Open_onclick(){
sct = "3"
top.I1.location.href = "Start/StartOEMker.html"
top.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"
R2[0].checked = "1"}

function Bel_Open_onclick(){
sct = "4"
top.I1.location.href = "Start/StartOEMbel.html"
top.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"
R2[0].checked = "1"}

function Lamp_Open_onclick(){
sct = "5"
top.I1.location.href = "Start/StartOEMlamp.html"
top.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"
R2[0].checked = "1"}

function Blade_Open_onclick(){
sct = "6"
top.I1.location.href = "Start/StartRefblade.html"
top.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"
R2[1].checked = "1"}

function Amort_Open_onclick(){
sct = "7"
top.I1.location.href = "Start/StartOEMamort.html"
top.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"
R2[0].checked = "1"}

function Pod_Open_onclick(){
sct = "8"
top.I1.location.href = "Start/StartOEMpod.html"
top.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"
R2[0].checked = "1"}

function And_Open_onclick(){
sct = "9"
top.I1.location.href = "Start/StartOEMand.html"
top.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"
R2[0].checked = "1"}

function unvisible_all() 
{top.I3.location.href = "../0.html";
myform.product.style.visibility = "visible"}

function achtung(){
if (top.lang == "rus")
    document.write ("ВНИМАНИЕ!")
if (top.lang == "deu")
    document.write ("HINWEIS!")
if (top.lang == "eng")
    document.write ("ATTENTION!")}

function hinweis(){
if (top.lang == "rus")
    document.write (" Введите номер или часть номера без пробелов и символов типа , . / &quot; - * : ; +")
if (top.lang == "deu")
    document.write (" Eingabe der Nummer oder Teil der Nummer ohne Leerzeichen oder Zeichen wie , . / &quot; - * : ; +")
if (top.lang == "eng")
    document.write (" Enter Number or part of the number without spaces or special characters like , . / &quot; - * : ; +")}

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 = "";
    }
  }

}
