// JavaScript Document

function popup(quelle,breite,hoehe,titel,untertitel,zeilen) {
	breite = breite+32;
  	hoehe+= 60+(zeilen*14);
  	var popup = window.open("_blank","popup","dependent=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,width="+breite+",height="+hoehe);
  	popup.document.writeln("<html><head>");
 	popup.document.writeln("<title>"+titel+"</title>");
	popup.document.writeln("<link href=\"../../css/style.css\" rel=\"stylesheet\" type=\"text/css\">");
	popup.document.writeln("</head><body onload=\"focus()\">");
	popup.document.writeln("<table align=\"center\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
	popup.document.writeln("<tr><td colspan=\"3\"><img src=\"images/layout/spacer.gif\" height=\"10\"></td></tr>");
	popup.document.writeln("<tr><td><img src=\"images/layout/spacer.gif\" width=\"10\"></td>");
	popup.document.writeln("<td height=\"100%\" valign=\"middle\"><img src=\""+quelle+"\" border=\"0\" alt=\""+untertitel+"\"></td>");
	popup.document.writeln("<td><img src=\"images/layout/spacer.gif\" width=\"10\"></td></tr>");
	popup.document.writeln("<tr><td><img src=\"images/layout/spacer.gif\" height=\"26\" width=\"10\" border=\"0\"></td>");
	popup.document.writeln("<td class=\"text\"><img src=\"images/layout/spacer.gif\" height=\"5\" border=\"0\"><br>"+untertitel+"<br><img src=\"images/layout/spacer.gif\" height=\"5\"></td>");
	popup.document.writeln("<td><img src=\"images/layout/spacer.gif\" height=\"26\" width=\"10\"></td></tr></table>");
	popup.document.writeln("</body></html>");
	popup.document.close();
	popup.resizeTo(breite,hoehe);
}

function popup2(quelle,breite,hoehe,titel,untertitel,zeilen) {
	breite = breite+32;
  	hoehe+= 60+(zeilen*14);
  	var popup2 = window.open("_blank","popup2","location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no");
  	popup2.document.writeln("<html><head>");
 	popup2.document.writeln("<title>"+titel+"</title>");
	popup2.document.writeln("<link href=\"../../css/style.css\" rel=\"stylesheet\" type=\"text/css\">");
	popup2.document.writeln("</head><body onload=\"focus()\" style=\"overflow:auto\">");
	popup2.document.writeln("<table align=\"center\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">");
	popup2.document.writeln("<tr><td colspan=\"3\"><img src=\"images/layout/spacer.gif\" height=\"10\"></td></tr>");
	popup2.document.writeln("<tr><td><img src=\"images/layout/spacer.gif\" width=\"10\"></td>");
	popup2.document.writeln("<td height=\"100%\" valign=\"middle\"><img src=\""+quelle+"\" border=\"0\" alt=\""+untertitel+"\"></td>");
	popup2.document.writeln("<td><img src=\"images/layout/spacer.gif\" width=\"10\"></td></tr>");
	popup2.document.writeln("<tr><td><img src=\"images/layout/spacer.gif\" height=\"26\" width=\"10\" border=\"0\"></td>");
	popup2.document.writeln("<td class=\"text\"><img src=\"images/layout/spacer.gif\" height=\"5\" border=\"0\"><br>"+untertitel+"<br><img src=\"images/layout/spacer.gif\" height=\"5\"></td>");
	popup2.document.writeln("<td><img src=\"images/layout/spacer.gif\" height=\"26\" width=\"10\"></td></tr></table>");
	popup2.document.writeln("</body></html>");
	popup2.document.close();
}

function bestform() {
	var breite = 576+30;
	var hoehe = 480;
	var popup = window.open("./scripte/php/bestellformular/bestellformular0.php","popup2","location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,width="+breite);
	popup.document.close();
	popup.resizeTo(breite,hoehe);
}

function bestform_admin() {
	var breite = 860+30;
	var hoehe = 690;
	var popup = window.open("./scripte/php/bestellformular/admin0.php","popup2","location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,width="+breite);
	popup.document.close();
	popup.resizeTo(breite,hoehe);
}

function intform() {
	var breite = 690+30;
	var hoehe = 460;
	var popup = window.open("./scripte/javascripte/formular/formular0.php","popup2","location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,width="+breite);
	popup.document.close();
	popup.resizeTo(breite,hoehe);
}
