<script>
function alertFunc(str1,str2,str3){
alert(str1);
alert(str2);
alert(str3);
}
function callAlert(functionName){
var func=eval(functionName);
new func(arguments[1],arguments[2],arguments[3]);
}
</script>
<button οnclick="callAlert('alertFunc','bb','cc','dd')" >aa</button>