function input_focus(input, copy)
{
	if(copy == true)
	{
		if(input.value != 'Zoeken..')
		{	
			input.style.color = 'black';
		}
	}
	else if(input.value == 'Zoeken..' || input.value == 'Gebruikersnaam' || input.value == 'Wachtwoord')
	{
		if(input.value == 'Wachtwoord')
		{
			var input2 = input.cloneNode(false);
			input2.type = 'password';
			input.parentNode.replaceChild(input2,input);
			
			input = input2;
		}
		
		input.value = '';
		input.style.color = 'black';
		input.select();
	}
}

function open_popup(url)
{
	venster = window.open(url, 'popupvenster', 'width=800, height=700, resizable=no, menubar=no, scrollbars=yes, status=yes, toolbar=no');
}

function preLoad(images) {
	document.preLoad = new Array();
	
	if (document.images) {
		for(i = 0; i < images.length; ++i) {
			document.preLoad[i] = new Image();
			document.preLoad[i].src = images[i];
		}
	}
}

function mouseOver(element, image) {
	if(typeof(element.src_out) == 'undefined' || element.src_out == null) {
		element.src_out = element.src;
		if(typeof(image) != 'undefined') {
			element.src = image;
		} else {
			element.src = element.src.substring(0, element.src.length - 4) + '_up' + element.src.substring(element.src.length - 4, element.src.length);
		}
	}
}

function mouseOut(element) {
	if(typeof(element.src_out) != 'undefined' && element.src_out != null) {
		element.src = element.src_out;
		element.src_out = null;
	}
}

function MM_jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}