global $crlf; 
echo ~$crlf~;
echo ~<script language=javascript>~;
echo ~$crlf~;

echo ~function Xsel(id)~;
echo ~{window.document.content.ExpenseSelect.value=id; DoPostBack(0,0);}~;
echo ~$crlf~;
echo ~function Csel() {~;
echo ~  var sval = document.content.elements[1].value;~;
echo ~  window.parent.SetCase(sval);~;
echo ~  return false;~;
echo ~}~;
echo ~$crlf~;
echo ~function ReLoadPage(itm) {~;
//echo ~alert(`In ReloadPage itm=`+itm);~;
echo ~  url=curl+`&orderby=`+itm;~;
//echo ~alert(`In ReloadPage url=`+url);~;
echo ~  window.location.href=url;~;
echo ~}~;
echo ~$crlf~;
echo ~</script>~;
echo ~$crlf~;
