﻿function addCSSandSCRIPTtoHEAD(passedCSS,passedSCRIPT)
{
    var theCSS = document.createElement("link");
    theCSS.rel = "stylesheet";
    theCSS.type = "text/css";
    theCSS.href = new String(passedCSS);

    var theSCRIPT = document.createElement("script");
    theSCRIPT.language = "JavaScript";
    theSCRIPT.type = "text/javascript";
    theSCRIPT.src = new String(passedSCRIPT);

    document.getElementsByTagName("head")[0].appendChild(theCSS);
    document.getElementsByTagName("head")[0].appendChild(theSCRIPT);
}