function RegisterEntryScript(href) {
   var scripts = document.head.getElementsByTagName("script");
   for (var i=0; i<scripts.length; i++) {
      if (scripts[i].getAttribute("href")==href) {
         return;
      }
   }
   var script = document.createElement("script");
   script.setAttribute("type","application/javascript");
   script.setAttribute("src",href);
   document.head.appendChild(script);
}


