Hello Friend,
You can write multiple function in a single web resource. So write both function in a single webresoure and call the other function there itself.
Example:
function xyz()
{
......logic
var x=abc(); //calling abc function
}
function abc()
{
..perform logic
}
So you need to call only function xyz in onload. Here entire code need to be in one web resource.
Hope you got it n it might clear your issue.
Prudveen D If the answer helped you, remember to mark it as answer.