$oAccount = new Account();And I want to use value of $type_of_account in javascript variable. Is it possible?
$oAccount->retrieve($bean->accounts_cases_1_name);
$type_of_account = $oAcccount->type;
$script=<<EOC
<script type="text/javascript">
var bn='$bean';
alert(bn);
</script>
EOC;