function SwitchPic(imgname,aname)
{
        //The multiplier should be equal to the number of images you have
        var random_num = Math.floor(Math.random() * 4); 
        //Create Array To Store The Image Locations
        var imgsrc = new Array();
        var ahref = new Array();
        //Populate The Array With The Images 
        imgsrc[0] = "Images/2007-SLA-MAIN-SLA Rewards.gif";
        imgsrc[1] = "Images/SICAM-MAIN-PMT2.jpg";
        imgsrc[2] = "Images/2007-Ebusiness-Home.gif";
        imgsrc[3] = "Images/The-X-Factor-Home-Intro.gif";
        //Write The Image Location Depending On The Random Number Generated
        document[imgname].src = imgsrc[random_num];
        //Populate The Array With The Links
        ahref[0] = "Misc/SLARewards.asp";
        ahref[1] = "Main/Services/RapidPrototype/RP_PMT.asp?InfoTag=PMTproto";
        ahref[2] = "";
        ahref[3] = "Main/Techinformation/Models/XtremeResin.asp";
        //Write The Link Location Depending On The Random Number Generated  
        document.getElementById(aname).href=ahref[random_num];
        //document[aname].href = ahref[random_num];
}