function random(min, max) {
    var randomnumber=min + Math.floor(Math.random()*(max))
    return randomnumber;
}

function GetHomePageLayout() {
    var x = random(1,3);

    if(x==1)
    {
    document.getElementById('hp-text').innerHTML = "Let InfoWave make your journey into the <br /> future a pleasant one.";
    }
    if (x==2)
    {
    document.getElementById('hp-text').innerHTML = "<span><font color=\"Black\">You've done all the right things and your company <br /> has grown.  Has anyone noticed?<br /> </span></font>";
    }
    if (x==3)
    {
    document.getElementById('hp-text').innerHTML = "Competition:<br>  Are you the wave or the beach?";
    }
    if (document.getElementById('hp-nav')) 
    {
        document.getElementById('hp-nav').style.background = "url(_img/layout" + x + "/hp-nav.jpg)";
    }
    if (document.getElementById('hp-mid')) 
    {
        document.getElementById('hp-mid').style.background = "url(_img/layout" + x + "/hp-mid.jpg)";
    }
    if (document.getElementById('hp-box-red')) 
    {
        document.getElementById('hp-box-red').style.background = "url(_img/layout" + x + "/hp-box-red.jpg)";
    }
    if (document.getElementById('hp-box-green')) 
    {
        document.getElementById('hp-box-green').style.background = "url(_img/layout" + x + "/hp-box-green.jpg)";
    }
    if (document.getElementById('hp-box-blue')) 
    {
        document.getElementById('hp-box-blue').style.background = "url(_img/layout" + x + "/hp-box-blue.jpg)";
    }
}

function GetSecPageLayout() {
    var x = random(1,3);
    
    if (document.getElementById('hp-nav'))
    {
        document.getElementById('hp-nav').style.background = "url(_img/sec-layout" + x + "/sec-nav.jpg)";
    }
    if (document.getElementById('sec-mid'))
    {
        document.getElementById('sec-mid').style.background = "url(_img/sec-layout" + x + "/sec-mid.jpg)";
    }
}