<script>
function Fun()
{
  alert("abcd");
}var a = Fun;
var b=a.toString().match(/\b(\w+)\(\)/g)
alert(b[0].replace(/\(\)/,''))
</script>