Codice PHP:
<script type="javascript"> 
function chiudiMese() 


if (confirm('Sei sicuro di voler   
chiudere il mese ".htmlentities(<?php echo $mese ?>."/".<?php echo $anno ?>)."   
(".htmlentities(getTipoOrario(<?php echo $tipo ?>)).")   
per ".htmlentities(<?php echo $rsUtenti['Nominativo']?>)."?'))   
new RSPA.Execute('Orari.chiudiMese()',{  
debug:false, parameters: new Array  
('".<?php echo $rsUtenti['id']?>."','".<?php echo $tipo ?>."', '".<?php echo $mese ?>."',   
'".<?php echo $anno ?>."', '".<?php echo $nuovo_resto ?>."'),   
controller: 'rspa/framework/Controller.php'}); 


</script> 
<?PHP  
$output 
.= "<input type=\"button\" value=\"Chiudi il mese   
"
.htmlentities($mese."/".$anno)."\"   
onclick=\"confermaMese();\">"
;  
?>