function alertPhp($texto){ echo "<script type='text/javascript'>alert('".$texto."');</script>"; }