// Linkes Menü MouseOver, MouseOut und MouseClick für alle Programme und alle Sprachen

function mOvr(src,clrOver)	{ if (!src.contains(event.fromElement)) { src.style.cursor = 'hand';    src.bgColor = clrOver;	 } }
function mOut(src,clrIn)	{ if (!src.contains(event.toElement))   { src.style.cursor = 'default'; src.bgColor = clrIn;     } }
function mClk(src)		{ if (event.srcElement.tagName=='TD')   { src.children.tags('A')[0].click(); 			             } }

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// Anmeldungen in allen Sprachen
// rd  = Rauchen Deutsch
// re  = Rauchen Englisch
// rsp = Rauchen Spanisch
// td  = Tanken Deutsch
// te  = Tanken Englisch
// tsp = Tanken Spanisch

function rdanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
 var Ziel = "/cgi-bin/rauchen.cgi?dreg=" + Teil1[1]; 
 window.location.href = Ziel;
}

function reanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
 var Ziel = "/cgi-bin/rauchen.cgi?enreg=" + Teil1[1]; 
 window.location.href = Ziel;
}

function rspanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
 var Ziel = "/cgi-bin/rauchen.cgi?esreg=" + Teil1[1]; 
 window.location.href = Ziel;
}

function tdanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/tanken.cgi?level=" + Teil1[1]; 
    window.location.href = Ziel;
  } 
  else {
    var Ziel = "/cgi-bin/tanken.cgi";
    window.location.href = Ziel;
  }
}

function tspanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/estanken.cgi?level=" + Teil1[1]; 
    window.location.href = Ziel;
  } 
  else {
    var Ziel = "/cgi-bin/estanken.cgi";
    window.location.href = Ziel;
  }
}

function teanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/etanken.cgi?level=" + Teil1[1]; 
    window.location.href = Ziel;
  } 
  else {
    var Ziel = "/cgi-bin/etanken.cgi";
    window.location.href = Ziel;
  }
}

function teldanmeld() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/telefon.cgi?level=" + Teil1[1]; 
    window.location.href = Ziel;
  } 
  else {
    var Ziel = "/cgi-bin/telefon.cgi";
    window.location.href = Ziel;
  }
}

// Sprachumschaltungen für alle Programme
// r = Rauchen
// t = Tanken


function rspanisch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/esrauchen.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratisrauchen/index_sp.html";
    top.location.href = Ziel;
  }
}

function rdeutsch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/rauchen.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratisrauchen/index.html";
    top.location.href = Ziel;
  }
}

function renglisch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/erauchen.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratisrauchen/index_e.html";
    top.location.href = Ziel;
  }
}

function tspanisch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/estanken.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratistanken/index_sp.html";
    top.location.href = Ziel;
  }
}

function tdeutsch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/tanken.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratistanken/index.html";
    top.location.href = Ziel;
  }
}

function tenglisch() { 
 var Teil0 = parent.oben.location.search;
 var Teil1= Teil0.split("="); 
  if(Teil1[0] == "?reg") {
    var Ziel = "/cgi-bin/etanken.cgi?regnum=" + Teil1[1]; 
    top.location.href = Ziel;
  } 
  else {
    var Ziel = "/gratistanken/index_e.html";
    top.location.href = Ziel;
  }
}