/**
 * @author Administrator
 */
function zoompic (picname, picwidth, picheight, lang) {
  if (lang == "de") {
    print_str = "drucken";
    close_str = "schliessen";
  } else if (lang == "en") {
    print_str = "print";
    close_str = "close";
  } else if (lang == "fr") {
    print_str = "imprimer";
    close_str = "fermer";
  }
  picheight = picheight + 60;
  picwidth = picwidth + 10;
  zoom = window.open('','zoom','width=' + picwidth + ' height=' + picheight + ', resizable, scrollbars=yes, location=no, menubar=no, toolbar=0');
  zoom.document.write('<html><head><title>' + document.title + '</title><link rel="stylesheet" href="css/duroplast.css" type="text/css"></head><body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" onload="if(' + picheight + ' > ' + screen.height + ') window.resizeTo(' + (picwidth + 40) + ', ' + (screen.height - 50) + '); else window.resizeTo(' + (picwidth + 40) + ', ' + (picheight + 80) + '); this.focus();">');
  zoom.document.write('<table width="100%" cellpadding="5" cellspacing="0" border="0"><tr><td align="center">');
  zoom.document.write('<table cellpadding="0" cellspacing="0" border="0"><tr><td align="center" nowrap class="backmain">');
  zoom.document.write('<img src="' + picname + '"><br><br>');
  zoom.document.write('<a href="javascript:window.close();" class="printinc">' + close_str + '</a>&nbsp;&nbsp;&nbsp;<a href="javascript:window.print();" class="printinc">' + print_str + '</span></a>');
  zoom.document.write('</td></tr></table></td></tr></table>');
  zoom.document.write('</body></html>');
  zoom.document.close();
}

