function confirm_case_delete()
{ 
var argv = confirm_case_delete.arguments;
var argc = argv.length;
input_box=confirm("Are you sure that you wish to delete this case, once this is done you cannot undo this operation");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DELETECASE&ID=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("This case will not be deleted");
		
	}
}


function confirm_client_delete()
{ 
var argv = confirm_client_delete.arguments;
var argc = argv.length;
input_box=confirm("Are you sure that you wish to delete this client/member, once this is done you cannot undo this operation");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DELETECLIENT&ID=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("This client will not be deleted");
		
	}
}

function confirm_page_delete()
{ 
var argv = confirm_page_delete.arguments;
var argc = argv.length;
input_box=confirm("Deleting this page will remove the page from the navigation and the content will be lost \n are you sure you wish to do this?");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DELETEPAGE&ID=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("This page has not been deleted");
		
	}
}

function confirm_form_delete()
{ 
var argv = confirm_form_delete.arguments;
var argc = argv.length;
input_box=confirm("Are you sure that you want to delete this form data, once this has been done you cannot reverse the effects?");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DELETEFORMDAT&ID=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("No data has been removed");
		
	}
}


function confirm_template_delete()
{ 
var argv = confirm_template_delete.arguments;
var argc = argv.length;
input_box=confirm("You cannot delete this template if the template is in use, also once this template is deleted you cannot undo the action.");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DELETETEMPLATE&ID=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("Your template has not been deleted");
		
	}
}


function restoreBackup()
{ 
var argv = restoreBackup.arguments;
var argc = argv.length;
input_box=confirm("Once this backup is restored all current data will be reverted to what is included in this backup file \nyou cannot undo this operation once its completed!");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DB_RESTORE&DB=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("Your backup was not restored");
		window.location = "dbbackup.asp";
		
	}
}


function deleteBackup()
{ 
var argv = deleteBackup.arguments;
var argc = argv.length;
input_box=confirm("Are you sure you want to delete this restore point!");
if (input_box==true)
	{	// Output when OK is clicked
		//alert ("You clicked OK"); 
		//alert("Case ID = " + argv[0]);
		window.location = "dbfunction.asp?FUNC=DB_DELETE&DB=" + argv[0];
	}
else
	{	// Output when Cancel is clicked
		alert ("Your backup was not deleted");
		window.location = "dbbackup.asp";
		
	}
}