<!--
function swapImage(theID,theImage){
	document.getElementById(theID).src = theImage;
}

var isIE = document.all?true:false;
var isNS = document.layers?true:false;

function onlyDigits(e,decReq) {
	var key = (isIE) ? window.event.keyCode : e.which;
	var obj = (isIE) ? event.srcElement : e.target;
	var isNum = (key > 47 && key < 58) ? true:false;
	var dotOK = (key==46 && decReq=='decOK' && (obj.value.indexOf(".")<0 || obj.value.length==0)) ? true:false;
	if(key < 32) return true;
	return (isNum || dotOK);
}

function openWindow() {
    /* argumenten verzamelen */
	thePage 	= (arguments[0]!=null && arguments[0]!='') ? arguments[0] : null;
	theWidth 	= (arguments[1]!=null && arguments[1]!='') ? arguments[1] : null;
	theHeight 	= (arguments[2]!=null && arguments[2]!='') ? arguments[2] : null;
	theOptions 	= (arguments[3]!=null && arguments[3]!='') ? arguments[3] : null;
	theTitle	= (arguments[4]!=null && arguments[4]!='') ? 'popupWindow'+arguments[4] : 'popupWindow'; /* Ten behoeve van meerdere pop-up instances */

	theSpecs = "";
	if(theWidth!=null) theSpecs += "width="+theWidth;
	if(theHeight!=null){
		if(theSpecs.length>0) theSpecs += ",";
		theSpecs += "height="+theHeight;
	}
	if(theOptions!=null){
		if(theSpecs.length>0) theSpecs += ",";
		theSpecs += theOptions;
	}	
		
	popupWindow = window.open(thePage,theTitle,theSpecs);
	if(!popupWindow){
		alert('Wellicht heeft u een popup-blocker geïnstalleerd! Script gestopt!');
		return false;
	}
	if (window.focus){
		popupWindow.focus();
	}else{
		return false;
	}
	return true;
}
//-->
