function showHide(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHide(this,\'hide\');">Annuleer</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHide(this,\'show\');">Bewerk</a>';
    }
}

function showHideSubscriptions(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideSubscriptions(this,\'hide\');">Inklappen</a>';
		return nd();
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideSubscriptions(this,\'show\');">Bekijk alle aanmeldingen </a>';
    }
}

function showHideExtraOptions(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideExtraOptions(this,\'hide\');">Inklappen</a>';
		return nd();
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideExtraOptions(this,\'show\');">Extra optie\'s </a>';
    }
}

function showHideCategory(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideCategory(this,\'hide\');">Inklappen</a>';
		return nd();
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideCategory(this,\'show\');">Maak nieuwe Categorie&euml;n aan</a>';
    }
}

function showHideSupplier(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideSupplier(this,\'hide\');">Inklappen</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideSupplier(this,\'show\');">Maak nieuwe leverancier aan</a>';
    }
}

function showHideItems(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideItems(this,\'hide\');">Bekijk</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#" onclick="showHideItems(this,\'show\');">Toevoegen</a>';
    }
}

function showHideDetails(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideDetails(this,\'hide\');">Inklappen</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideDetails(this,\'show\');">Lees meer</a>';
    }
}

function showHideEmailbody(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideEmailbody(this,\'hide\');">Inklappen</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideEmailbody(this,\'show\');">Bekijk verstuurde email</a>';
    }
}

function showHideDetails_en(_myObj,_action) {
    var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
    if (_action == 'show') {
        _myTableObj.style.display = 'block';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideDetails_en(this,\'hide\');">Less</a>';
    }
    if (_action == 'hide') {
        _myTableObj.style.display = 'none';
        _myObj.parentNode.innerHTML = '<a href="#nogo" onclick="showHideDetails_en(this,\'show\');">Read more</a>';
    }
}

function swapcolorImage1(){
	var image = document.getElementById('colorToSwap1');
	var dropd = document.getElementById('cc1');
	image.src = dropd.value;
	}
function swapcolorImage2(){
	var image = document.getElementById('colorToSwap2');
	var dropd = document.getElementById('cc2');
	image.src = dropd.value;
	}
function swapcolorImage3(){
	var image = document.getElementById('colorToSwap3');
	var dropd = document.getElementById('cc3');
	image.src = dropd.value;
	}
function swapcolorImage4(){
	var image = document.getElementById('colorToSwap4');
	var dropd = document.getElementById('cc4');
	image.src = dropd.value;
	}
function swapcolorImage5(){
	var image = document.getElementById('colorToSwap5');
	var dropd = document.getElementById('cc5');
	image.src = dropd.value;
	}	
