function disclaimerPopup(type) {
	
	if(type=='exep') {
		window.open('disclaimerpopup.php?type='+type,'Scope',
			'height=200,width=600,resizeable=yes,toolbar=no,scrollbars=no,location=no,directories=no,menubar=no,copyhistory=no');
	} else if(type=='disc') {
		window.open('disclaimerpopup.php?type='+type,'Disclaimer',
			'height=800,width=700,resizeable=yes,toolbar=no,scrollbars=yes,location=no,directories=no,menubar=no,copyhistory=no');
	}	
}

function printStuff() {
	
	window.location = "bewaren.php";
}

function nopdf() {
	var ret = confirm("Wilt u de PGS voorschriften ook uitprinten?\n\nKlik op \"OK\" voor Ja, klik op \"Annuleren\" voor Nee.");

	ret = ret*1;
	window.open('printpopup.php?voorschriften='+ret,'printen',
		'height=700,width=650,rezisable=yes,toolbar=yes,scrollbars=yes,location=no,directories=no,menubar=yes,copyhistory=no');
	
}

function viewpdf(val) {
	var value = "pdf="+val.id;

	window.open('viewpdf.php?'+value,'printen',
		'height=700,width=950,rezisable=no,toolbar=no,location=no,directories=no,menubar=yes,copyhistory=no');	
}

function properties(val) {
		var value = "pdfId="+val.id;
		window.open('properties.php?'+value,'printen',
		'height=700,width=1000,rezisable=no,toolbar=no,location=no,directories=no,menubar=yes,copyhistory=no');	
}



function printStuff1() {
/*	var ret = confirm("Wilt u de PGS voorschriften ook uitprinten?\n\nKlik op \"OK\" voor Ja, klik op \"Annuleren\" voor Nee.");

	ret = ret*1;
	*/
	/*
	window.open('printpopup.php?voorschriften='+ret,'printen',
		'height=700,width=650,rezisable=yes,toolbar=yes,scrollbars=yes,location=no,directories=no,menubar=yes,copyhistory=no');
	*/
	window.open('pdfpopup.php','printen',
		'height=700,width=950,rezisable=no,toolbar=no,location=no,directories=no,menubar=yes,copyhistory=no');	
	

}

function resetMouseOut(element) {          
	element.onmouseout = function() {
		setBGColor(element, 'D8D8D8');
	}
}

function setBG(element, color) {
	element.style.backgroundColor = '#' + color;
}


/******************************* wordt niet gebruikt, maar code is wel 1337 volgens mij 

var hoverColor = "#ADB3B7"; // set the color for when the mouse is hovering over the element
var defaultColor = ""; // set the default color of the element when nothing has happened.
var clickedColor = "#FFFFFF"; // set the color of the element when it is clicked
var hoverColorClicked = "#808080" // set the color of the element when the mouse is over and the element has already been clicked.
var defcursor = "pointer"; // set the cursor for when the mouse is hovering over the element.
 
window.onload = setRowFunctions;
function setRowFunctions() {
    rows = document.getElementsByTagName("tr");
    for (i=0; i<rows.length; i++) {
        if (rows[i].getAttribute("hover")=="true") {
            rows[i].onmouseover = function() { this.style.backgroundColor = hoverColor; } //set the onmouseover function
            rows[i].onmouseout = function() { this.style.backgroundColor = defaultColor; }  //set the onmouseout function
            rows[i].style.backgroundColor = defaultColor; //set the default background color
            rows[i].style.cursor = defcursor; // set the default cursor
            rows[i].onclick = function() { handleClick(this); } // and finally the onclick event.
        }
    }
}
 
function handleClick(element) {
    if (element.getAttribute("clicked")==null || element.getAttribute("clicked")==false) {
	    element.onmouseout = function() { this.style.backgroundColor = clickedColor; }
	    element.onmouseover = function() { this.style.backgroundColor = hoverColorClicked }
	    element.style.backgroundColor = clickedColor;
	    element.setAttribute("clicked", true);
    } else {
	    element.setAttribute("clicked", false);
	    element.onmouseover = function() { this.style.backgroundColor = hoverColor }
	    element.onmouseout = function() { this.style.backgroundColor = defaultColor; }
	    element.style.backgroundColor = defaultColor;
    }
}
**********************************************************************/
