<!-- dit script activeert de drop down list box --> 
function funJumpMenu(selObj)
{ 
	if (selObj.options[selObj.selectedIndex].value != '') {
		parent.content.location.href=selObj.options[selObj.selectedIndex].value;
	}
}

function checkSearch()
{
	bRetVal = true;
	
	if (document.frmZoeken.zoekcriterium.value == "")
	{
		alert('Er moet een zoekterm worden ingevuld.');
		document.frmZoeken.zoekcriterium.focus();
		bRetVal = false;
	}
	return bRetVal
}


<!-- dit script sluit een venster -->
function funSluiten()
{
	//window.opener.focus();
	window.close();
}

<!-- dit maakt van een relatieve link een absolute link tov de aanroepende pagina -->
function dynamiclink(strRelativeLink,strHttp)
{
	// strRelativeLink wordt verwacht in formaat: /directory/file.asp of http://...
	// indien een er geswitched moet worden tussen http en https kan dit als 2e parameter meegegeven worden als bijv "https" of "http".

	// Het huidige adres uit de adresregel wordt uitgelezen

	// Als er geen 2e parameter is wordt de parameter strProtocol gevuld met de waarde uit de huidige pagina.
	// Anders krijgt strProtocol dus de waarde van de meegegeven parameter, aangevuld met een ':'.

	var strProtocol = location.protocol;
        if (strHttp  !=null) 
		strProtocol = strHttp + ':';

	// strSite is de hostnaam (incl poortnummer indien aanwezig): bijv www.loyalis.nl:80
	var strSite = location.host;
	// van het pad inhet huidige adres worden de tekens vanaf de 1e slash tot aan de volgende slash variabele strJunction gezet,
	// dit is de policy director junction zonder trailing /, formaat: /loyalis
	var strPathname = location.pathname;
	var strJunction = strPathname.substring(0,strPathname.indexOf("/",1));
	// het absolute adres wordt teruggegeven, uitgaande van de aanroepende pagina waarbij de :// weer wordt tussengevoegd.
        var strAbsoluteLink = strProtocol + "//" + strSite + strJunction + strRelativeLink;
	return strAbsoluteLink;
}

<!-- dit script opent een nieuw venster in de gewenste grootte -->
function OpenNewWindow(type, url)
{
	var vHeight
	var vName
	var vResize
	var vScroll
	var vWidth
	var vCookie

	vWidth = 640;	
	vHeight = 480;
	vName = type;
	vResize = "no";
	vScroll = "yes";

	//zet de junction voor de link
	//die is opgeslagen in een cookie i.v.m. beveiliging
	//(Policy Director)
	
//	vCookie =  readCookie('IV_JCT');
	
//	if (String(vCookie) == "undefined")
//	{
//		vCookie = "";
//	}
	
	if (url.substring(0,4)!="http")
		url = dynamiclink(url);
	

	if (type == "sitemap") {
		//default waardes zijn van toepassing!
	}
	
	if(screen.width) {var WindowLeft = ((screen.width - vWidth) / 2);} else {var WindowLeft = 10;}
	window.open("" + url + "","" + vName + "", "width=" + vWidth + ",height=" + vHeight + ",top=10,left=" + WindowLeft + ",scrollbars=" + vScroll + ",resizable=" + vResize + ",location=no");
}

<!--dit script zet een default status in de statusbalk -->

defaultStatus = "Vf/Pf 2005";
	
function msg(txt) {
	var tmpStatus;
	var URL;
	URL = document.URL;
	URLlengte = URL.length;
        SubURL = URLlengte - 4;
	Onderwerp = URL.substring(SubURL, URLlengte);	    
			
	tmpStatus = txt;
	top.status = tmpStatus;
	return true;
}

self.focus();

<!--Deze functie leest een cookie uit  -->
function readCookie(cookieName) 
    { cookie_array = document.cookie.split ("; ") 
    for (x=0; x < cookie_array.length; x++) 
    { 
        cookieParts_array = cookie_array[x].split("=") 
        if (cookieParts_array[0] == cookieName) 
            { 
            return cookieParts_array[1] 
            } 
    } 
}

function Validate(fm)
{
  if (fm.zoekcriterium.value == "") 
  { 
  alert("U dient een zoekcriterium in te vullen.")
  return false;
  }
  return true;
}

function emptyZoek()
{
	if (document.zoeken.zoekcriterium.value == "naar...")
	{
		document.zoeken.zoekcriterium.value = "";
	}
}