var nMarketingOfs = 0;
var szUID;
var szCust;
var szLang;
var szUserName;
var ulUserStatus;
var szWKorbText;
var bUIDIsStatic;
var	szB2BServer = "";
var	szB2BSID = "";
var	szB2BFlags = "";
var	szB2BKStelle = "";
var	szB2BKStelleAllowed = "";
var	szB2BMail = "";
var	szB2BMode = "";
var	szB2BLang = "";
var	nWKorbPosCount;
var	pszWKorbValue;
var	pszWKorbValuta;
function MM_reloadPage(init) {  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}
function BlurLinks(){
lnks=document.getElementsByTagName('a');
for(i=0;i<lnks.length;i++){
lnks[i].onfocus=new Function("if(this.blur)this.blur()");
}}
MM_reloadPage(true);
onload=BlurLinks;
function GetStaticUID(){
var szParmString = window.location.search;
var nStart;
var szResult = "";
if (szParmString.length > 1) {
nStart = szParmString.indexOf('UID=');
if (nStart > 0) {
szResult = szParmString.substring(nStart+4, nStart+4+24);
}}
return(szResult);}
function IsSubEntry(){
var szURL = window.location.href;
var nStart;
var nResult = 0;
if (szURL.length > 1) {
if (szURL.indexOf('laborgeraete') > 0)
nResult = 1;
else if (szURL.indexOf('laborverbrauchsmaterialien') > 0)
nResult = 1;
else if (szURL.indexOf('laborchemikalien') > 0)
nResult = 1;
else if (szURL.indexOf('life_science') > 0)
nResult = 1;
else if (szURL.indexOf('laboreinrichtung') > 0)
nResult = 1;
else if (szURL.indexOf('service') > 0)
nResult = 1;
else if (szURL.indexOf('klaeranlagen') > 0)
nResult = 1;
else if (szURL.indexOf('hft.htm') > 0)
nResult = 1;}
return(nResult);}
function OutputHtmlURL(pszURL, pszDesc){
document.write("<a href='"+pszURL+"?UID="+szUID+"'>"+pszDesc+"</a>");}
function OutputKontakte(bShop){}
function OutputMenu(){}
function OutputHeader(pszHeader, pszUID, bUIDStatic, bBMarks, _ulUserStatus, pszLang, pszCust){
ulUserStatus = _ulUserStatus;
szUID = GetStaticUID();
if ((szUID.length == 0) || (szUID.substring(0,1) == "5"))
szUID = pszUID;
szLang = pszLang;
szCust = pszCust;
if (szLang.length == 0)
szLang = "DE";
bUIDIsStatic = 0;
if (szUID.substring(0,2) == "85") {
bUIDIsStatic = 1;}
document.write("<div align=center>"); 	document.write("<div class='Logo'>");
document.write("<a href='http://shop.haeberle-lab.de/strct209.htm?UID="+szUID+"'><img src='/InetHaeberle/web/img/logo.jpg' style='position: relative; left: 0px; height: 163px; overflow: hidden; clip:rect(0px, 100px, 163px, 0px);' border='0'/></a>");
document.write("</div>"); 	document.write("<div class='Search'>");
document.write("<div class='SearchForm'>");		document.write("<form style='width:750px; position:relative;' NAME='SrchData' METHOD='GET' ACTION='http://shop.haeberle-lab.de/QSRCH.HTM' onSubmit='return (document.SrchData.KEYVAL1.value.length > 1);'>");
if ((szLang) && (szLang == "UK"))
document.write("Search");
else if ((szLang) && (szLang == "ES"))
document.write("Buscar");
else if ((szLang) && (szLang == "FR"))
document.write("Chercher");
else
document.write("Suche");
document.write("&nbsp;&nbsp;");
document.write("<INPUT type='HIDDEN' name='UID' value="+szUID+">");
document.write("<INPUT type='TEXT' size='85' maxlength'63' name='KEYVAL1'>");
document.write("<INPUT type='SUBMIT' value='Go'>");
document.write("&nbsp;&nbsp;");
document.write("<a href='http://shop.haeberle-lab.de/search.htm?UID="+szUID+"&Lang="+szLang+"' style='color:white;'>");
if ((szLang) && (szLang == "UK"))
document.write("Ext. Search");
else if ((szLang) && (szLang == "ES"))
document.write("Buscar");
else if ((szLang) && (szLang == "FR"))
document.write("Chercher");
else
document.write("Erw. Suche");
document.write("</a>");
document.write("</form>");
document.write("</div>"); 	document.write("<div class='Language'>");
if ((szLang) && (szLang != "DE"))
document.write("<a href='?UID="+szUID+"&Lang=DE'><img src='/InetHaeberle/web/img/flagde.gif' style='border:1px solid #FFFFFF; margin-right:3px;' /></a>");
if ((szLang) && (szLang != "UK"))
document.write("<a href='?UID="+szUID+"&Lang=EN'><img src='/InetHaeberle/web/img/flaguk.gif' style='border:1px solid #FFFFFF; margin-right:3px;' /></a>");
document.write("</div>");
document.write("</div>"); 	document.write("<div class='Breadcrumb'>"); 	document.write("<a href='http://shop.haeberle-lab.de/strct209.htm?UID="+szUID+"&Lang="+szLang+"'>");
document.write("Home");
document.write("</a>");
document.write("&nbsp;&middot;&nbsp;");
document.write(pszHeader);
document.write("</div>"); 	document.write("<div class='Content'>");}
function OutputPreText(pszFilename, pszLang){}
function OutputPostText(pszFilename, pszLang){
if (pszFilename.substring(0,5) == "STRCT")
document.write("<div class='UserData_Home'>"); 	else
document.write("<div class='UserData'>"); 	if (bUIDIsStatic == 0) {
document.write("<form name='LoginData' method='post' action='http://shop.haeberle-lab.de/login.htm' onSubmit='return ValidateLogin();'>");
document.write("<input type='hidden' name='UID' VALUE='"+szUID+"'>");
document.write("<input type='hidden' name='REF' VALUE='http://shop.haeberle-lab.de/strct209.htm'>");
document.write("<input type='hidden' name='CCODEPREF' VALUE=''>");
document.write("<table style='width:193px; padding:0px; margin-top:5px;'>");
document.write("<tr>");
document.write("<td colspan=2><span style='font-size:11pt; font-weight:bold; color:#e1000b;'>");
if ((pszLang) && (pszLang == "UK"))
document.write("Login");
else
document.write("Kunden-Login");
document.write("</span></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=3>");
if ((pszLang) && (pszLang == "UK"))
document.write("<input type='text' name='CUSTCODE' class='text cleardefault' value='Cust. code' style='font-size:8pt; border:1px solid #d0d0d0; width:193px;' onfocus=\"if (this.value=='Cust. code') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Cust. code'; $(this).addClass('cleardefault'); }\">");
else
document.write("<input type='text' name='CUSTCODE' class='text cleardefault' value='Kundencode' style='font-size:8pt; border:1px solid #d0d0d0; width:193px;' onfocus=\"if (this.value=='Kundencode') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Kundencode'; $(this).addClass('cleardefault'); }\">");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<tr>");
document.write("<td colspan=3>");
if ((pszLang) && (pszLang == "UK"))
document.write("<input type='text' name='USERNAME' class='text cleardefault' value='Login name' style='font-size:8pt; border:1px solid #d0d0d0;  width:193px;' onfocus=\"if (this.value=='Login name') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Login name'; $(this).addClass('cleardefault'); }\">");
else
document.write("<input type='text' name='USERNAME' class='text cleardefault' value='Anmeldename' style='font-size:8pt; border:1px solid #d0d0d0;  width:193px;' onfocus=\"if (this.value=='Anmeldename') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Anmeldename'; $(this).addClass('cleardefault'); }\">");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=3>");
if ((pszLang) && (pszLang == "UK"))
document.write("<input type='password' name='USERPASS' class='text cleardefault' value='Password' style='font-size:8pt; border:1px solid #d0d0d0; width:193px;' onfocus=\"if (this.value=='Password') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Password'; $(this).addClass('cleardefault'); }\">");
else
document.write("<input type='password' name='USERPASS' class='text cleardefault' value='Passwort' style='font-size:8pt; border:1px solid #d0d0d0; width:193px;' onfocus=\"if (this.value=='Passwort') { this.value=''; $(this).removeClass('cleardefault'); this.select(); }\" onblur=\"if (this.value=='') { this.value='Passwort'; $(this).addClass('cleardefault'); }\">");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=3 align=right>");
if ((pszLang) && (pszLang == "UK"))
document.write("<input class='LButton' type='submit' VALUE='Log in'>");
else
document.write("<input class='LButton' type='submit' VALUE='einloggen'>");
document.write("&nbsp;|&nbsp;");
if ((pszLang) && (pszLang == "UK"))
document.write("<input class='LButton' type='button' name='action' VALUE='Registration' onClick='CheckRegistrationValid();'>");
else
document.write("<input class='LButton' type='button' name='action' VALUE='Registrierung' onClick='CheckRegistrationValid();'>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td colspan=3 align=right style='font-size:9pt; color:#e1000b;'>");
if ((pszLang) && (pszLang == "UK"))
document.write("No sale to private Customers");
else
document.write("Kein Verkauf an Privatpersonen");
document.write("</td>");
document.write("</tr>");
document.write("</table>");
document.write("</form>");}
else {
document.write("<table style='width:193px; padding:0px; margin-top:5px;'>");
document.write("<tr>");
document.write("<td><span style='font-size:11pt; font-weight:bold; color:#e1000b;'>");
if ((szLang) && (szLang == "UK"))
document.write("Customer center");
else
document.write("Kundencenter");
document.write("</span></td>");
document.write("</tr>");
if ((ulUserStatus & 0x20) ) {
document.write("<tr>");
document.write("<td>");
document.write("<A class='UserLink' HREF=\"javascript:ShowQuicklist('"+szUID+"')\">");
if ((pszLang) && (pszLang == "UK"))
document.write("Favorites");
else if ((pszLang) && (pszLang == "FR"))
document.write("Favorites");
else if ((pszLang) && (pszLang == "NL"))
document.write("Favorites");
else if ((pszLang) && (pszLang == "IT"))
document.write("Favoritui");
else if ((pszLang) && (pszLang == "DK"))
document.write("Favoriter");
else if ((pszLang) && (pszLang == "NOR"))
document.write("Favoriter");
else
document.write("Favoriten");
document.write("</A>");
document.write("</td>");
document.write("</tr>");}
if ((szB2BSID > "") && ((ulUserStatus & 0x02000000) == 0)) {
document.write("<tr>");
document.write("<td>");
if (szB2BSID == "0")
document.write("<a class='UserLink'>");
else
document.write("<a class='UserLink' href='http://b2b.wiessoft.de/slist.htm?ID="+szB2BSID+"&LANG="+szB2BLang+"&KSTELLE="+szB2BKStelle+"&KSTALLOWED="+szB2BKStelleAllowed+"&CM="+szB2BMode+"&USERMAIL="+szB2BMail+"&FLG="+szB2BFlags+"&RID="+szUID+"&AuthHost=mymarket.omnilab.de' target='_b2b'>");
if ((szLang) && (szLang == "UK"))
document.write("Transactions");
else if ((szLang) && (szLang == "FR"))
document.write("transactions");
else if ((szLang) && (szLang == "NL"))
document.write("transactions");
else if ((szLang) && (szLang == "DK"))
document.write("transactions");
else if ((szLang) && (szLang == "NOR"))
document.write("transactions");
else
document.write("Vorgangsliste");
document.write("</A>");
document.write("</td>");
document.write("</tr>");}
document.write("<tr>");
document.write("<td>");
document.write("<a class='UserLink' href='http://shop.haeberle-lab.de/logout.htm?UID="+szUID+"&CUST="+szCust+"&Lang="+szLang+"&Ref=strct209.htm%26UID='>");
if ((szLang) && (szLang == "UK"))
document.write("Logout");
else if ((szLang) && (szLang == "FR"))
document.write("Déconnecter");
else if ((szLang) && (szLang == "NL"))
document.write("Afmelden");
else if ((szLang) && (szLang == "DK"))
document.write("Logout");
else if ((szLang) && (szLang == "NOR"))
document.write("Logg ut");
else
document.write("Abmelden");
document.write("</A>");
document.write("</td>");
document.write("</tr>");
if ((ulUserStatus & 0x80) && ((ulUserStatus & 7) >= 1)) {
document.write("<tr>");
document.write("<td>");
if ((ulUserStatus & 7) >= 2)
document.write("<a class='UserLink' href='_admin.htm?UID="+szUID+"'>");
else
document.write("<a class='UserLink' href='_manage.htm?UID="+szUID+"'>");
if ((szLang) && (szLang == "UK"))
document.write("Shop-Administration");
else if ((szLang) && (szLang == "FR"))
document.write("Administration");
else if ((szLang) && (szLang == "NL"))
document.write("Administration");
else if ((szLang) && (szLang == "DK"))
document.write("Administration");
else if ((szLang) && (szLang == "NOR"))
document.write("Administration");
else
document.write("Shop-Administration");
document.write("</A>");
document.write("</td>");
document.write("</tr>");}
else {
document.write("<tr>");
document.write("<td>");
document.write("<a class='UserLink' href='selfedit.htm?UID="+szUID+"'>");
if ((szLang) && (szLang == "UK"))
document.write("Edit profile");
else if ((szLang) && (szLang == "FR"))
document.write("Edit");
else if ((szLang) && (szLang == "NL"))
document.write("Edit");
else if ((szLang) && (szLang == "DK"))
document.write("edit");
else
document.write("Profil edit.");
document.write("</A>");
document.write("</td>");
document.write("</tr>");}
document.write("</table>");}
document.write("</div>"); 	document.write("<div class='OrderData'>"); 	document.write("<span style='position:relative; top: 9px; left: 10px; font-size:11pt; font-weight:bold; color:#e1000b;'>");
if ((pszLang) && (pszLang == "UK"))
document.write("Shopping basket");
else
document.write("Warenkorb");
document.write("</span>");
document.write("<br>");
document.write("<span id='OrderInfo' style='position:relative; top:30px; left:10px; width:120px; text-align:left;'>");
if (nWKorbPosCount > 0) {
if ((pszLang) && (pszLang == "UK"))
document.write("Your Shopping Basket contains<br>"+nWKorbPosCount+" items with<br>a total value of "+pszWKorbValue+" "+pszWKorbValuta+".");
else if ((pszLang) && (pszLang == "FR"))
document.write("Votre panier contenient<br>"+nWKorbPosCount+" positions à<br>value total de "+pszWKorbValue+" "+pszWKorbValuta+".");
else
document.write("Ihr Warenkorb enthält<br>"+nWKorbPosCount+" Position(en) im<br>Wert von "+pszWKorbValue+" "+pszWKorbValuta);}
else {
if ((pszLang) && (pszLang == "UK"))
document.write("Your Shopping Basket is empty.");
else if ((pszLang) && (pszLang == "FR"))
document.write("Votre panier est vide.");
else
document.write("Ihr Warenkorb ist leer!");}
document.write("</span>");
document.write("<br>");
document.write("<span style='position:absolute; top:105px; left:140px; text-align:right;'>");
document.write("<a href='http://shop.haeberle-lab.de/ord_upd.htm?UID="+szUID+"'>");
if ((pszLang) && (pszLang == "UK"))
document.write("Finish&nbsp;order");
else
document.write("zur&nbsp;Kasse");
document.write("</a>");
document.write("</span>");
document.write("</div>"); 	var jetzt = new Date();
var nMin = jetzt.getSeconds();
nMarketingOfs = (nMin % 4);
if (pszFilename.substring(0,5) == "STRCT") {
document.write("<div class='ProdlinkData' id='ProdlinkData'>"); 	if (nMarketingOfs == 0) {
document.write("<a href='info7094.htm?UID="+szUID+"'><img src='/InetHaeberle/web/img/prod/heidolphmagnetruehrer_"+szLang+".jpg' border=0></a>");}
else if (nMarketingOfs == 1) {
document.write("<a href='info8872.htm?UID="+szUID+"'><img src='/InetHaeberle/web/img/prod/LLGElektronische-Pipe_"+szLang+".jpg' border=0></a>");}
else if (nMarketingOfs == 2) {
document.write("<a href='info8631.htm?UID="+szUID+"'><img src='/InetHaeberle/web/img/prod/LLGSerologischePipetten_"+szLang+".jpg' border=0></a>");}
else if (nMarketingOfs == 3) {
document.write("<a href='contact.htm?UID="+szUID+"'><img src='/InetHaeberle/web/img/prod/Katalog_"+szLang+".jpg' border=0></a>");}
document.write("<br><a href='javascript: ToggleProdLink();'>&nbsp;");
if (szLang == "UK")
document.write("more Specials");
else
document.write("mehr Aktionen");
document.write("&nbsp;</a>");
document.write("</div>"); }
else {}}
function ToggleProdLink(){
if (nMarketingOfs < 3)
nMarketingOfs++;
else
nMarketingOfs = 0;
if (nMarketingOfs == 0) {
SetProdLink("ProdlinkData", "info7094.htm?UID="+szUID, "/InetHaeberle/web/img/prod/heidolphmagnetruehrer_"+szLang+".jpg");}
else if (nMarketingOfs == 1) {
SetProdLink("ProdlinkData", "info8872.htm?UID="+szUID, "/InetHaeberle/web/img/prod/LLGElektronische-Pipe_"+szLang+".jpg");}
else if (nMarketingOfs == 2) {
SetProdLink("ProdlinkData", "info8631.htm?UID="+szUID, "/InetHaeberle/web/img/prod/LLGSerologischePipetten_"+szLang+".jpg");}
else if (nMarketingOfs == 3) {
SetProdLink("ProdlinkData", "contact.htm?UID="+szUID, "/InetHaeberle/web/img/prod/Katalog_"+szLang+".jpg");
}}
function SetProdLink(pszID, pszURL, pszImg){
var	hrefTag;
var	imgTag;
if (DOM && document.getElementById(pszID)) {
hrefTag = document.getElementById(pszID).firstChild;
if (hrefTag) {
hrefTag.setAttribute("href", pszURL);
imgTag = hrefTag.firstChild;
if (imgTag) {
imgTag.setAttribute("src", pszImg);
}}}}
function OutputFooter(){
document.write("</div>"); 	document.write("<div class='Menu'>");		document.write("<table>");
document.write("<tr>");
if (szLang == "UK") {
document.write("<td class='MenuCol'>");		document.write("<p class='MenuHead'>the häberle</p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/unternehmen.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("competence");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/team.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("team");
document.write("</a></p>");
document.write("</td>");
document.write("<td class='MenuCol'>"); 	document.write("<p class='MenuHead'>Infos</p>");
document.write("<p class='MenuLink'><a href='http://shop.haeberle-lab.de/contact.htm?UID="+szUID+"&Lang="+szLang+"'>");
document.write("Request catalog");
document.write("</a></p>");
document.write("</td>");
document.write("<td class='MenuColLast'>");		document.write("<p class='MenuHead'>We help you</p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/contact.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Contact");
document.write("</a></p>");
document.write("</td>");}
else {
document.write("<td class='MenuCol'>");		document.write("<p class='MenuHead'>Der häberle</p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/unternehmen.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Das Unternehmen");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/team.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Das Team");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/jobs.htm?UID="+szUID+"&Lang="+szLang+"&AUTOUID=1'>");
document.write("Jobs");
document.write("</a></p>");
document.write("</td>");
document.write("<td class='MenuCol'>"); 	document.write("<p class='MenuHead'>Leistungen</p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/seminare.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Seminare/Messen");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://shop.haeberle-lab.de/contact.htm?UID="+szUID+"&Lang="+szLang+"'>");
document.write("Katalog anfordern");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/flyer.htm?UID="+szUID+"&AUTOUID=1&Lang="+szLang+"'>");
document.write("Aktions-Flyer");
document.write("</a></p>");
document.write("</td>");
document.write("<td class='MenuColLast'>");		document.write("<p class='MenuHead'>Wir helfen Ihnen</p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/"+szLang+"/service.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Service");
document.write("</a></p>");
document.write("<p class='MenuLink'><a href='http://www.haeberle-lab.de/contact.htm?UID="+szUID+"&LANG="+szLang+"&AUTOUID=1'>");
document.write("Kontakt");
document.write("</a></p>");
document.write("</td>");}
document.write("</tr>");
document.write("</table>");
document.write("</div>"); 	document.write("<div class='Footer'>"); 	document.write("<table>");
document.write("<tr>");
document.write("<td align=center>");
document.write("<span class='FootText'>häberle LABORTECHNIK GmbH + Co. KG &middot; Oberer Seesteig 7 &middot; DE-89173 Lonsee-Ettlenschieß &middot; +49 (0) 7336 9603 0</span>");
document.write("</td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td align=center>");
if (szLang == "UK")
document.write("<span class='FootText'><a href='http://www.haeberle-lab.de/"+szLang+"/impressum.htm?UID="+szUID+"&Lang="+szLang+"'>IMPRINT</a> &middot; <a href='http://www.haeberle-lab.de/"+szLang+"/agb.htm?UID="+szUID+"&Lang="+szLang+"'>Terms and Conditions</a> &middot; Copyright &copy; 2011</span>");
else
document.write("<span class='FootText'><a href='http://www.haeberle-lab.de/"+szLang+"/impressum.htm?UID="+szUID+"&Lang="+szLang+"'>IMPRESSUM</a> &middot; Unsere <a href='http://www.haeberle-lab.de/"+szLang+"/agb.htm?UID="+szUID+"&Lang="+szLang+"'>AGB</a> &middot; Copyright &copy; 2011</span>");
document.write("</td>");
document.write("</tr>");
document.write("</div>"); 	document.write("</div>"); }
function OutputTabFoot(nCols, pszStyle){
document.write("<TR>");
for (var i=0; i < nCols; i++) {
if (pszStyle)
document.write("<TH class=\"DbF\" style=\"" + pszStyle + "\">&nbsp;</TH>");
else
document.write("<TH class=\"DbF\">&nbsp;</TH>");}
document.write("</TR>");}
function OutputTrenner(nWidth){}
function Route(pszScript, pszUID, pszCust, pszLang, pszMode){}
function SetUserStatus(pszUID, pszNickname, pszCust, pszRealName, pszPrevAccess, pszFirstAccess, pszLang){
szUserName = pszRealName;}
function SetWKorbStatus(pszFilename, pszUID, nPosCount, pszValue, pszValuta, pszLang){
nWKorbPosCount = nPosCount;
pszWKorbValue = pszValue;
pszWKorbValuta = pszValuta;}
function SetQListStatus(pszUID, nPosCount, pszLang){}
function ShowInfoWindow(pszInfoText, nTimeoutMS){
var	hWindow;
hWindow = window.open("", "Info", "top=100,width=300,height=150,location=no,status=no,resizable=no,dependent=yes,scrollbars=no");
hWindow.close();
hWindow = window.open("", "Info", "top=100,width=300,height=150,location=no,status=no,resizable=no,dependent=yes,scrollbars=no");
if (hWindow) {
hWindow.document.open();
hWindow.document.write("<HTML>");
hWindow.document.write("<HEAD>");
hWindow.document.write("<TITLE>Info</TITLE>");
hWindow.document.write("</HEAD>");
hWindow.document.write("<BODY style='font-family:verdana;font-size:12px;'>");
hWindow.document.write("<CENTER>");
hWindow.document.write("<B>Info</B><BR><BR>");
hWindow.document.write(""+pszInfoText+"<BR><BR>");
hWindow.document.write("<A HREF='javascript:onclick=close();'>Ok</A><BR>");
hWindow.document.write("</CENTER>");
hWindow.document.write("</BODY>");
hWindow.document.write("</HTML>");
hWindow.document.close();
hWindow.focus();
hWindow.setTimeout("self.close();", nTimeoutMS);
}}
function CloseQuicklist(pszUID){
var	hWindow;
hWindow = window.open("QLST_LIST.HTM?UID="+pszUID, "QuickList", "width=400,height=480,resizable=yes,dependent=yes,scrollbars=yes");
hWindow.focus();
hWindow.close();}
function ShowQuicklist(pszUID){
var	hWindow;
hWindow = window.open("QLST_LIST.HTM?UID="+pszUID, "QuickList", "width=400,height=480,resizable=yes,dependent=yes,scrollbars=yes");
hWindow.focus();}
function AddQuickList(pszUID, pszName, pszVal, ulVal){
var	hWindow;
hWindow = window.open("QLST_ADD.HTM?UID="+pszUID+"&uVal="+ulVal+"", "QuickList", "width=400,height=480,resizable=yes,dependent=yes,scrollbars=yes");
hWindow.focus();}
function AQLExt(pszUID, pszID, pszArtnr){
var	hWindow;
hWindow = window.open("QLST_ADD.HTM?UID="+pszUID+"&uVal="+pszID+"&sVal="+pszArtnr+"", "QuickList", "width=320,height=480,resizable=yes,dependent=yes,scrollbars=yes");
hWindow.focus();}
function ShowTextMessage(pszText){
window.alert(pszText);}
function DisplayWKorbAddInfo(pszArtnr, pszLang){
if ((pszArtnr) && (pszArtnr != "")) {
if ((pszLang) && (pszLang == "UK")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "FR")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "ES")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "NL")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else if ((pszLang) && (pszLang == "IT")) {
window.alert("Item "+pszArtnr+" added to shopping basket!");}
else  {
window.alert("Artikel "+pszArtnr+" in Warenkorb übernommen!");
}}
else {
if ((pszLang) && (pszLang == "UK")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "FR")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "ES")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "NL")) {
window.alert("Error adding item to shopping basket!");}
else if ((pszLang) && (pszLang == "IT")) {
window.alert("Error adding item to shopping basket!");}
else  {
window.alert("Fehler bei Übernahme in Warenkorb!");
}}}
var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;
function DHTML_init() {
if (window.opera) {
OP = 1;}
if(document.getElementById) {
DHTML = 1;
DOM = 1;}
if(document.all && !OP) {
DHTML = 1;
MS = 1;}
if (window.netscape && window.screen && !DOM && !OP){
DHTML = 1;
NS = 1;
}}
function getElemByID(p2) {
var Elem;
if(DOM) {
if (typeof document.getElementById(p2) == "object")
Elem = document.getElementById(p2);
else Elem = void(0);
return(Elem);}
else if(MS) {
if (typeof document.all[p2] == "object")
Elem = document.all[p2];
else Elem = void(0);
return(Elem);}
else if(NS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);
}}
function getElemByName(p2, p3) {
var Elem;
if(DOM) {
if (typeof document.getElementsByName(p2) == "object")
Elem = document.getElementsByName(p2)[p3];
else Elem = void(0);
return(Elem);}
else if(MS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);}
else if(NS) {
if (typeof document[p2] == "object")
Elem = document[p2];
else Elem = void(0);
return(Elem);
}}
function setContentByID(pszID, pszContent) {
if(DOM && getElemByID(pszID) && getElemByID(pszID).firstChild)
getElemByID(pszID).firstChild.nodeValue = pszContent;
else if(MS && getElemByID(pszID))
getElemByID(pszID).innerText = pszContent;
else if(NS && getElemByID(pszID)) {
getElemByID(pszID).document.open();
getElemByID(pszID).document.write(pszContent);
getElemByID(pszID).document.close();
}}
DHTML_init();
function ValidateLogin(pszLang){
StrTrim(document.LoginData.USERNAME);
StrTrim(document.LoginData.USERPASS);
if (document.LoginData.USERNAME.value.length <= 0) {
window.alert("Kein Anmeldename eingegeben!");
return(false);}
if (document.LoginData.USERPASS.value.length <= 0) {
window.alert("Kein Passwort eingegeben!");
return(false);}
Encode(document.LoginData.USERPASS);
return(true);}
function ValidateCreate(pszUID, pszLang){
if (document.LoginData.USERNAME.value.length <= 0) {
window.alert("Kein Anmeldename eingegeben!");
return(false);}
window.location.href = "USER.html?UID=" + pszUID + "&NICKNAME=" + document.LoginData.USERNAME.value;
return(true);}
function IsUsercodeValid(){
if ((document.getElementsByName('USERNAME')[0].value.length > 3) && (document.getElementsByName('USERNAME')[0].value != "Anmeldename")){
return(1);}
else {
window.alert("Bitte geben Sie Ihre Email-Adresse als Anmeldename ein!");}
return(0);}
function CheckRegistrationValid(){
if (IsUsercodeValid()) {
location="_reguser.htm?cust=&username="+document.getElementsByName('USERNAME')[0].value+"&infomail=behr@wiessoft.de";
return(1);}
return(0);}
function CheckResendValid(){
if (IsUsercodeValid()) {
location="_resend_pw.htm?cust=&username="+document.getElementsByName('USERNAME')[0].value;
return(1);}
return(0);}
function SetB2BStatus(pszUID, pszB2BServer, pszSender, pszReceiver, pszFlags, pszKStelle, pszKStelleAllowed, pszMail, pszCSVMode, pszLang){
szB2BServer = "";
szB2BSID = "";
szB2BFlags = "";
szB2BKStelle = "";
szB2BKStelleAllowed = "";
szB2BMail = "";
szB2BMode = "";
szB2BLang = "";
if (pszB2BServer)
szB2BServer = pszB2BServer;
if (pszSender)
szB2BSID = pszSender;
if (pszFlags)
szB2BFlags = pszFlags;
if (pszKStelle)
szB2BKStelle = pszKStelle;
if (pszKStelleAllowed)
szB2BKStelleAllowed = pszKStelleAllowed;
if (pszMail)
szB2BMail = pszMail;
if (pszCSVMode)
szB2BMode = pszCSVMode;
if (pszLang)
szB2BLang = pszLang;}
function OutputButtonPreText(pszFilename, pszLang){
if ((pszFilename) && (pszFilename.substring(0,7) == "ORD_ADD")) {
document.write("<br>");
if ((pszLang) && (pszLang == "UK"))
document.write("<a href='javascript:back();'>Continue shopping...</a>");
else
document.write("<a href='javascript:back();'>weiter einkaufen...</a>");
document.write("<br>");
document.write("<br>");
}}

