
//  zoekveldvalidatie
function validEntry(entry) {			
	if (entry.length <2) {
		alert("Voer minimaal 2 letters in.");
		document.searchForm.terms.focus();
		return false;
	}
	return true;
}
function preSubmit() {
	formField = document.searchForm.terms.value;
	if (!validEntry(formField)) {
		return false;
	} else {
		return true;
	}
}
function start() 
{document.searchForm.terms.focus();
}

 
function emailCheck() {
  txt=document.naw.email.value;
  if (txt.indexOf("@")<2)
  {alert("controleer aub uw E-mail adres"); document.naw.email.focus();
   return false; }  
   if (txt.indexOf(".")<1)
  {alert("controleer aub uw E-mail adres"); document.naw.email.focus();
   return false; }  return true; }

function getQueryString(Val) {
	thisURLparamStr = document.location.search;
	if (thisURLparamStr.charAt(0) == "?") thisURLparamStr = thisURLparamStr.substring(1, thisURLparamStr.length);
	returnStr = "";
	if (thisURLparamStr != "") {
		divide1=(thisURLparamStr.split("&"))
		for (i=0; i < divide1.length; i++) {
			divide2 = divide1[i].split("=")
			if (unescape(divide2[0]) == Val) {
				returnStr = unescape(divide2[1]);
			}
		}
	}
	return returnStr;
}

function vullen() {
tekst = getQueryString("veld") ;
document.searchForm.terms.value = tekst ;
document.searchForm.terms.focus() ;
}

function terug() {
setTimeout('history.go(-2)',4000)
}
