include script

function inc(filename)
{
    var body = document.getElementsByTagName('HEAD').item(0);
    script = document.createElement('script');
    script.src = filename;
    script.type = 'text/javascript';
    body.appendChild(script);
}