Updated Answer:
{!REQUIRESCRIPT("/support/console/38.0/integration.js")}
{!REQUIRESCRIPT("/soap/ajax/38.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/38.0/apex.js")}
var outboundFaxActivityId = '{!Outbound_Fax__c.Activity_ID_Developer_Use__c}';
console.log(outboundFaxActivityId);
if(outboundFaxActivityId.size()> 0) {
if(typeof(srcUp) == 'function') //Checks that it is in console
{
var openSubtab = function(result){
sforce.console.openSubtab(result.id,'/{!Outbound_Fax__c.Activity_ID_Developer_Use__c}', true, 'Fax', null);
};
sforce.console.getEnclosingPrimaryTabId(openSubtab);
}
else{
window.parent.location.href=('/{!Outbound_Fax__c.Activity_ID_Developer_Use__c}')
}
}
else {
alert('There is no Activity record associated with this Fax. Please contact your System Adinistrator');
}