function show_hide01(field01,field02,method){
	if(method == 'hideall'){
		document.getElementById(field01).style.display = 'none';
		document.getElementById(field02).style.display = 'none';
	} else if(method == 'open'){
		document.getElementById(field01).style.display = '';
		document.getElementById(field02).style.display = 'none';
	} else {
		document.getElementById(field01).style.display = 'none';
		document.getElementById(field02).style.display = '';
	}
}

function toggle(field01){
	if(document.getElementById(field01).style.display == 'none'){
		document.getElementById(field01).style.display = '';
	} else { 
		document.getElementById(field01).style.display = 'none';
	}
}
function toggle_div(id){
	if(document.getElementById(id).style.display == 'none'){
		document.getElementById(id).style.display = '';
	} else {
		document.getElementById(id).style.display = 'none';
	}
}
function toggle_div2(id_1,id_2,method){
	if(method == 'open'){
		document.getElementById(id_1).style.display = 'none';
		document.getElementById(id_2).style.display = '';
	} else {
		document.getElementById(id_1).style.display = '';
		document.getElementById(id_2).style.display = 'none';
	}
}
function editor_link(site_url,target){
	if(target == '_blank'){
		window.open(site_url);
	} else {
		document.location.href = site_url;
	}
}
function str_replace(zoek,vervang,string){
	var array = string.split(zoek);
	var new_string = '';
	for(i=0; i<array.length; i++){
		if(i != 0){
			new_string += vervang;
		}
		new_string += array[i];
	}
	return new_string;
}
function vervang_ajax(string){
	string = str_replace("&","[EN]",string);
	string = str_replace("'","[COMMA]",string);
	return string;
}