2 * include a script -- normaly used for testing..
8 Pman.Include = function(sp) {
10 Pman.Include.script(sp, true)
15 Pman.Include.cached = function(sp) {
16 Pman.Include.script(sp, false)
20 Pman.Include.script = function(sp,cached) {
21 var head = document.getElementsByTagName("head")[0];
24 var script = document.createElement("script");
25 script.setAttribute("src", rootURL + sp +
26 ( cached ? '' : '?ts=' + Math.random() )
28 script.setAttribute("type", "text/javascript");
29 //script.setAttribute("id", trans.scriptId);
30 head.appendChild(script);