// JavaScript Document

var AutoPrint = true; // Indien 'false' wordt de pagina niet automatisch uitgeprint

function PrintPagina(){
if (document.getElementById != null){
var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null){
var headTags = document.getElementsByTagName("head");
if (headTags.length > 30000)
html += headTags[0].innerHTML;}
html += '\n<style>body, td { font-family:verdana; font-size:12px; } a, a:link { color:#000000; } h1 { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:22px; font-weight:bold; text-align:right;	letter-spacing:1px;	color:#DADADA; height:26px; } h2 {	font-family:Verdana, Arial, Helvetica, sans-serif; font-size:13px; line-height:20px; font-weight:bold;	color:#444444; border-bottom-color:#333333;	border-bottom-style:solid; border-bottom-width:1px; }</style></HE' + 'AD>\n<BODY>\n';
var PrintKlaarElem = document.getElementById("PrintKlaar");
if (PrintKlaarElem != null){
html += PrintKlaarElem.innerHTML;}
html += '\n</BO' + 'DY>\n</HT' + 'ML>';
var printWin = window.open("","PrintPagina");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (AutoPrint)printWin.print();}}

function Start(page)
{
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no,width=270,height=250");
}
function pageOpen(page,width,height)
{
	OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=" + width + ",height=" + height + "");
}
function OpenPopup(theURL,PopupName,PopupWidth,PopupHeight,PopupFeatures)
{
var Xcoor;
var Ycoor;
var Popup;
var FeaturesTotal;
if (PopupHeight && PopupWidth)
	{
	if (window.screen.width > PopupWidth)
		Xcoor = (window.screen.width/2) - (PopupWidth/2);
	else
		Xcoor = 0;
	if (window.screen.height > PopupHeight)
		Ycoor = (window.screen.height/2) - (PopupHeight/2);
	else
		Ycoor = 0;
	if (PopupFeatures)
		FeaturesTotal = PopupFeatures + ",width=" + PopupWidth + ",height=" + PopupHeight + ",left=" + Xcoor + ",top=" + Ycoor + ",screenX=" + Xcoor + ",screenY=" + Ycoor;
	else
		FeaturesTotal = "width=" + PopupWidth + ",height=" + PopupHeight + ",left=" + Xcoor + ",top=" + Ycoor + ",screenX=" + Xcoor + ",screenY=" + Ycoor;
	Popup = window.open(theURL,PopupName,FeaturesTotal);
	Popup.focus;
	}
else
	{
	Popup = window.open(theURL,PopupName);
	Popup.focus;
	}
}
