function josNewWindow() {
  var h = screen.height - screen.height*0.1;
  var w = screen.width;
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  josWin = window.open('', '', winprops);
  var txtstart = "<html><head>"
  var txtcss = "<link href='/com_womancalendar/womancalendar.css' rel='stylesheet' type='text/css'/></head>";
  var txtBhtml = "<body style='margin:0px;'>";
  txtBhtml += "<img style='cursor:pointer' src='/com_womancalendar/images/print.png' width='24px' height='24px' onclick='window.print();'>";
//   txtBhtml += "<img style='cursor:pointer' src='<?PHP echo CFG_BILDER;?>print.png' width='24px' height='24px' onclick='window.print();'>";
  txtBhtml += "<div class=\"josContainer\" id=\"josContainer\"  name=\"josContainer\">";
  var txtEhtml = "</div></body></html>";
  josWin.document.writeln(txtstart + txtcss + txtBhtml + document.getElementById('josContainer').innerHTML + txtEhtml);
  josWin.document.close();
}
