/*	BysMoo WCMS, Copyright (c) ByYourSite since 2008. All rights reserved.

	This source file is free software; you can redistribute it and/or
	modify it under the terms of the MOO Public License as published
	by the MOO Development Group; either version 1.1 of the License, or
	(at your option) any later version.
*/
function popUp(URL,width,height) {
	day = new Date();
	id = day.getTime();

	var winLeft = (screen.width - width) / 2;
	var winUp = (screen.height - height) / 2;

	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left='+winLeft+',top='+winUp);");
}


function open_block(id) {
	if ($(id).style.display == 'none') {
		$(id).style.display = 'block';
	}else{
		$(id).style.display = 'none';
	}
}

function toggleLayer(action) {
	
	
	if (action == 'bestaand') {
		$('exist_customer').style.display = 'block';
		$('new_customer').style.display = 'none';
		$('nieuwsbrief').style.display = 'none';
	}
	
	if (action == 'nieuw') {
		$('exist_customer').style.display = 'none';
		$('new_customer').style.display = 'block';
		$('nieuwsbrief').style.display = 'block';
	}
	
}

function betalingsFnc(div){
	$('rekeningnr_col').style.display = 'none';
	$('rekeningnr_col_bestaan').style.display = 'none';
	$('rekeningnr_col_mach').style.display = 'none';
	$('rekeningnr_col_mach_bekend').style.display = 'none';
	
	if (div == 'rekeningnr_col_mach') { $('rekeningnr_col_mach_bekend').style.display = 'block'; }
	if (div)
	{
		$(div).style.display = 'block';
	}
}
