function extraKosten(detailId, selectedId){
	spans = document.getElementsByTagName('span');
	matchstr = 'mouw_'+detailId+'_extra_';
	for(i=0;i<spans.length;i++)
	{
		if(spans[i].id.substr(0, matchstr.length) ==  matchstr)
		{
			if(spans[i].id == matchstr+selectedId)
			{
				spans[i].style.display ='';
			}
			else
			{
				spans[i].style.display ='none';
			}
		}
		
	}
	checkVoorraad();
}


function toggleDiv(id,flagit){
	if(flagit=="1"){
		if(document.layers) document.layers[''+id+''].visibility = "show"
		else if(document.all) document.all[''+id+''].style.visibility = "visible"
		else if(document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
	}
	else {
		if(flagit=="0"){
			if(document.layers) document.layers[''+id+''].visibility = "hide"
			else if(document.all) document.all[''+id+''].style.visibility = "hidden"
			else if(document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
		}
	}
}



function changeImage(){
	var image = document.getElementById("imageToChange");
	var dropd = document.getElementById("kiesUwMaat");
	image.src = dropd.value;	
}



var photo_id = 1; 

function load_photo(url, nr) {
	document.getElementById('photo').src = url;
	photo_id = nr; 
}
function url_photo(url){
	document.getElementById('photo2').href = url;
}

function load_large_photo(url) {
	document.getElementById('photo').src = url;
	document.getElementById('photo2').href = url;
}

function set_pid(nr){
	photo_id = nr;
}

function large_photo(sid) {
	imgwin = window.open ('big.html?sid='+sid+'&pid='+photo_id, 'imgwin', 'width=660,height=705');
	imgwin.focus ();
}
