<!--
//Copyright mpfcreative, llc 2002-2003 All Rights Reserved.
//Use of this script is prohibited except with explicit //permission from mpf creative, llc

//This script prompts the user to give them an option to back out of a cancel.

function fnConfirmCancel(location)
{
input_box=confirm("Are you sure you want to cancel? Click OK to lose changes or Cancel to keep changes and stay on this page");
if (input_box==true)

{ 
// Output when OK is clicked
document.location.href=location;
}

else
{
// Output when Cancel is clicked
return false; 
}
}


//This function prompts the user to confirm a delete action
function fnConfirmDelete(frmName)
{

input_box=confirm("Are you sure you want to delete this item? This action cannot be undone. Click OK to proceed with the delete action or Cancel to make no changes and stay on this page");

if (input_box==true)

{ 
// Output when OK is clicked
document.forms[frmName].hdnType.value="delete"
document.forms[frmName].submit();
}

else
{
// Output when Cancel is clicked
return false; 
}


}

function fnCheckBlank(frmName,element,msg)
{


if (document.forms[frmName].elements[element].value=="")
	{
	alert(msg)
	document.forms[frmName].elements[element].focus()
	return false;
	}
else 
	{
	return true;
	}
}


//-->