You can return the value as follows
function fnTabChanges(index) {
return someValue;
}
Now to retrieve the value
önclick="var result = fnTabChanges('0');alert(result);"
// variable result has the return value , alert(result); is added to testing purpose
Hope this helps...