<!--


//function to fix IE CSS position:fixed bug

function writeJS(){
var str='';
str+='<!--[if gte IE 5.5]>';
str+='<![if lt IE 7]>';
str+='<style type="text\/css">';
str+='div#footer {';
str+='  \/* IE5.5+\/Win - this is more specific than the IE 5.0 version *\/';
str+='  right: auto; bottom: auto;';
str+='  top: expression( ( 0 - footer.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + \'px\' );';
str+='}';
str+='<\/style>';
str+='<![endif]>';
str+='<![endif]-->';
document.write(str);
}
writeJS();

//******************* POPUP WINDOW *************************
// JS to Popup a new window

var newwindow = '';

function displayWindow(url, name, width, height, resize) {
        var newwindow = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=' + resize + ',scrollbars=auto,menubar=0,status=1' );
}


//********************************
// Email form functions
//

function clearmail(){
if (document.mail.mail_input.value == "email@adres")
	document.mail.mail_input.value = "";
}

function clearpass(){
if (document.login.password.value == "password")
	document.login.password.value = "";
}
function clearuser(){
if (document.login.username.value == "username")
	document.login.username.value = "";
}

  function MailAction(SubUrl)
  {
    document.mail.action = SubUrl;
  }

//******************* CHECK FORM *************************
// JS to check if all form fields are filled (tom)




function setColor(el,bg)
{
if (document.getElementById)
document.getElementById(el).style.backgroundColor=bg;
}


function checkit()
{
var fieldnr = document.forms[0].length;
var bgBad = "#DCDCDC";
var bgGood = "#FFFFFF";
missinginfo = "";

	for (i=0;i<fieldnr;i++)
	{
		box = document.forms[0].elements[i];
		
		if (!(box.id==null || box.id==""))
			{
				
				if (box.value == "") {
				missinginfo += "\n     -  " + box.id + "";
				setColor(box.id, bgBad);
		
				}
			else {
				setColor(box.id, bgGood);
 			}
				

		}
			}

				if (missinginfo != "") {
				missinginfo ="_______________________________\n" +
				"De vogende velden zijn niet correct:\n" +
				missinginfo + "\n_______________________________" +
				"\nProbeer op nieuw...";
				alert(missinginfo);
				
				return false;
}
else return true; 

}





	// Set layer on/off (blocking) 
	// Use ID number on html element
	// (Same function as above but now with css style
	//  on display: none;) 
function blockrev(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display = 'none') ? 'block' : 'none';
		document.layers[nr].display = current;
	}
	else if (document.all)
	{
		current = (document.all[nr].style.display = 'none') ? 'block' : 'none';
		document.all[nr].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display = 'none') ? 'block' : 'none';
		document.getElementById(nr).style.display = vista;
	}
}
	// Set layer on/off (blocking) 
	// Use ID number on html element
function blocking(nr)
{
	if (document.layers)
	{
		current = (document.layers[nr].display == 'none') ? 'block' : 'none';
		document.layers[nr].display = current;
	}
	else if (document.all)
	{
		current = (document.all[nr].style.display == 'block') ? 'none' : 'block';
		document.all[nr].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
		document.getElementById(nr).style.display = vista;
	}
}
// -->
