include ~CS_functions.php~;
echo `<script language=javascript>`;
echo `function BackUp()`;
echo `{`;
echo `//  alert(~in BackUp~);
`;
$bfrm=`TEFAPrecHist`;
$fmt=ShowQueryResultScalar(~select fFormat from Forms where fID=`$bfrm`~);

echo ~  window.parent.SetInstanceCaseForm(1,~.$CaseId.~,`$bfrm`,`$fmt`);~;

//echo ~window.parent.SetForm(`$bfrm`,`$fmt`);~;
echo `}`;
echo `</script>`;

