function getBrowser()
{
	var notsupported = "notsupported";	

	if (navigator.userAgent.indexOf("pera") != -1) return (notsupported);


	if (navigator.appName == "Netscape")
	{
		var ver = parseInt (navigator.appVersion);
		if (ver == 4) return "ns4";
		if (ver >= 5) return "ns6";
		return (notsupported);
	}

	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if (navigator.appVersion.indexOf ("MSIE 4") >= 0) return ("ie4");
		if (navigator.appVersion.indexOf ("MSIE 5") >= 0) return ("ie5");
		if (navigator.appVersion.indexOf ("MSIE 6") >= 0) return ("ie6");
		if (navigator.appVersion.indexOf ("MSIE 7") >= 0) return ("ie6");
		return (notsupported);
	}

	return (notsupported);
}

function ShowImg(strImageName, strTitle, strRootPath, strArtId) {
     ImgWindow = window.open("about:blank","Detailfenster"+strArtId,"width=350,height=350,title=Detail,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");
	 ImgWindow.focus();
	 var DocStr = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n" +
				  "<HTML>\n" +
				  "<HEAD>\n" +
    			  "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html\">\n" +
				  "<TITLE>" + strTitle + "</TITLE>\n" +
				  "</HEAD>\n" +
				  "<BODY>\n" +
				  "<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' align='center'>\n" + 
				  "<TR align='center' valign='middle'><TD align='center' valign='middle'> \n" +
				  "<IMG src='" + strRootPath + strImageName +"' border='0' align='middle' alt=''>\n" +
				  "</TD></TR>\n" +
				  "<TR><TD>&nbsp;</TD></TR>\n" +
				  "<TR><TD><DIV style=\"color: #666666; font-family: Tahoma, Arial, Helvetica, sans-serif;; font-size: 7.5pt; font-weight: normal;\">Bitte beachten Sie, dass Abbildungen lediglich symbolisch bzw. ähnlich sein können und Abweichungen möglich sind.</DIV></TD></TR>\n" +
				  "</TABLE></BODY>\n" +
				  "</HTML>"
	 ImgWindow.document.write(DocStr);
	 ImgWindow.document.close();
}
function ShowDoc(strDocName, strTitle, strRootPath, strArtId) {
     ImgWindow = window.open("about:blank","Dokumentfenster"+strArtId,"width=800,height=600,title=Document,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
	 ImgWindow.focus();
	 //ImgWindow.document.close();
	 var DocStr = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n" +
				  "<html>\n" +
				  "<head>\n" +
				  "<title>Weiterleitung auf externes Angebot</title> \n" +
				  "</head> \n" +
				  "	 <style type=\"text/css\">\n" +
				  "	        BODY {\n" +
				  "             color: Black;\n" +
				  "             background-color: #FFFFFF;\n" +
                  "             font-family:  Verdana, Arial, Helvetica, sans-serif;\n" +
				  "	            font-size: 9pt;\n" +
				  "         }\n" +
				  "         A {\n" +
				  "	            color: #483D8B;\n" +
				  "             text-decoration: none;\n" +
				  "        }\n" +
				  "        A:HOVER {\n" +
				  "            color: Maroon;\n" +
				  "            text-decoration: underline;\n" +
				  "        }\n" +
				  "		  .artkat {\n" +
				  "		  	  color: Maroon;\n" +
				  "			  font-family:  Arial, Helvetica, sans-serif;\n" +
				  "			  font-size: 12pt;\n" +
				  "			  font-weight : bold;\n" +
				  "		  }\n" +
				  "		  .normalfont {\n" +
				  "			  color: Black;\n" +
				  "			  font-family:  Verdana, Geneva, Arial, Helvetica, sans-serif;\n" +
				  "			  font-size: 9pt;	\n" +
				  "			  border: White;\n" +
				  "		  }\n" +
				  "   </style>\n" +
				  "	</head>\n" +
				  "	<body>\n" +
				  "	<table width=\"100%\" border=\"10\" cellspacing=\"5\" cellpadding=\"5\" bordercolor=\"#FFFFFF\" bgcolor=\"#FFFFFF\" style=\"border: White;\">\n" +
				  "		<tr>\n" +
				  "			<td colspan=\"2\" style=\"border: White;\">\n" +
				  "				<span class=\"artkat\">Rechtlicher Hinweis zur Weiterleitung</span>\n" +
				  "			</td>\n" +
				  "		</tr>\n" +
				  "		<tr>\n" +
				  "			<td colspan=\"2\" style=\"border: White;\">\n" +
				  "			<div class=\"normalfont\">\n" +
				  "		       	Sie sind im Begriff, die Dynabyte Internet-Seiten zu verlassen,\n" +
				  "				um das Datenblatt für\n" +
				  "				<br><br>\n" +
				  "				<b>&raquo;&nbsp;" + strTitle + "&nbsp;&laquo;</b>\n" +
				  "				<br><br>\n" +
				  "				aufzurufen. Bitte beachten Sie, dass die Seite, die Sie gerade aufrufen,\n" +
				  "		        nicht von Dynabyte Hard- und Software betrieben wird.\n" +
				  "				<br><br>\n" +
				  "		        Bevor Sie die von Ihnen gewählte Seite aufrufen, sollten Sie sich\n" +
				  "		        mit den Nutzungsbedingungen dieser Seite vertraut machen\n" +
				  "		        und diesen zustimmen.\n" +
				  "				<br><br>\n" +
				  "		        Sie erklären sich einverstanden und erkennen an, dass Dynabyte keinen\n" +
				  "		        Einfluss auf diesen Internetdienst hat und weder Haftung noch\n" +
				  "		        Verantwortung für die Verfügbarkeit der Seite, die Korrektheit der\n" +
				  "				dort befindlichen Informationen oder irgendeinen\n" +
				  "		        anderweitigen Gesichtspunkt dieses Internetdienstes übernimmt.\n" +
				  "			</div>\n" +
				  "			</td>\n" +
				  "		</tr>\n" +
				  "		<tr>\n" +
				  "			<td align=\"left\" class=\"normalfont\">[ <a href=\"" + strRootPath + strDocName + "\">Einverstanden (Weiter)</a> ]</td>\n" +
				  "			<td align=\"right\" class=\"normalfont\">[ <a href=\"javascript:window.close();\">Nicht einverstanden (Fenster schließen)</a> ]</td>\n" +
				  "		</tr>\n" +
				  "	</table>\n" +
				  "	</body>\n" +
				  "	</html>\n"				  
	 ImgWindow.document.write(DocStr);
 	 ImgWindow.document.close();
}
function ShowInfoImgFromList(ItemNo,HerstNo)
{
	var strArtNr=parent.main.preismain.document.preisliste['I' + ItemNo].value;
	strArtSource = strArtNr.substring(2,3);
	var strImageName=parent.main.preismain.document.preisliste['B' + ItemNo].value;
	var strTitle=parent.main.preismain.document.preisliste['H' + HerstNo].value + ' ' + parent.main.preismain.document.preisliste['D' + ItemNo].value;
	if (strArtSource=="M")
	{
	 	var strRootPath = "http://62.134.62.160/JPG/";
	} else if (strArtSource=="Y") {
	 	var strRootPath = "http://212.227.81.8/images/productimages/";
	} else if (strArtSource!="N") {
	 	var strRootPath = "http://www.dyna-byte.de/images/artikel/" + strArtSource + "/";
	} else {
	 	var strRootPath = "http://www.dyna-byte.de/images/artikel/" + strArtSource + "/";
		strImageName="keinbild.gif";
	}
	ShowImg(strImageName, strTitle, strRootPath, ItemNo);
}
function ShowInfoDocFromList(ItemNo,HerstNo)
{
	var strArtNr=parent.main.preismain.document.preisliste['I' + ItemNo].value;
	strPDFSource = strArtNr.substring(1,2);
	var strDocName=parent.main.preismain.document.preisliste['A' + ItemNo].value;
	var strTitle=parent.main.preismain.document.preisliste['H' + HerstNo].value + ' ' + parent.main.preismain.document.preisliste['D' + ItemNo].value;
	if (strPDFSource=="M")
	{
	 	var strRootPath = "http://62.134.62.160/PDF/";
		ShowDoc(strDocName, strTitle, strRootPath, ItemNo);
	} else if (strPDFSource=="N") {
	 	var strRootPath = "http://www.dyna-byte.de/pdf/artikel/" + strPDFSource + "/";
		strDocName="keinpdf.pdf";
		ShowDoc(strDocName, strTitle, strRootPath, ItemNo);
	} else if (strPDFSource=="C") {
	 	var strRootPath = "http://www.dyna-byte.de/pdf/artikel/" + strPDFSource + "/";
		ShowDoc(strDocName, strTitle, strRootPath, ItemNo);
	 	// var strRootPath = "http://www.dyna-byte.de/php/productinfo.php?productID=";
        // var ImgWindow = window.open(strRootPath + strDocName,"Dokumentfenster"+ItemNo,"width=550,height=450,title=Detaildatenblatt,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
	    // ImgWindow.focus();		
	} else if (strPDFSource=="Y") {
	 	var strRootPath = "http://content.actebis.com/cdata/product.cfm?SPRAS=de&VKORG=1010&SCI=277626849783953&MATNR=";
		ShowDoc(strDocName, strTitle, strRootPath, ItemNo);
	} else {
	 	var strRootPath = "http://www.dyna-byte.de/pdf/artikel/" + strPDFSource + "/";
		ShowDoc(strDocName, strTitle, strRootPath, ItemNo);
	}
}