/*----------------------------------------------------------------------------*/
/*
Hilfe 40000
Wörterbuch 30000
Bilder 20000
*/
function checkOutTok(sz) {
var add=false;
  if( sz.search(/\bUND\b/gi) != -1) { add=true; }
  if( sz.search(/\bAND\b/gi) != -1) { add=true; }
  if( sz.search(/\bODER\b/gi) != -1) { add=true; }
  if( sz.search(/\bOR\b/gi) != -1) { add=true; }
  if( sz.search(/\bNICHT\b/gi) != -1) { add=true; }
  if( sz.search(/\bNOT\b/gi) != -1) { add=true; }
  if( sz.search(/\(/gi) != -1) { add=true; }
  if( sz.search(/\)/gi) != -1) { add=true; }
  return add;
}

/*----------------------------------------------------------------------------*/
function getMess(id){
 var sz = ""
 return sz;
}
/*----------------------------------------------------------------------------*/
var crossobj = null;

function initCrossObj(){
  crossobj = getElem("id","boxrahmen",null);
}

/*----------------------------------------------------------------------------*/
function box_weg(){
  if (crossobj == null) initCrossObj();
  if(crossobj.style.visibility="visible")  crossobj.style.visibility="hidden";
  else crossobj.style.visibility="visible";
}
function box_her(){
 if (crossobj == null) initCrossObj();
  crossobj.style.visibility="visible";

}
/*----------------------------------------------------------------------------*/
function box_hersuche(){
 if (crossobj == null) initCrossObj();
  crossobj.style.visibility="visible";
 vermeidelamento();
}

function box_wegsuche(){
  if (crossobj == null) initCrossObj();
  if(crossobj.style.visibility="visible")  crossobj.style.visibility="hidden";
  else crossobj.style.visibility="visible";
   vermeidelamento();
}
/*----------------------------------------------------------------------------*/

/*----------------------------------------------------------------------------*/
function setBedienung( mode) {
var d = document.WERTE;
  if(mode.length==0) {
  mode = 'visible';
   box_weg();
  d.addonHelp.value=1; }
  else { d.addonHelp.value=0;
  mode = 'hidden';
   box_her();
 }
  name = "bedienung";
  elem = getElem("id", name, null);
  if(elem != null) { elem.style.visibility = mode; }
}
/*----------------------------------------------------------------------------*/
function lamentoOeffnen() {
var elem = getElem("id", "lamento", null);
  elem.style.visibility = 'visible';
  box_wegsuche();
}
function lamentoOeffnenGix() {
var elem = getElem("id", "lamento", null);
  elem.style.visibility = 'visible';

  box_hersuche();
}
function lamentoSchliessen() {
 var elem = getElem("id", "lamento", null);
  elem.style.visibility = 'hidden';
  box_hersuche();
}
/*----------------------------------------------------------------------------*/
function kontaktOeffnen() {
  var elem = getElem("id", "kontakt", null);
  if(elem.style.visibility == 'hidden') {
    elem.style.visibility = 'visible';
    box_weg();
	document.visibility == 'hidden';
  }
  else {
    elem.style.visibility = 'hidden';
    box_her();
	document.visibility == 'hidden';
  }
}
/*----------------------------------------------------------------------------*/
function suchtippsOeffnen() {
 var elem = getElem("id", "suchtipps", null);
 if(elem.style.visibility == 'hidden') { elem.style.visibility = 'visible';
 box_weg();
 }
 else {
  elem.style.visibility = 'hidden';
  box_her();
 }
}
/*----------------------------------------------------------------------------*/
function hilfeOeffnen() {
	windowNew = open("./hilfe/inhaltHilfe.htm?" + addWERTE(40000), "Hilfefenster", "scrollbars=yes, toolbar=no, statusbar=no, menubar=yes, width=650, resizable=yes, height=450");
}
function nutzungCd() {
	newWindow = open("nutzungsbedingungen_cd.htm", "RehaOptionen", "scrollbars=yes, toolbar=no, statusbar=no, menubar=no, width=300, height=400");
}

function nutzungInternet() {
	newFenster = open("nutzungsbedingungen_internet.htm", "RehaOptionen", "scrollbars=yes, toolbar=no, statusbar=no, menubar=no, width=300, height=400");
}
function anfahrtDetail() {
	newFenster = open("anfahrtdetail.htm", "RehaOptionen", "scrollbars=no, toolbar=no, statusbar=no, menubar=no, width=180, height=230");
}
function indexOeffnen() {
	newFenster = open("indexHilfe.htm", "RehaOptionen", "scrollbars=yes, toolbar=no, statusbar=no, menubar=no, width=600, height=400");
}
function maskierungOeffnen() {
	newFenster = open("maskierungHilfe.htm", "RehaOptionen", "scrollbars=yes, toolbar=no, statusbar=no, menubar=no, width=570, height=400");
}
function fensterSchliessen() {
  window.close();
}

function addWERTE(state){
var sz = "State=" + state;
sz = sz + "&Last=" + document.WERTE.Last.value;
sz = sz + "&Db=" + document.WERTE.Db.value;
return sz;
}
