function onload (){
	var velden = new Array("actief");
	for (var x = 0; x < 1; x++)
   {
		var tussenvoegsel_input=document.getElementById(velden[x]);
	}
}
function buttonFocus (input) {
	input.className = 'selected';
}
function buttonBlur (input, id, page) {
	input.className = 'unselected';
	var value = input.value;
	var name = input.name;
	var link = "actie/acties.php?actie=changeValue&value="+value+"&id="+id+"&name="+name+"&pagina="+page;
	window.location=link;
}
function buttonChange (input) {
	input.style.width = (input.value.length > 1 ? (input.value.length * 7) : 40) + 'px';
}
function makeSelect(input) {
	var selectField=document.getElementById('betalingsmethode');
	selectField.style.visibility = 'visible';
	input.style.visibility = 'hidden';
}
function selectBoxBlur (obj) {
	obj.style.width = '190px';
	obj.parentNode.className = 'selectBoxCon';
	this.blur();
}
function selectBoxFocus (obj) {
	obj.style.width = '175px';
	obj.parentNode.className = 'selectBoxCon enabled';
}
function selectBox2Blur (obj) {
	obj.style.width = '55px';
	obj.parentNode.className = 'selectBoxCon2';
	this.blur();
}
function selectBox2Focus (obj) {
	obj.style.width = '55px';
	obj.parentNode.className = 'selectBoxCon2 enabled';
}
function makeActieAantal(id){
	var link = "/admin.php?tab=3&actieaantal="+id;
	window.location=link;
}
function selectSubGroep(hoofdgroep){
	if(hoofdgroep.value != ''){
		var link = "/admin.php?tab=3&hoofdgroep="+hoofdgroep.value;
	}else{
		var link = "/admin.php?tab=3";
	}
	window.location=link;
}
function selectSubGroepVb(hoofdgroep,proid){
	if(hoofdgroep.value != ''){
		var link = "/admin.php?tab=4&selectproduct="+proid+"&hoofdgroep="+hoofdgroep.value;
	}else{
		var link = "/admin.php?tab=4&selectproduct="+proid;
	}
	window.location=link;
}
function selectSubGroep2(hoofdgroep){
	if(hoofdgroep.value != ''){
		var link = "/admin.php?tab=3&voegtoe=true&hoofdgroep2="+hoofdgroep.value;
	}else{
		var link = "/admin.php?tab=3&voegtoe=true";
	}
	window.location=link;
}
function selectSubGroep3(hoofdgroep, id){
	if(hoofdgroep.value != ''){
		var link = "/edit_product.php?id="+id+"&hoofdgroep2="+hoofdgroep.value;
	}else{
		var link = "/edit_product.php?id="+id;
	}
	window.location=link;
}

function showHiddenNewSubTitle(subtitel){
	var hiddenField=document.getElementById('nieuwesubtitel2');
	if(subtitel.value != ''){
		hiddenField.style.visibility = 'hidden';
	}else{
		hiddenField.style.visibility = 'visible';
	}
}

function hiddenDezeDiv(div){
	var dezediv = document.getElementById(div);
	dezediv.style.visibility = "hidden";
	dezediv.style.display = "none";
}
