echo `<script language=javascript>`,chr(10),chr(13);

echo `function DelCase(cid,des)`,chr(10),chr(13);
echo `{`,chr(10),chr(13);
echo `//	alert(~DelCase with cid=~ + cid);`,chr(10),chr(13);
echo `	answer=confirm(~Do you really want to permanently delete ~+des+~?~)`, chr(10),chr(13);
echo `	if (answer==true)`,chr(10),chr(13);
echo `		{`,chr(10),chr(13);
echo `			DoPostBack(99,cid);`,chr(10),chr(13);
echo `			return false;`,chr(10),chr(13);
echo `		}`,chr(10),chr(13);
echo `}`,chr(10),chr(13);
echo `</script>`,chr(10),chr(13);

$prm=$_REQUEST[`prm`];
$act=$_REQUEST[`act`];

//echo ~act=$act prm=$prm~;

if ($act==99) delcas($prm);

function delcas($cid)
{
  ExecuteSQL(~delete from Responses where CaseId=`$cid`~);
  return true;
}

