	// define buildUp Methods for StandAloneElements
	function createLine(){
		myLine = new clsObject("OrderBody")
			myLine.LinePos						=	xmlOHeader.childNodes.length;
			myLine.ProductNo					=	"";
			myLine.Name							=	"";
			myLine.Description					=	"";
			myLine.PriceUserEntry				=	"";
			myLine.PriceUnit					=	"1";
			myLine.MinOrder						=	"1";
			myLine.QuantityUnit					=	"";
			myLine.QuantityAmount				=	"1";
			myLine.TaxClass						=	"0";
			myLine.TaxRate						=	"0";
			myLine.TaxAmountLineTotalLC			=	"0";
			myLine.TaxAmountLineTotalSC			=	"0";
			myLine.DiscountRate					=	"0";
			myLine.DiscountNetSingleUnitLC		=	"0";
			myLine.DiscountGrossSingleUnitLC	=	"0";
			myLine.DiscountNetLineTotalLC		=	"0";
			myLine.DiscountGrossLineTotalLC		=	"0";
			myLine.DiscountNetSingleUnitSC		=	"0";
			myLine.DiscountGrossSingleUnitSC	=	"0";
			myLine.DiscountNetLineTotalSC		=	"0";
			myLine.DiscountGrossLineTotalSC		=	"0";
			myLine.PriceNetSingleUnitLC			=	"0";
			myLine.PriceGrossSingleUnitLC		=	"0";
			myLine.PriceNetLineTotalLC			=	"0";
			myLine.PriceGrossLineTotalLC		=	"0";
			myLine.PriceNetSingleUnitSC			=	"0";
			myLine.PriceGrossSingleUnitSC		=	"0";
			myLine.PriceNetLineTotalSC			=	"0";
			myLine.PriceGrossLineTotalSC		=	"0";
			myLine.WeightUnit					=	"";
			myLine.WeightAmountSingleUnit		=	"0";
			myLine.WeightAmountLineTotal		=	"0";
			// remove
			myLine.addNode("Internal");
	// return Line-Object to Caller
	return myLine;
	};
// 
	function addToBag(anElement,Amount){
		with(this){
			var taxamount = taxarea[parseInt(xmlConfig.taxarea)][parseInt(anElement.Tax) + 1];
			var update = -1;
			myLines = xmlOHeader.childNodes
			for(var i=0;i<myLines.length;i++){
				if(myLines[i].ProductNo==anElement.Prod_nr){
					update = i;
					break;
					};
				};
			// product already in shoppingcard
			if(update>-1){
				// detect position of prod_nr in shoppingcart
				myLines[i].QuantityAmount = Amount;
				if(boolPriceTaxIncl){
					myLines[i].PriceNetLineTotalLC = anElement.Price * Amount * ( 1 - taxamount/( 100 + taxamount ));
					myLines[i].PriceGrossLineTotalLC = anElement.Price * Amount;
					}
				else{
					myLines[i].PriceNetLineTotalLC = anElement.Price * Amount;
					myLines[i].PriceGrossLineTotalLC = anElement.Price * Amount * ( 1 + taxamount/100 );
					};
				}
			// add product to shoppingcart
			else{
				myLine = createLine();
				myLine.ProductNo = anElement.Prod_nr;
				myLine.Name = anElement.Title;
				myLine.Description = anElement.Subtitle;
				myLine.QuantityAmount = Amount;
				myLine.QuantityUnit = anElement.Unitdesc;
				myInternal = myLine.getFirstItem("Internal")
					myInternal.price = anElement.Price;
					myInternal.address = anElement.LnkAdress;
					myInternal.navIndex = anElement.NavIndex;
					myInternal.discount = anElement.Discount;
					myInternal.minOrder = anElement.Minorder;
					myInternal.variants = anElement.Variants;
					myInternal.catDiscount = anElement.catDiscount;
				
				myLine.WeightAmountSingleUnit = parseFloat(anElement.Weight);
				myLine.WeightAmountLineTotal = parseFloat(anElement.Weight) * parseInt(Amount);
				
				myLine.TaxClass = anElement.Tax;
				myLine.TaxRate = taxamount;
				
				myLine.PriceUnit = anElement.PriceUnit;
				
				if(boolPriceTaxIncl){
					myLine.PriceNetSingleUnitLC = parseFloat(anElement.Price) * ( 1 - taxamount/( 100 + taxamount ) );
					myLine.PriceNetLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount) * ( 1 - taxamount/( 100 + taxamount ) );
					myLine.PriceGrossSingleUnitLC = parseFloat(anElement.Price);
					myLine.PriceGrossLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount);
					}
				else{
					myLine.PriceNetSingleUnitLC = parseFloat(anElement.Price);
					myLine.PriceNetLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount);
					myLine.PriceGrossSingleUnitLC = parseFloat(anElement.Price) * ( 1 + taxamount/100 );
					myLine.PriceGrossLineTotalLC = parseFloat(anElement.Price) * parseInt(Amount) * ( 1 + taxamount/100 );
					};
				myLines[myLines.length] = myLine;
				};
			safeData();
			var dummyQueryString = "";
			if(Element){
				dummyQueryString += "productId=" + anElement.Prod_No + "&quantity=" + Amount;
				};
			location.href="orderform.htm?" + dummyQueryString;
			};
		};
// ** 1105
	function TElementPrint(){
		var boolDisplArtId = "true";
		var variants, variantString = "";
		variants = this.Variants.split("@");
		for(var i=0; i<variants.length - 1; i++){
			variantString += "search" + i + "_EQ_" + variants[i].split(";")[1] + "_AND_"; 
			};
		variantString += "{EOL}";
		
		var addToBag = '<img src="assets/images/btnaddtobag.gif" width="107" height="26" alt="Artikel merken" border="0" align="bottom" hspace="0" vspace="0" class="main">';
		var rString = '<TR><TD align="right" class="PROVIEWBODY">';
		if(this.Image!=""){
			if(this.LnkAdress!="#DROP#") rString += "<a href=\"" + this.LnkAdress + "?defaultVariants=" + variantString + "&categoryId=" + this.NavIndex + "\">";
			rString += "<img src='" + this.Image + "' border=0";
			if(this.Width!=0) rString += " width=" + this.Width;
			if(this.Height!=0) rString += " height=" + this.Height;
			rString += " align=\"top\">";
			if(this.LnkAdress!="#DROP#") rString += "</a>";
			};
		
		rString += '</TD><TD class="PROVIEWBODY" valign="top" width="100%"><TABLE border="0" cellpadding="1" cellspacing="0" width="100%">';
		if(boolDisplArtId) rString += '<TR><TD class="PROVIEWARTID">' + this.Prod_nr + "</TD></TR>";
		rString += "<TR><TD class=\"PROVIEWBEZ1\">"
		if(this.LnkAdress!="#DROP#") rString += "<a href=\"" + this.LnkAdress + "?defaultVariants=" + variantString + "&categoryId=" + this.NavIndex + "\">"
		rString += this.Title;
		if(this.LnkAdress!="#DROP#") rString += "</a>";
		rString += "</TD></TR>"
			+ "<TR><TD class=\"PROVIEWBEZ2\">" + this.Subtitle;
		if(variants.length>0) rString += "<br>";
		for(var i=0; i<variants.length - 1; i++){
			rString	+= "<nobr><strong>" + variants[i].split(";")[0] + ": " + variants[i].split(";")[1] + "</strong>"
			if(i<variants.length-2) rString += ", ";
			rString += "</nobr>";
			};
		rString += "</TD></TR>";
		if(this.displMode==0||this.displMode==2){
			rString	+= "<TR><TD>";
			rString += "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
			if(this.catDiscount==0){
				rString += "<tr valign=\"top\"><td class=\"PROVIEWPRICE\" nowrap>";
				rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
				if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objSecCurrency);
				rString += "</td></tr>";
				}
			else{
				if(this.Discount==""||this.Discount=="{EOL}"){
					rString += "<tr valign=\"top\">";
					rString += "<td nowrap>Preis vorher:&nbsp;</td>";
					rString += "<td class=\"PROVIEWPRICESTROKEN\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
					rString += "</td>"
					rString += "</tr>";
					rString += "<tr valign=\"top\">";
					rString += "<td nowrap>Jetzt nur noch:&nbsp;</td>";
					rString += "<td class=\"PROVIEWPRICE\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price * (1 - this.catDiscount / 100 ),this.Tax) / this.PriceUnit, objPriCurrency);
					if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price - ( this.Price * this.catDiscount / 100 ),this.Tax) / this.PriceUnit, objSecCurrency);
					rString += "</td>"
					rString += "</tr>";
					}
				else{
					rString += "<tr valign=\"top\"><td class=\"PROVIEWPRICE\" nowrap>";
					rString += TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objPriCurrency);
					if(boolDisplSecCurr) rString += charSecCurrDelimiter + TFormatCurrency(displPrice(this.Price,this.Tax) / this.PriceUnit, objSecCurrency);
					rString += "</td></tr>";
					};
				};
			rString += "<tr><td>Preis inkl. ges. MwSt. zzgl. <a href='discl.htm#Versand' target='_blank'> Versandkosten</a></td></TR>"

rString += "</table>";
			rString += "</TD></TR>";
			}
		else if(this.displMode==3){
			rString	+= "<TR><TD class=\"PROVIEWPRICE\" nowrap>";
			rString += "Preis auf Anfrage";
			rString += "</TD></TR>";
			};
		if(this.displMode==0){
			rString += "<TR><TD>&nbsp;</TD></TR>"
				+ "<TR><TD><a href=\"JavaScript:addToBag(Entry[" + this.Index + "]," + this.Minorder + ");\">" + addToBag + "</a></TD></TR>";
			};
		rString += "<TR><TD>&nbsp;</TD></TR>"
			+ "</TABLE>"
			+ "</td></tr>";
		return(rString);
		};
// ** 1106
	function Element(Index,Image,Width,Height,Prod_nr,Title,Subtitle,Manufac,Price,Weight,Tax,PriceUnit,Unitdesc,NavIndex,Options,LnkAdress,Discount,Minorder,Category,catDiscount,displMode){
		this.Index = Index;
		this.Image = Image;this.Width = Width;
		this.Height = Height;this.Prod_nr = Prod_nr;
		this.Title = Title;this.Subtitle = Subtitle;
		this.Manufac = Manufac;this.Price = Price;
		this.Weight = Weight;this.Tax = Tax;
		this.PriceUnit = PriceUnit;this.Unitdesc = Unitdesc;
		this.NavIndex = NavIndex;
		this.Print = TElementPrint;this.Variants = Options;
		this.LnkAdress = LnkAdress;this.Discount = Discount;
		this.Minorder = Minorder;this.Category = Category;
		this.catDiscount = catDiscount;
		this.displMode = displMode;
		};
// ** 1107
	var Entry = new Array();
// ** 1108
	
		Entry[0] = new Element(
		0, "assets/thumb/winxp-oem.jpg",
		100, 100,
		"05-01-01", "MS Windows XP Home OEM SP3",
		"", "",
		"83.9", "0.21",
		"1", 1,
		"Stück", "1",
		"", "pd-1492669135.htm",
		"", 1,
		"05-01", "0",
		 0)
	
		Entry[1] = new Element(
		1, "assets/thumb/winxp-pro-oem.jpg",
		70, 85,
		"05-01-02", "MS Windows XP Pro OEM SP3",
		"Original-Vollversion ", "",
		"125.95", "0.21",
		"1", 1,
		"Stück", "1",
		"", "pd1023670983.htm",
		"", 1,
		"05-01", "0",
		 0)
	
		Entry[2] = new Element(
		2, "assets/thumb/works-2008.jpg",
		70, 70,
		"bet23614", "Microsoft Workssuite 2008 ",
		"Vollversion - OEM", "",
		"42.9", "0",
		"1", 1,
		"Stück", "2",
		"", "pd1074942694.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[3] = new Element(
		3, "assets/thumb/xp media.jpg",
		108, 80,
		"bet11530", "MS Windows XP  Media Center Edition 2005 (Pro)",
		"Vollversion OEM mit Service Pack 2", "",
		"115.9", "0.21",
		"1", 1,
		"Stück", "1",
		"", "pd1098883168.htm",
		"", 1,
		"05-01", "0",
		 0)
	
		Entry[4] = new Element(
		4, "assets/thumb/Adobe.jpg",
		70, 52,
		"bet11773", "Adobe Acrobat 6.0 Standard",
		"OEM, dt.", "",
		"329.5", "0.21",
		"1", 1,
		"Stück", "2",
		"", "pd1102769241.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[5] = new Element(
		5, "assets/thumb/nero6.0suite-1.jpg",
		70, 70,
		"bet10614", "Nero 6.0 Suite 3 OEM, dt.",
		"", "",
		"16.9", "0.04",
		"1", 1,
		"Stück", "7",
		"", "pd853102867.htm",
		"", 1,
		"05-5", "0",
		 0)
	
		Entry[6] = new Element(
		6, "assets/thumb/nero6.0suite-1.jpg",
		70, 70,
		"bet9343", "Nero 6.0 Suite 1 OEM, dt.",
		"", "",
		"4.9", "0.04",
		"1", 1,
		"Stück", "7",
		"", "pd-2144186939.htm",
		"", 1,
		"05-5", "0",
		 0)
	
		Entry[7] = new Element(
		7, "assets/thumb/OPK2007.jpg",
		70, 70,
		"es106780-1", "Microsoft Office 2007 OPK",
		"Installations-CD ohne Lizenz", "",
		"34.9", "0",
		"1", 1,
		"Stück", "2",
		"", "pd1198769852.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[8] = new Element(
		8, "assets/thumb/kaspopenspace.jpg",
		70, 83,
		"hexY372853", "Kaspersky Open Space 5+1 Security",
		"Umfassender Schutz für kleine Unternehmen", "",
		"219.9", "0",
		"1", 1,
		"Stück", "5",
		"", "pd1223906791.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[9] = new Element(
		9, "assets/thumb/kaspopenspace.jpg",
		70, 83,
		"hexY383184", "Kaspersky Open Space 5+1 Security 5-User Extension Pack",
		"", "",
		"179.9", "0",
		"1", 1,
		"Stück", "5",
		"", "pd-409867667.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[10] = new Element(
		10, "assets/thumb/kaspopenspace.jpg",
		70, 83,
		"hexY372853-1", "Kaspersky Open Space 5+1 Security",
		"Umfassender Schutz für kleine Unternehmen", "",
		"219.9", "0",
		"1", 1,
		"Stück", "6",
		"", "pd-2108560797.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[11] = new Element(
		11, "assets/thumb/pandais2009-oem.jpg",
		70, 70,
		"bet25213", "Panda  Internet Security 2009",
		"Vollversion-OEM Deutsch, mehrsprachig", "",
		"5.9", "0",
		"1", 1,
		"Stück", "4",
		"", "pd1226757608.htm",
		"", 1,
		"05-4-2", "0",
		 0)
	
		Entry[12] = new Element(
		12, "assets/thumb/kaspAV-010.jpg",
		70, 70,
		"bet26677", "Kaspersky Anti-Virus 2010 upd.",
		"", "",
		"15.9", "0",
		"1", 1,
		"Stück", "5",
		"", "pd1259512781.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[13] = new Element(
		13, "assets/thumb/kaspAV-010.jpg",
		70, 70,
		"bet26675", "Kaspersky Anti-Virus 2010 ",
		"", "",
		"22.5", "0",
		"1", 1,
		"Stück", "5",
		"", "pd1448788675.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[14] = new Element(
		14, "assets/thumb/kaspIS-10.jpg",
		70, 70,
		"bet26681", "Kaspersky Internet Security 2010 upd.",
		"", "",
		"19.45", "0",
		"1", 1,
		"Stück", "5",
		"", "pd938152617.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[15] = new Element(
		15, "assets/thumb/kaspIS-10.jpg",
		70, 70,
		"bet26679", "Kaspersky Internet Security 2010 ",
		"", "",
		"22.45", "0",
		"1", 1,
		"Stück", "5",
		"", "pd559201535.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[16] = new Element(
		16, "assets/thumb/kaspIS-10-3pc.jpg",
		70, 70,
		"bet26685", "Kaspersky Internet Security 2010 3 User upd.",
		"", "",
		"32.9", "0",
		"1", 1,
		"Stück", "5",
		"", "pd1490044194.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[17] = new Element(
		17, "assets/thumb/kaspIS-10-3pc.jpg",
		70, 70,
		"bet26683", "Kaspersky Internet Security 2010 3 User",
		"", "",
		"43.9", "0",
		"1", 1,
		"Stück", "5",
		"", "pd-1588830815.htm",
		"", 1,
		"05-4-3", "0",
		 0)
	
		Entry[18] = new Element(
		18, "assets/thumb/panda-AvPro-2010.jpg",
		70, 70,
		"bet26960", "Panda AntiVirus Pro 2010",
		"Mit pers. Firewall", "",
		"10.4", "0",
		"1", 1,
		"Stück", "4",
		"", "pd1259599044.htm",
		"", 1,
		"05-4-2", "0",
		 0)
	
		Entry[19] = new Element(
		19, "assets/thumb/panda-AvPro-2010.jpg",
		70, 70,
		"bet26961", "Panda AntiVirus Pro 2010 3 User",
		"Mit pers. Firewall", "",
		"15.5", "0",
		"1", 1,
		"Stück", "4",
		"", "pd2000976018.htm",
		"", 1,
		"05-4-2", "0",
		 0)
	
		Entry[20] = new Element(
		20, "assets/thumb/panda-IS-2010.jpg",
		70, 70,
		"bet26962", "Panda Internet Security 2010",
		"", "",
		"28.9", "0",
		"1", 1,
		"Stück", "4",
		"", "pd173852625.htm",
		"", 1,
		"05-4-2", "0",
		 0)
	
		Entry[21] = new Element(
		21, "assets/thumb/panda-IS-2010.jpg",
		70, 70,
		"bet26963", "Panda Internet Security 2010 3 User",
		"", "",
		"36.9", "0",
		"1", 1,
		"Stück", "4",
		"", "pd211097191.htm",
		"", 1,
		"05-4-2", "0",
		 0)
	
		Entry[22] = new Element(
		22, "assets/thumb/translpro.jpg",
		70, 70,
		"bet12282", "Linguatec Personal Translator 2006 Pro",
		"Engl.-Deutsch /Deutsch-Engl.", "",
		"185.9", "0",
		"1", 1,
		"Stück", "2",
		"", "pd-2102494065.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[23] = new Element(
		23, "assets/thumb/ashampoo5.jpg",
		49, 70,
		"05-501", "Ashampoo Burning Studio 5 OEM",
		"", "",
		"3.5", "0",
		"1", 1,
		"Stück", "7",
		"", "pd1168176216.htm",
		"", 1,
		"05-5", "0",
		 0)
	
		Entry[24] = new Element(
		24, "assets/thumb/office07bas.jpg",
		70, 70,
		"es106777", "MS Office Basic 2007 ",
		"OEM-Systembildner-Vollversion-Lizenz", "",
		"155.9", "0",
		"1", 1,
		"Lizenzen", "2",
		"", "pd1224466710.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[25] = new Element(
		25, "assets/thumb/office07SBE.jpg",
		70, 70,
		"es106779", "MS OfficeSBE 2007 ",
		"OEM-Systembildner-Vollversion-Lizenz", "",
		"199.9", "0",
		"1", 1,
		"Lizenzen", "2",
		"", "pd-2129705676.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[26] = new Element(
		26, "assets/thumb/office07Pro.jpg",
		70, 70,
		"es106780", "MS Office PRO 2007 ",
		"OEM-Systembildner-Vollversion-Lizenz", "",
		"244.9", "0",
		"1", 1,
		"Lizenzen", "2",
		"", "pd-1263761189.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[27] = new Element(
		27, "assets/thumb/officeHome.jpg",
		70, 70,
		"bet22686", "MS Office Home and Student 2007 ",
		"Vollversion für 3 PC", "",
		"119.9", "0",
		"1", 1,
		"Stück", "2",
		"", "pd-1960301906.htm",
		"", 1,
		"05-02", "0",
		 0)
	
		Entry[28] = new Element(
		28, "assets/thumb/gdatabus.jpg",
		70, 77,
		"es339378", "G DATA AntiVirus Business 2007 5 User",
		"1-Jahres Mehrfach- und Netzwerklizenz", "",
		"319", "0",
		"1", 1,
		"Stück", "6",
		"", "pd1169383473.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[29] = new Element(
		29, "assets/thumb/gdatabus.jpg",
		70, 77,
		"es339377", "G DATA AntiVirus Business 2007  10 User",
		"1-Jahres Mehrfach- und Netzwerklizenz", "",
		"535", "0",
		"1", 1,
		"Lizenzen", "6",
		"", "pd50521543.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[30] = new Element(
		30, "assets/thumb/etrustr8.jpg",
		70, 70,
		"bet22950", "eTrust AntiVirus r8.1   1- User- Vollversion",
		"Die ideale Lösung für kleine und mittlere Unternehmen", "",
		"44.95", "0",
		"1", 1,
		"Stück", "6",
		"", "pd1165444876.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[31] = new Element(
		31, "assets/thumb/etrustr8.jpg",
		70, 70,
		"bet22951", "eTrust AntiVirus r8.1  5 - User- Vollversion",
		"Die ideale Lösung für kleine und mittlere Unternehmen", "",
		"133.5", "0",
		"1", 1,
		"Stück", "6",
		"", "pd-1908394982.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[32] = new Element(
		32, "assets/thumb/symantec_starter.gif",
		100, 127,
		"TD1386271", "Symantec Antivirus Starter Edition 10.2 Business Pack 5 User",
		"", "",
		"239.9", "0",
		"1", 1,
		"Stück", "6",
		"", "pd1189160478.htm",
		"", 1,
		"05-8", "0",
		 0)
	
		Entry[33] = new Element(
		33, "assets/thumb/symantec_starter.gif",
		100, 127,
		"TD1386271-1", "Symantec Antivirus Starter Edition 10.2 Business Pack Lizenz ",
		"", "",
		"45.95", "0",
		"1", 1,
		"Stück", "6",
		"", "pd1116811644.htm",
		"0::6::43.95;", 5,
		"05-8", "0",
		 0)
	
// ** 1109
	function SetupSearchEngineForm(){
		mySearchEngine = xmlConfig.getFirstItem("SearchEngine");
		if(mySearchEngine.term!="null") document.SearchEngine.Term.value = mySearchEngine.term;
		for(var i=0;i<document.SearchEngine.Mode.length;i++){
			if(i==mySearchEngine.mode) document.SearchEngine.Mode[i].selected = true;
			};
		if(mySearchEngine.maxPrice>0) document.SearchEngine.Maxprice.value = mySearchEngine.maxPrice;
		else{
			document.SearchEngine.Maxprice.value="";
			mySearchEngine.maxPrice = -1;
			};
		if(xmlConfig.getFirstItem("SearchEngine").ByCategory=="1"){
			for(var i=0;i<document.SearchEngine.navselect.length; i++){
				if(document.SearchEngine.navselect[i].value.split(';;')[2]==mySearchEngine.categoryId){
					xmlConfig.getFirstItem("SearchEngine").categoryIndex = document.SearchEngine.navselect[i].value.split(';;')[0];
					document.SearchEngine.navselect[i].selected = true;
					};
				};
			}
		else{
			xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
			};
		};
// enable smartstore to display amount of found products ...
	var counter = 0;
// ** 1111b
	function SearchFor(Term,Mode){
	var foundItems = new Array();
	var itemPrice = 0; var currentCategory = 0;
		mySearchEngine = xmlConfig.getFirstItem("SearchEngine");
		if((Term!="null" && Term!="")||mySearchEngine.maxPrice>=0){
			if(Mode=="") Mode=0;
			Term = Term.toLowerCase();
			var result = "<form name=\"ProductIndex\" onSubmit=\"return false;\">";
			var matchCategory = true;
			var productCategory;
			for(var i=0;i<Entry.length;i++){
				if(xmlConfig.getFirstItem("SearchEngine").ByCategory=="1"){
					// Search for matching categories
					if(xmlConfig.getFirstItem("SearchEngine").categoryIndex!="null"&&xmlConfig.getFirstItem("SearchEngine").categoryIndex!="nada"){
						for(var j=0; j<Entry[i].Category.split(",").length; j++){
							matchCategory = (navigation[mySearchEngine.categoryIndex].categoryId == Entry[i].Category.split(",")[j]) ? true : false;
							if(matchCategory!=true){
								productCategory = getNavElementByCatID(Entry[i].Category.split(",")[j]);
								while(productCategory!=null&&matchCategory==false){
									if(productCategory.parentId!=null){
										if(navigation[productCategory.parentId].categoryId==xmlConfig.getFirstItem("SearchEngine").categoryId){
											currentCategory = Entry[i].Category.split(",")[j];
											matchCategory=true;
											break;
											}
										else productCategory = navigation[productCategory.parentId];
										}
									else{
										currentCategory = Entry[i].Category.split(",")[j];
										productCategory = null;
										};
									};
								}
							else{
								currentCategory = Entry[i].Category.split(",")[j];
								break;
								};
							};
						}
					else{
						currentCategory = Entry[i].Category.split(",")[0];
						matchCategory = true;
						};
					}
				else{
					currentCategory = Entry[i].Category.split(",")[0];
					matchCategory = true;
					};
				// Update current Category
				Entry[i].NavIndex = getNavElementByCatID(currentCategory).id;
				// Continue
				var foundDesc1 = Entry[i].Title.toLowerCase().indexOf(Term)!=-1;
				var foundDesc2 = Entry[i].Subtitle.toLowerCase().indexOf(Term)!=-1;
				var foundProdId = Entry[i].Prod_nr.toLowerCase().indexOf(Term)!=-1;
				var foundManufac = Entry[i].Manufac.toLowerCase().indexOf(Term)!=-1;
				// SearchFor All
				itemPrice = Entry[i].Price
				if(Entry[i].catDiscount!=0&&Entry[i].Discount==""){
					itemPrice = Entry[i].Price * (1 - Entry[i].catDiscount / 100 );
					};
				//
				itemPrice = displPrice(itemPrice, Entry[i].Tax);
				//
				if(Mode==0){
					if((foundDesc1 || foundDesc2 || foundProdId || foundManufac || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor Description
				if(Mode==1){
					if((foundDesc1 || foundDesc2 || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor ProdId
				if(Mode==2){
					if((foundProdId || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				// SearchFor Manufac
				if(Mode==3){
					if((foundManufac || Term=="null" || Term=="")&&chkMaxprice(itemPrice,mySearchEngine.maxPrice)&&matchCategory){
						counter++;
						foundItems[foundItems.length] = Entry[i];
						};
					};
				};
			// found elements: foundItems.length
			for(var i=0; i<foundItems.length;i++){
				result += foundItems[i].Print();
				};
			result += "</form>";
			if(counter>0){
				mySearchEngine.init="false";
				return result;
				}
			else{
				if(mySearchEngine.init=="false")	return "<TR><TD colspan=\"2\" class=\"PROVIEWBODY\" nowrap>Leider wurde kein entsprechendes Produkt gefunden. Bitte versuchen Sie es erneut...</TD></TR>"
				else return("");
				};
			};
		if(mySearchEngine.init=="false") return "<TR><TD colspan=\"2\" class=\"PROVIEWBODY\" nowrap>Sie haben keine Suchkriterien angegeben. Bitte geben Sie Ihr Suchwort ein!</TD></TR>"
		else return("");
		};
// ** 11112
	function chkMaxprice(aPrice,aMaxPrice){
		aMaxPrice = replace(aMaxPrice.toString(),",",".");
		aPrice = calculateCurrencyAmount(aPrice, objPriCurrency);
		if(parseFloat(aMaxPrice)>0){
			if(parseFloat(aPrice)<=parseFloat(aMaxPrice)) return(true)
			else return(false);
			}
		else return(true);
		};
// ** 1111b
	function displPrice(aPrice,aTaxindex){
		var taxamount = taxarea[xmlConfig.taxarea][parseInt(aTaxindex) + 1];
		if(boolDisplTaxIncl){
			if(boolPriceTaxIncl) return(aPrice)
			else return(aPrice * ( 1 + taxamount/100 ) );
			}
		else{
			if(boolPriceTaxIncl) return(aPrice * ( 1 - taxamount/( 100 + taxamount ) ) )
			else return(aPrice);
			};
		};
// ** 1113
	function callpage(address, defValues, NavIndex){
		xmlConfig.getFirstItem("QueryStringData").putValue(defValues);
		xmlConfig.navIndex = NavIndex.toString();
		safeData();
		location.href = address;
		};
// ** 1114
	function newSearch(){
	var queryString = ""; var site = "";
	var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
		xmlSearchEngine.init='false';
		safeData();
		queryString += "mode=" + xmlSearchEngine.mode
			+ "&term=" + escape(xmlSearchEngine.term)
			+ "&maxPrice=" + escape(xmlSearchEngine.maxPrice)
			+ "&categoryId=" + escape(xmlSearchEngine.categoryIndex);
		if(location.href.indexOf("?")==-1) location.href = "search.htm?" + queryString
		else location.href = location.href.substring(0, location.href.indexOf("?")) + "?" + queryString;
		};
// ** 1115
	function searchOnEnter(){
		if(window.event.keyCode==13){
			xmlConfig.getFirstItem('SearchEngine').maxPrice=valNumber(document.SearchEngine.Maxprice.value,'0','');
			xmlConfig.getFirstItem('SearchEngine').term=document.SearchEngine.Term.value;
			newSearch();
			};
		};

