function ConfirmChoice(message, redirect_location) { 
	answer = confirm(message)
	if (answer !=0) { 
		location = redirect_location 
	} 
}

function addProductLine()
{
	answer = confirm("Let op! Door een regel toe te voegen worden wijzigingen die nog niet zijn opgeslagen ongedaan gemaakt.\n Weet u zeker dat u door wilt gaan?")
	if (answer !=0) { 
		document.getElementById("semitransparantbackground").style.visibility = "visible";
		document.getElementById("addProductLineDiv").style.visibility = "visible";
	} 
	
}

function cancelAddingProducts()
{
	answer = confirm("Weet u zeker dat u wilt annuleren?")
	if (answer !=0) { 
		document.getElementById("semitransparantbackground").style.visibility = "hidden";
		document.getElementById("addProductLineDiv").style.visibility = "hidden";
	} 
	
}

function enableWatermarkOptions()
{
	document.getElementById("watermarkoptions").style.visibility = "visible";
}

function popUp(img)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(img, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=400,left = 265,top = 			137');");
}

function popUpCustom(URL, width, heigth) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+width+",height="+heigth+",left = 265,top = 137');");
}

