function show_opdrachtgever(afbeelding){
	document.getElementById('opdrachtgever_logo').src='cms/upload/klanten/logo/'+afbeelding;
}
function focus_input(id, waarde){
	if(document.getElementById(id).value == waarde){
		document.getElementById(id).value = '';
		document.getElementById(id).className = 'input_active';
	}
}

function check_input(id, waarde){
	if(document.getElementById(id).value == ''){
		document.getElementById(id).value = waarde;
		document.getElementById(id).className = 'input_empty';
	}
}

function focus_textarea(){
	if(document.getElementById('contact_opmerkingen').value == 'Vraag / opmerking'){
		document.getElementById('contact_opmerkingen').value = '';
	}
	document.getElementById('contact_opmerkingen').className = 'contact_opmerkingen_active';
}

function check_textarea(){
	if(document.getElementById('contact_opmerkingen').value == ''){
		document.getElementById('contact_opmerkingen').value = 'Vraag / opmerking';
		document.getElementById('contact_opmerkingen').className = 'contact_opmerkingen_empty';
	}
}

function check_formulier(){
	if(document.getElementById('contact_opmerkingen').value != 'Vraag / opmerking'){
		document.getElementById('contact_opmerkingen').className = 'contact_opmerkingen_active';
	}
	if(document.getElementById('contact_bedrijfsnaam').value != 'Bedrijfsnaam'){
		document.getElementById('contact_bedrijfsnaam').className = 'input_active';
	}
	if(document.getElementById('contact_naam').value != 'Naam'){
		document.getElementById('contact_naam').className = 'input_active';
	}
	if(document.getElementById('contact_emailadres').value != 'E-mailadres'){
		document.getElementById('contact_emailadres').className = 'input_active';
	}
	if(document.getElementById('contact_telefoonnummer').value != 'Telefoonnummer'){
		document.getElementById('contact_telefoonnummer').className = 'input_active';
	}
	if(document.getElementById('contact_adres').value != 'Adres'){
		document.getElementById('contact_adres').className = 'input_active';
	}
	if(document.getElementById('contact_postcode').value != 'Postcode'){
		document.getElementById('contact_postcode').className = 'input_active';
	}
	if(document.getElementById('contact_plaats').value != 'Plaats'){
		document.getElementById('contact_plaats').className = 'input_active';
	}
}

function verstop_scrollbalk(){
	document.getElementById('scroll_block_opdrachtgevers').style.overflow='hidden';
}
function fullScreen(theURL) {
	nieuw_venster = window.open(theURL, '', 'fullscreen=yes, menubar=no, toolbar=no, scrollbars=no, resizable=no,left=0, top=0');
	nieuw_venster.resizeTo(screen.width,screen.height);
}

function popup_nieuwsbrief() {
	newwindow=window.open('http://www.google.nl','Google','height=400,width=550,scrollbars=yes,toolbar=no,location=no');
	if (window.focus) {
		newwindow.focus()
	}
	return false;
}


// rechtermuisknop disable
function clickIE4(){
	if (event.button==2){
		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){
			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")