	var timerid     = null;
	var matchString = "";
	var mseconds    = 1000;	// Length of time before search string is reset

	function shiftHighlight(keyCode,targ) {
		keyVal      = String.fromCharCode(keyCode); // Convert ASCII Code to a string
		matchString = matchString + keyVal; // Add to previously typed characters

		elementCnt  = targ.length - 1;	// Calculate length of array -1

		for (i = elementCnt; i > 0; i--) {
			selectText = targ.options[i].text.toLowerCase(); // convert text in SELECT to lower case
			if (selectText.substr(0,matchString.length) == 	matchString.toLowerCase()) {
				targ.options[i].selected = true; // Make the relevant OPTION selected
			}
		}

		clearTimeout(timerid); // Clear the timeout
		timerid = setTimeout('matchString = ""',mseconds); // Set a new timeout to reset the key press string
		
		return false; // to prevent IE from doing its own highlight switching
	}

	function dialog_yes_no($title, $url) {
		if (confirm($title))
			document.location.href=$url;
	}

	//functie tbv simulatie checkbox POST als hidden field
	//op deze manier wordt een checkbox ook ge-POST als ie unchecked is.
	//Dan kun je dus het verschil zien tussen niet gepost/checked/unchecked
	function chk_toggle_hidden(formname, fieldname, checked)	{
		if(checked==true) {
			newval=1
		} else {
			newval=0
		}
		document.forms(formname).elements(fieldname).value=newval;
	}
