function finishorder_old(Caption)
{
	
	//alert(Caption);
	
	if (confirm(Caption)==true)
	{
		/*var afleveradres;
		var rad=document.getElementById('Contents_radAflever1');
		if (rad.checked) 
			{ afleveradres=1 } 
		else
			{ afleveradres=2 }
		//alert(afleveradres);
		document.location='index.aspx?a=6&adres=' + afleveradres;
		*/
		
		document.location='index.aspx?a=17';
		
	}
	
}

function finishorder()
{
	//document.location='index.aspx?a=17&csid=' + csid;
	
	document.location='index.aspx?a=17';
}


function checkminimumbestelbedrag(bestellingid)
{
	
	//document.frames('frasubfunction').location='subfunctions.aspx?func=3&bestellingid=' + bestellingid + ''
	document.getElementById('frasubfunction').src='subfunctions.aspx?func=3&bestellingid=' + bestellingid //+ ''
	return false;
}

function copybestelling(bestellingid,openstaandebestelling)
{
	// ALS OPENSTAANDE BESTELLING, DAN OM BEVESTIGING VRAGEN
	if (openstaandebestelling!=0) {
		
		if (confirm(CAP_BevestigKopieWinkelwagen)==true)
		{
			//document.frames('frasubfunction').location='subfunctions.aspx?func=1&bestellingid=' + bestellingid + ''
			document.getElementById('frasubfunction').src='subfunctions.aspx?func=1&bestellingid=' + bestellingid //+ ''
			
		}
	} else {
		//document.frames('frasubfunction').location='subfunctions.aspx?func=1&bestellingid=' + bestellingid + ''
		document.getElementById('frasubfunction').src='subfunctions.aspx?func=1&bestellingid=' + bestellingid // + ''
	}
	
	
}

function Annuleer(bestelregelid)
{
	if (confirm(CAP_BevestigAnnulerenBestelling)==true)
	{		
		document.frames('frasubfunction').location='subfunctions.aspx?func=2&regelid=' + bestelregelid //+ ''
		//document.getElementById('frasubfunction').src='subfunctions.aspx?func=2&regelid=' + bestelregelid + '&csid=' + csid//+ ''
		
		//prevent submit
		return false;
	} else {
		//prevent submit
		return false;
	}
}
