function doSearch() {
	var theForm = document.zoekformulier;
	if(validateSearch(theForm)) {
		theForm.submit();
	}
}
function validateSearch(theForm) {
	if(theForm.q.value.length==0) {
		alert("Gelieve een zoekterm in te geven.");
		return false;
	}
	return true;
}
function printOrder(id, u, language, admin) {
	theWidth = 600;
	theHeight = 600;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open("/bestelling_print.dhtml?id="+id+",u="+u+",language="+language+",admin="+admin,"PrintOrder",winopts);
	smallwindow.focus();
}
function printOrderInnotech(id, u, language, admin) {
	theWidth = 600;
	theHeight = 500;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open("/bestelling_print_innotech.dhtml?id="+id+",u="+u+",language="+language+",admin="+admin,"PrintOrder",winopts);
	smallwindow.focus();
}
function doPrint(id) {
	theWidth = 650;
	theHeight = 500;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open(id+"?print=Y","PrintvriendelijkeVersie",winopts);
	smallwindow.focus();
}
function specificaties(id, language) {
	theWidth = 600;
	theHeight = 500;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open("/specificaties.dhtml?item="+id+",language="+language,"Specs",winopts);
	smallwindow.focus();
}
function zoom(img, width, height) {
	theWidth = width;
	theHeight = height;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open("/zoom.dhtml?img="+img,"Zoom",winopts);
	smallwindow.focus();
}
function zoom_extern(img) {
	theWidth = 400;
	theHeight = 350;
	theTop = Math.ceil((screen.height-theHeight*1.5)/2);
	theLeft = Math.ceil((screen.width-theWidth)/2);
	winopts = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,copyhistory=0,width="+theWidth+",height="+theHeight+",top="+theTop+",left="+theLeft;
	smallwindow=window.open("/zoom_extern.dhtml?img="+img,"Zoom",winopts);
	smallwindow.focus();
}




var slideShowSpeed = 3500
var t;
var j = 0;
function runSlideShow(){

	document.images.SlideShow.src = preLoad[j].src;

	j = j + 1
	if (j > (p-1)) j=0
		t = setTimeout('runSlideShow()', slideShowSpeed)
}
