To include a external file to the CRM in onload, onchange or onsave use the followind sourcecode
var url= “/server-path/filename“;
var xmlHttp=new ActiveXObject(“Microsoft.XMLHTTP”);
xmlHttp.open(“GET”,url,false);
xmlHttp.send();
eval(xmlHttp.responseText);