$rUnique=ShowQueryResultScalar("select rUnique from Responses where rOK=0 LIMIT 1");
$_SESSION["rUnique"]=$rUnique;
$CaseId=ShowQueryResultScalar("select CaseID from Responses where rUnique=`$rUnique`");
if ($CaseId=="") die( "<h2>No cases have fail edits<h2>");
$_SESSION["CaseId"]=$CaseId;
$_SESSION["Instance"]=ShowQueryResultScalar("select rInstance from Responses where rUnique=`$rUnique`");
$stat=1;
SetForm(EditResolution0); 
