var faux = null;
var pic = new Image(); 
function copyCat(pic,br,lg) 
{
faux = window.open('','newWin','dependent,resizable,top=20,left=20,width=550,height=380');
var fd = faux.document;
faux.resizeTo(br,lg);
fd.open();
fd.write('<html><head><title>Pitz-Schweitzer</title></head>');
fd.write('<body bgcolor="white" onLoad="window.focus()">');
fd.write('<p><a href="javascript:window.print()">Imprimer - Drucken</a></p>');
fd.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" height="80%">');
fd.write('<tr><td align="center" valign="middle"><img src="' + "../pictures/" + pic + '"></td></tr>');
fd.write('</table>');
fd.write('</body></html>');
fd.close();
}

function openHTML(source,width,height)
{	var win;
	var str;
	str  = ""; 
	str += "resizable=yes,scrollbars=yes,location=no,titlebar=no,"; 

	str += "width=" + width + ","; 
	str += "height=" + height; 
 		
	if ( window.screen) { 
		var ah = screen.availHeight - 30; 
		var aw = screen.availWidth - 10; 
 
		var xc = ( aw - width ) / 2; 
		var yc = ( ah - height ) / 2; 
 
		str += ",left=" + xc + ",screenX=" + xc; 
		str += ",top=" + yc + ",screenY=" + yc; 
	} 
	win=window.open(source,'MK',str);
	win.focus();
}
