
function linkit(url) {
    Neufenster = window.open(url, "Spieth", "resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=300,height=200");
}

function openDownload( lang, title,
	down1,down1z, down2,down2z, down3,down3z, down4,down4z,
	down5,down5z, down6,down6z, down7,down7z, down8,down8z
	)
{
    Neufenster2 = window.open("../spiethlib/empty.htm", "downloadfenster", "resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=600,height=370");
   
	if (lang == "de")
	{
	titel 		= "Dateidownload";
	teil  		= "Teil: ";
	datei 	 	= "Datei";
	zusatzdatei = "Zusatzdatei";
	download	= "Anzeigen";
	downloadz	= "Download ZIP";
	email		= "Download per e-mail";
	text1		= "Um Dateien herunterzuladen klicken Sie bitte mit der rechten Maustaste auf 'download' und wählen Sie 'Ziel speichern unter'.";
	text2		= "";
	error		= "keine downloads verfügbar!";
	}
	
	if (lang == "en")
	{
	titel 		= "File-Download";
	teil  		= "Part: ";
	datei 	 	= "File";
	zusatzdatei = "Additional file";
	download	= "Display";
	downloadz	= "Download ZIP";
	email		= "Download via e-mail";
	text1		= "To download files please click on 'download' with the right mousebutton and choose 'save target as'.";
	text2		= "";
	error		= "no downloads available!"; 	
	}	
	
	
	
	
	html="<html><head><title>" + title + "</title>";
	html = html + "<style type=\"text/css\">\n";
    html = html + "<!" + "--\n";
    html = html + "td ";
    html = html + "{ font-size:10px\; font-family:Arial,Helvetica,sans-serif\; }\n";
    html = html + " //--" + ">\n";
    html = html + "</style>"
	html = html + "</head>";
	html = html + "<body link=\"#00699B\" alink=\"#007BB7\" vlink=\"#00699B\">";
	html = html + "<font size=\"2\" face=\"Arial, Helvetica, sans-serif\">";
    html = html + "<script language=\"JavaScript\" type=\"text/JavaScript\">";
	html = html + "<!";
	html = html + "-- \n function linkit(url) { \n";
	html = html + "	Neufenster = window.open(url, \"Spieth\", \"resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=300,height=200\");}\n";
    html = html + " //--" + ">\n";
	html = html + "</script>";
    html = html + " ";
	html = html + "<h4>" + titel + "</h4>";
	html = html +  "<h4>" + teil + title + "</h4>";
	html = html + "<p>" + text1 + "</p>";
	html = html + "<p>" + text2 + "</p>";
	html = html + "<table border=1 borderColor=#000000 cellSpacing=0 cellPadding=3>";
	
	if (down1 != "") {
	html = html + "<tr><td>DXF (2D) "+datei+"</td>";
	html = html + "<td><a href=\""+down1z+"\">"+downloadz+"</a></td>";
	html = html + "</tr>";
	}		
	
	if (down2 != "") {
    html = html + "<tr><td>SAT (3D) "+datei+"</td>";
	html = html + "<td><a href=\""+down2z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}
	
	if (down3 != "") {	
    html = html + "<tr><td>STEP (3D) "+datei+"</td>";
	html = html + "<td><a href=\""+down3z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}
	
	if (down4 != "") {	
    html = html + "<tr><td>IGES (3D) "+datei+"</td>";
	html = html + "<td><a href=\""+down4z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}
	
	if (down5 != "") {	
    html = html + "<tr><td>"+zusatzdatei + " 1</td>";
	html = html + "<td><a href=\""+down5z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}
	
	if (down6 != "") {	
    html = html + "<tr><td>"+zusatzdatei + " 2</td>";
	html = html + "<td><a href=\""+down6z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}
	
	if (down7 != "") {	
    html = html + "<tr><td>"+zusatzdatei + " 3</td>";
	html = html + "<td><a href=\""+down7z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";
	}

	if (down8 != "") {
    html = html + "<tr><td>"+zusatzdatei + " 4</td>";
	html = html + "<td><a href=\""+down8z+"\">"+downloadz+"</a><br></td>";
	html = html + "</tr>";								
	}
	
    if (down1 == "" && down2 == "" && down3 == "" && down4 == "" && down5 == "" && down6 == "" && down7 == "" && down8 == "")
	{
	html = html + "<tr><td>" + error + "</td></tr>";
	}
	
	
    with ( Neufenster2.document )
	{
		open();
	    writeln(html);
		writeln("</table><br> </font></body></html>");
		close();
	    
	}
}

function openDownload1( lang, title, down1, down1z)
{
    Neufenster2 = window.open("../spiethlib/empty.htm", "downloadfenster", "resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=600,height=370");
   
	if (lang == "de")
	{
	titel 		= "Dateidownload";
	filetxt  	= "Datei: ";
	datei 	 	= "Datei";
	zusatzdatei = "Zusatzdatei";
	download	= "Anzeigen";
	downloadz	= "Download ZIP";
	email		= "Download per e-mail";
	text1		= "Um Dateien herunterzuladen klicken Sie bitte mit der rechten Maustaste auf 'download' und wählen Sie 'Ziel speichern unter'.";
	text2		= "";
	error		= "keine downloads verfügbar!";
	}
	
	if (lang == "en")
	{
	titel 		= "File-Download";
	filetxt  	= "File: ";
	datei 	 	= "File";
	zusatzdatei = "Additional file";
	download	= "Display";
	downloadz	= "Download ZIP";
	email		= "Download via e-mail";
	text1		= "To download files please click on 'download' with the right mousebutton and choose 'save target as'.";
	text2		= "";
	error		= "no downloads available!"; 	
	}	
	
	html="<html><head><title>" + title + "</title>";
	html = html + "<style type=\"text/css\">\n";
    html = html + "<!" + "--\n";
    html = html + "td ";
    html = html + "{ font-size:10px\; font-family:Arial,Helvetica,sans-serif\; }\n";
    html = html + " //--" + ">\n";
    html = html + "</style>"
	html = html + "</head>";
	html = html + "<body link=\"#00699B\" alink=\"#007BB7\" vlink=\"#00699B\">";
	html = html + "<font size=\"2\" face=\"Arial, Helvetica, sans-serif\">";
    html = html + "<script language=\"JavaScript\" type=\"text/JavaScript\">";
	html = html + "<!";
	html = html + "-- \n function linkit(url) { \n";
	html = html + "	Neufenster = window.open(url, \"Spieth\", \"resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=300,height=200\");}\n";
    html = html + " //--" + ">\n";
	html = html + "</script>";
    html = html + " ";
	html = html + "<h4>" + titel + "</h4>";
	html = html +  "<h4>" + filetxt + title + "</h4>";
	html = html + "<p>" + text1 + "</p>";
	html = html + "<p>" + text2 + "</p>";
	html = html + "<table border=1 borderColor=#000000 cellSpacing=0 cellPadding=3>";
	
	if (down1 != "") {
	html = html + "<tr>";
	html = html + "<td><a href=\""+down1+"\">"+download+"</a></td>";
	html = html + "<td><a href=\""+down1z+"\">"+downloadz+"</a></td>";
	html = html + "</tr>";
	}		
	
    with ( Neufenster2.document )
	{
		open();
	    writeln(html);
		writeln("</table><br> </font></body></html>");
		close();
	    
	}
}

function openPaperMail( lang, node, categ, title )
{
    Neufenster2 = window.open("../spiethlib/empty.htm", "downloadfenster", "resizable=yes,location=no,menubar=no,scrollbars=no,status=yes,hotkeys=no,width=600,height=370");
	
	if (lang == "de")
	{
	titel 		= "Nicht verfügbar";
	text1		= "Online Bestellung von Dokumenten ist auf CD-Rom nicht verfügbar.";
	}
	
	if (lang == "en")
	{
	titel 		= "Not available";
	text1		= "Online order of documents not available on CD-Rom.";
	}	

	html="<html><head>";
	html = html + "<style type=\"text/css\">\n";
	html = html + "<!" + "--\n";
	html = html + "td { font-size:10px\; font-family:Arial,Helvetica,sans-serif\; }\n";
	html = html + " //--" + ">\n";
	html = html + "</style>";
	html = html + "<title>" + title + "</title>";
	html = html + "</head>";
	html = html + "<body link=\"#00699B\" alink=\"#007BB7\" vlink=\"#00699B\">";
	html = html + "<font size=\"2\" face=\"Arial, Helvetica, sans-serif\">";
	html = html + "<h2>"+titel+"</h2></font>";
	html = html + "<font size=\"2\" face=\"Arial, Helvetica, sans-serif\">";
	html = html + text1 + "<p>";
	html = html + "</body></html>";
	
	with ( Neufenster2.document )
	{
		open();
	    writeln(html);
		close();
	}
}



