//
//  Display3(p)
//
function  Display3 (p) {
if  ( p == 0 )
	{window.location.href = "artikel_no.html";}
else{
// Produkt-DB laden
Products = ProductsDB[p];
Product  = Products.split("!");

// Nummer
rNr3 = Product[0];
rNr5 = Product[1];

// Name = NAME_D
rName = Product[3];

// Picture
rPic = "../produkte/" + Product[1] + "l.jpg";

// Quality = NK / KK / PVC / PVC-S / SI / N / C / F / FP
rQuality = Product[5];
x = Product[5];
if  ( x == "NK" )		rQuality = "natural rubber";
if  ( x == "KK" )		rQuality = "synthetic rubber";
if  ( x == "PVC" )		rQuality = "PVC";
if  ( x == "PVC-S" )	rQuality = "special PVC";
if  ( x == "SI" )		rQuality = "silicone";
if  ( x == "N" )		rQuality = "nylon";
if  ( x == "C" )		rQuality = "corc";
if  ( x == "F" )		rQuality = "woolfelt";
if  ( x == "FP" )		rQuality = "needled felt";
if  ( x == "KK+C" )		rQuality = "synthetic rubber + corc";
if  ( x == "KKW" )		rQuality = "synthetic rubber, white";

// Thick = THICK_"mm"
if (Product[6] == "10/15 holes")
	rThick = Product[6];
	else
	rThick = Product[6] + " mm";

// MaxTemp = MAXTEMP_"°C"
rMaxTemp = Product[7] + "&deg;C";
rMaxFar = Product[7]*9/5+32 + "&deg;F";

// Length = LENGTH_"m"
rLength  = Product[8] + " m";

lx = Product[8];
if ( lx == "50/100" ) rLeFt = "164/328 ft";
if ( lx == "55/110" ) rLeFt = "180/361 ft";
if ( lx == "50" ) rLeFt = "164 ft";
if ( lx == "25" ) rLeFt = "82 ft";
if ( lx == "50/55" ) rLeFt = "164/180 ft";
if ( lx == "46" ) rLeFt = "151 ft";
if ( lx == "76" ) rLeFt = "249 ft";
if ( lx == "15" ) rLeFt = "49 ft";
if ( lx == "76" ) rLeFt = "249 ft";
if ( lx == "15/50" ) rLeFt = "49/164 ft";
if ( lx == "10" ) rLeFt = "33 ft";
if ( lx == "76" ) rLeFt = "249 ft";
if ( lx == "min. 20" ) rLeFt = "65 ft";
if ( lx == "100" ) rLeFt = "328 ft";
if ( lx == "50/110" ) rLeFt = "164/361 ft";




// LenSpec = LEN_SPEC
if  ( Product[9] == "SL" )
	rLenSpec = "on request";
else
	rLenSpec = "not possible";

// Width = WIDTH_"mm"
rWidth = Product[10] + " mm";

// WidSpec = WID_SPEC_"mm max."
switch (Product[11])
	{
	case  '-/- ':
	rWidSpec = "not possible";
	break;

	case 'on request':
	rWidSpec = Product[11];
	break;
	default:
	rWidSpec = Product[11] + " mm max.";
	}

// Weight = WEIGHT_xxx
x = Product[12].split("+");
if  ( x[0] == "1" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += "50mm width = approx. " +x[2]+ " kg";
	}
if  ( x[0] == "2" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += " 50mm width = approx. " +x[2]+ " kg<br>";
	rWeight += "100mm width = approx. " +x[3]+ " kg";
	}
if  ( x[0] == "3" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += " 50mm width = approx. " +x[2]+ " kg<br>";
	rWeight += " 70mm width = approx. " +x[3]+ " kg<br>";
	rWeight += "100mm width = approx. " +x[4]+ " kg";
	}
if  ( x[0] == "4" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += " 50mm width=" +x[2]+ "<br>";
	rWeight += " 50mm width=" +x[3]+ "<br>";
	rWeight += " 50mm width=" +x[4]+ "<br>";
	rWeight += " 70mm width=" +x[5]+ "<br>";
	rWeight += " 70mm width=" +x[6]+ "<br>";
	rWeight += " 70mm width=" +x[7]+ "<br>";
	rWeight += " 100mm width=" +x[8]+ "<br>";
	rWeight += " 100mm width=" +x[9]+ "<br>";
	rWeight += " 100mm width=" +x[10]+ "<br>";
	}
if  ( x[0] == "5" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += " 38mm width = approx. " +x[2]+ " kg<br>";
	rWeight += " 50mm width = approx. " +x[3]+ " kg<br>";
	rWeight += " 70mm width = approx. " +x[4]+ " kg<br>";
	rWeight += "100mm width = approx. " +x[5]+ " kg";
	}
if  ( x[0] == "6" )
	{
	rWeight  = "(" +x[1]+ "m rl.)<br>";
	rWeight += "38mm width = approx. " +x[2]+ " kg";
	}



// Glue = 0 / 1 / 2 / A / E / T // F / N / S
x = Product[13];
if  ( x == "0" )	rGlue = "<a href='klebunggrund.html'>Priming</a>";		// Kleber
if  ( x == "1" )	rGlue = "<a href='klebungpeha10.html'>PEHA 10</a>";
if  ( x == "2" )	rGlue = "<a href='klebungpeha20.html'>PEHA 20</a>";
if  ( x == "A" )	rGlue = "<a href='klebungakg.html'>AKG</a>";
if  ( x == "E" )	rGlue = "<a href='klebungelas.html'>Elastosil</a>";
if  ( x == "T" )	rGlue = "<a href='klebungtero.html'>Terokal</a>";
//
if  ( x == "F" )	rGlue = "liquid glue is not possible";
if  ( x == "N" )	rGlue = "no";
if  ( x == "S" )	rGlue = "only self-adhesive";
//
if  ( x == "G0" )	rGlue = "<a href='klebungpeha10.html'>limited to 100&deg;C/212&deg;F: PEHA 10,</a> <a href='klebungtero.html'>Terokal 2444</a><br><a href='klebungakg.html'>from 100&deg;C/212&deg;F: AKG</a>";
if  ( x == "G1" )	rGlue = "<a href='klebungpeha10.html'>PEHA 10,</a> <a href='klebungtero.html'>Terokal 2444</a>";
if  ( x == "G2" )	rGlue = "<a href='klebungpeha10.html'>PEHA 10,</a> <a href='klebungtero.html'>Terokal 2444</a>, cold glue";

// Self = A / A140 / B / N / ST / SO
x = Product[14];
if  ( x == "AA" )	rSelf = "<a href='klebunga.html'>on demand</a>";
if  ( x == "A140A" )	rSelf = "<a href='klebunga.html'>on demand, but max. 140&deg;C/284&deg;F heat resistance</a>";
if  ( x == "BA" )	rSelf = "<a href='klebunga.html'>standard, on demand without</a>";
if  ( x == "N" )	rSelf = "no";
if  ( x == "STA" )	rSelf = "<a href='klebunga.html'>standard</a>";
if  ( x == "SOA" )	rSelf = "<a href='klebunga.html'>standard, on demand without</a>";
if  ( x == "AB" )	rSelf = "<a href='klebungb.html'>on demand</a>";
if  ( x == "A140B" )	rSelf = "<a href='klebungb.html'>on demand, but max. 140&deg;C/284&deg;F heat resistance</a>";
if  ( x == "BB" )	rSelf = "<a href='klebungb.html'>standard, on demand without</a>";
if  ( x == "STB" )	rSelf = "<a href='klebungb.html'>standard</a>";
if  ( x == "SOB" )	rSelf = "<a href='klebungb.html'>standard, on demand without</a>";
if  ( x == "AC" )	rSelf = "<a href='klebungc.html'>on demand</a>";
if  ( x == "A140C" )	rSelf = "<a href='klebungc.html'>on demand, but max. 140&deg;C/284&deg;F heat resistance</a>";
if  ( x == "BC" )	rSelf = "<a href='klebungc.html'>standard, on demand without</a>";
if  ( x == "STC" )	rSelf = "<a href='klebungc.html'>standard</a>";
if  ( x == "SOC" )	rSelf = "<a href='klebungc.html'>standard, on demand without</a>";

// Remark
rRemark = Products_E[p];

// rKlebung
rKlebung = '<a href="klebunga.html" target="mitte">Verklebung</a>';
if  ( p==23 )	rKlebung = '<a href="klebungb.html" target="mitte">Verklebung</a>';
if  ( p==24 )	rKlebung = '<a href="klebungb.html" target="mitte">Verklebung</a>';

// rPDF
rPDF = '<a href="pdf/'+Product[1]+'e.pdf">Printing product<br>information<br>(PDF)</a>';

// did we display anything?
d = true;
}};



//
//  Display5(p)
//
function  Display5 (p) {
d = false;
if  ( p == 11100 )	Display3(35);
if  ( p == 11200 )	Display3(33);
if  ( p == 11201 )	Display3(49);
if  ( p == 11300 )	Display3(9);
if  ( p == 11301 )	Display3(11);
if  ( p == 11302 )	Display3(13);
if  ( p == 11303 )	Display3(52);
if  ( p == 11600 )	Display3(23);

if  ( p == 12100 )	Display3(36);
if  ( p == 12200 )	Display3(1);
if  ( p == 12201 )	Display3(2);
if  ( p == 12202 )	Display3(3);
if  ( p == 12203 )	Display3(7);
if  ( p == 12204 )	Display3(41);
if  ( p == 12205 )	Display3(42);
if  ( p == 12206 )	Display3(47);
if  ( p == 12207 )	Display3(48);
if  ( p == 12208 )	Display3(34);
if  ( p == 12300 )	Display3(10);
if  ( p == 12301 )	Display3(12);
if  ( p == 12302 )	Display3(8);
if  ( p == 12303 )	Display3(43);
if  ( p == 12400 )	Display3(17);
if  ( p == 12401 )	Display3(18);
if  ( p == 12402 )	Display3(45);

if  ( p == 12500 )	Display3(4);
if  ( p == 12501 )	Display3(5);
if  ( p == 12502 )	Display3(21);
if  ( p == 12503 )	Display3(22);
if  ( p == 12504 )	Display3(46);
if  ( p == 12600 )	Display3(24);
if  ( p == 12601 )	Display3(37);
if  ( p == 12700 )	Display3(19);
if  ( p == 12701 )	Display3(51);

if  ( p == 13100 )	Display3(25);
if  ( p == 13101 )	Display3(28);
if  ( p == 13102 )	Display3(6);
if  ( p == 13103 )	Display3(44);
if  ( p == 13104 )	Display3(31);
if  ( p == 13105 )	Display3(32);
if  ( p == 13200 )	Display3(26);
if  ( p == 13201 )	Display3(29);
if  ( p == 13300 )	Display3(27);
if  ( p == 13301 )	Display3(30);

if  ( p == 14100 )	Display3(14);
if  ( p == 14101 )	Display3(50);
if  ( p == 14300 )	Display3(16);
if  ( p == 14400 )	Display3(15);
if  ( p == 15000 )	Display3(38);
if  ( p == 15001 )	Display3(39);
if  ( p == 16000 )	Display3(40);
if  ( p == 19700 )	Display3(20);

if  ( p == 11201 )	Display3(49);
if  ( p == 14101 )	Display3(50);
if  ( p == 12701 )	Display3(51);
if  ( p == 11303 )	Display3(52);
if  ( p == 12507 )	Display3(53);
if  ( p == 12211 )	Display3(54);
if  ( p == 12212 )	Display3(55);
if  ( p == 12405 )	Display3(56);
if  ( p == 14301 )	Display3(57);
if  ( p == 14103 )	Display3(58);
if  ( p == 19710 )	Display3(59);
if  ( p == 13109 )	Display3(60);
if  ( p == 13110 )	Display3(61);

if  ( d == false )	Display3(0);
};



//
//  Display()
//
//  AUFRUF aus "prodsuch.html":
//  In "window.location.search" werden die SuchParameter fuer die HTML-Seite
//  uebergeben, also z.B.  "?12345"  bei einem Aufruf  "produkt.html?12345".
//
//  AUFRUF aus "artikel.html":
//  in "window.location.search" werden die SuchParameter fuer die HTML-Seite
//  <FORM METHOD=GET ...> als "produkt.html?sProdNr=12345" uebergeben.
//
function  Display() {
rName = "";
rNr5  = "";
rPic  = "img_allgemein/blind.gif";
s = window.location.search;	// get search-params
t = s.split("?");			// kill "?"
s = parseInt(t[1]);			// search-params without "?"

if  ( s>10000 || s<20000 )
	{
	Display5(s);
	}
else
	{
	s = window.location.search;
	t = s.split("=");
	s = t[1].split("=");
	Display5(s);
	};
};



//
//  DisplayPic()
//
function  DisplayPic() {
if  ( d == true )
	{
	document.ProdPic.src = rPic;
	}
};
