function fnLexComEndUser(p_strLang)
{
  var iWidth = 250;
  var iHeight = 200;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  
  var strLang = 'en_gb';
  if( p_strLang != 'en' )
  {
    strLang = p_strLang + '_' + p_strLang;
  } else {
    p_strLang = 'uk';
  }
  
  
  window.open('http://interparts.lex-com.net/interparts-kueppersbusch-hg/direct_login.jsp?country=kbde&range=hg&language='+strLang+'&partslink='+p_strLang+'999999&treepath_old=/0/9/9_4/2365_01','ets','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
  // window.open('http://interparts.lex-com.net/interparts-kueppersbusch-hg/direct_login.jsp?username=1263001&password=10102&country=KBDE&range=hg&language='+strLang+'&treepath_old=/0/9/9_4/2365_01','ets','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
}

function fnLexComRegistered( p_strUser, p_strPass, p_strLang )
{
  var iWidth = 900;
  var iHeight = 700;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  
  var strLang = p_strLang;
  
  // window.open('http://interparts.lex-com.net/interparts-kueppersbusch-hg/direct_login.jsp?username='+p_strUser+'&password='+p_strPass+'&country=KBDE&range=hg&language='+strLang,'ets','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
  window.open('http://tds.kueppersbusch-hausgeraete.de/sfGuardAuth/directLogin?username='+p_strUser+'&password='+p_strPass+'&country=KBDE&range=hg&language='+strLang,'ets','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}

function fnWiringDiagrams(p_strLang)
{
  var iWidth = 640;
  var iHeight = 480;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  if( p_strLang == 'DE')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/DE/inhalt.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'GB')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/GB/contents.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'FR')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/FR/contenu.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'NL')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/NL/overzicht.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'ES')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/ES/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'IT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/IT/contenuto.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'PT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/schaltplaene/html/PT/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
}

function fnTechnicalInfos(p_strLang)
{
  var iWidth = 640;
  var iHeight = 480;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  
  if( p_strLang == 'DE')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/de/inhalt.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'GB')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/en/contents.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'FR')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/fr/contenu.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'NL')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/nl/overzicht.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'ES')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/es/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'IT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/it/contenuto.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'PT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/technische_infos/html/pt/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
}

function fnServiceManuals(p_strLang)
{
  var iWidth = 640;
  var iHeight = 480;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  
  if( p_strLang == 'DE')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/DE/inhalt.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=1');
  }
  if( p_strLang == 'GB')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/GB/contents.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'FR')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/FR/contenu.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'NL')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/NL/overzicht.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'ES')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/ES/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'IT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/IT/contenuto.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
  if( p_strLang == 'PT')
  {
    window.open('http://kueppersbusch.getware.de/kb-technik/service_manuals/html/PT/indice.htm','s','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
  }
}

function fnPicturePress( p_strImage )
{
  var iWidth = 640;
  var iHeight = 480;
  var iLeft = (screen.width - iWidth) / 2;
  var iTop  = (screen.height - iHeight) / 2;
  
  window.open('http://kueppersbusch.getware.de/images/press/'+p_strImage,'i','height='+iHeight+',width='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}

function fnPopupProduct( p_strImage )
{
  window.open('http://kueppersbusch.getware.de/index.php/modImage/view?url='+p_strImage,'Produkt','width=670,height=330');
}
