function validateUpload2b(theform) {
	if (theform.water.value=="") {
		alert("Vul de letters op het plaatje correct in om te verzenden.");
		return false; 
	} else { 
	   return true; 
	}
}
function toggleLayer(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
    }
}
            
function toggleLayers(whichLayer, thatLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		var style3 = document.getElementById(thatLayer).style;
		style3.display = style3.display? "":"block";
	}
}

function toggleShowPic(whichpic, whichLayer) {
	if (document.getElementById) {
        // this is the way the standards work
		// pic url aanpassen
		document.getElementById('placeholder').src = whichpic.href;
		//layer visible
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		return false; 
	}
}
function toggleCoverPic(whichpic, id, whichLayer, thatLayer)  {
	// the placeholder definen
	var thePlace='placeholder' + id;
        
	if (document.getElementById) {
		// this is the way the standards work
		// pic url aanpassen
		document.getElementById(thePlace).src = whichpic; //.href;
		//layer visible
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
		var style3 = document.getElementById(thatLayer).style;
		style3.display = style3.display? "":"block";
		return false; 
	}
}
