          function randomNumber(lowLim, hiLim)
           {

           /*  Generates Random Number within specified
            *  range using random()
            *  Returns:
            *   Numeric random number between specified limits.
            */
           // Get a number from random() and 
           // normalize to be greater or equal to 0.1 ( the {}
           // creates a for-loop with an empty body)

           //   for (var rdmNum = Math.random();  
           //     rdmNum < 0.1;  
           //     rdmNum = rdmNum * 10 ) {}
           //  rdmNum = Math.random()

           // Normalize the 0...1 value returned by random() 
           // using the specified low and high limits.

           var normalVal = (hiLim - lowLim) * Math.random();

           //Truncate the fractional portion of the normalized value
           // and using ceil() add result to low limit and return the value.

           return Math.ceil( normalVal ) + lowLim;
           }   // random Number()
//============================================================================
           // Array of day names
           var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
           // Array of month Names
           var monthNames = new Array(
                "January","February","March","April","May","June","July","August","September","October","November","December");
           var time = new Date();
                var month = monthNames[time.getMonth()];
                var date = time.getDate();
                var year = time.getYear();
                if (year < 2000) 
                   year = year + 1900;
//============================================================================
              var maxi = 3
              var i = randomNumber(1, maxi);
              urls = new Array();
              urls[1]    = "http://www.amazon.com/exec/obidos/redirect-home/linktoiraninewsa";
              urls[2]   = "http://www.mahak-charity.org/";
              urls[maxi]   = "http://www.dmfund.org/";
   //           urls[1]    = "http://www.oaklandfurniture.com/";
   //           urls[2]    = "http://www.chekhabar.com/ads/yourad1.gif";
   //           urls[5]    = "http://www.chekhabar.com/ads/yourad1.gif";
   //           urls[5]    = "http://www.chekhabar.com/ads/chekhabarads1.gif";
   //           urls[6]    = "http://www.chekhabar.com/ads/lasvegasad.gif";
   //           urls[7]    = "http://www.chekhabar.com/ads/farzankar.gif";
   //           urls[8]   = "http://www.chekhabar.com/ads/yourad1.gif";
   //           urls[9]   = "http://www.chekhabar.com/ads/chekhabar_3cities.gif";
   //           urls[10]   = "http://www.chekhabar.com/ads/yourad1.gif";
   //           urls[12]   = "http://www.direct2press.com";
   //           urls[15]   = "http://www.mashaghel.com/";
   //           urls[16]   = "http://www.chekhabar.com/ads/pasargad.jpg";  
   //           urls[maxi]   = "http://www.chekhabar.com/cfo/index.html";
   //           urls[9]    = "http://www.MasoudRiazati.com/";
   //           urls[14]   = "http://www.sterlingcapital.com/";
   //           urls[maxi] = "http://www.sadaf.com/";
              //     urls[24]   = "http://www.mehrgan.us";
              //       urls[20]   = "http://www.radioiranla.com/";
              //       urls[16]   = "http://www.chekhabar.com/ads/satellite.gif";
              //          urls[7] = "http://www.carpetdesignsd.com/";
              //          urls[11] = "http://www.carpetdesignsd.com/";
              //          urls[21] = "http://www.chekhabar.com/ads/ostad.gif";
              //          urls[28] = "http://www.chekhabar.com/ads/carmelmarket.gif";  
              //          urls[15] = "http://www.cdbaby.com/mobasher";
              //          urls[5] = "http://www.SearchHomesInSanDiego.com/";
              //          urls[6] = "http://www.chekhabar.com/carmasters/";

              images = new Array();
              images[1]    = "./ads/amaz6.bmp";
              images[2]   = "http://www.mahak-charity.org/images/fa/header.jpg";
              images[maxi]   = "./images/1$banner.gif"

    //          images[1]    = "http://www.chekhabar.com/ads/oaklandfurniture2.jpg";
    //          images[2]    = "http://www.chekhabar.com/ads/yourad1.gif";
    //          images[3]    = "http://www.chekhabar.com/ads/chekhabar_3cities.gif";
       //       images[5]    = "http://www.chekhabar.com/ads/yourad1.gif";
    //          images[5]    = "http://www.chekhabar.com/ads/chekhabarads1.gif";
    //          images[6]    = "http://www.chekhabar.com/ads/lasvegasad.gif";
    //          images[7]    = "http://www.chekhabar.com/ads/farzankar.gif";
    //          images[8]   = "http://www.chekhabar.com/ads/yourad1.gif";
   //           images[9]   = "http://www.chekhabar.com/ads/chekhabar_3cities.gif";
   //           images[10]   = "http://www.chekhabar.com/ads/yourad1.gif";
   //           images[12]   = "http://www.chekhabar.com/ads/direct2press.gif";
 //             images[15]   = "http://www.mashaghel.com/images/banner/mashaghel/banner_mashaghel_460x60.gif";                            
 //             images[16]   = "http://www.chekhabar.com/ads/pasargad.jpg";  
 //             images[maxi]   = "http://www.chekhabar.com/ads/cfo.gif";
        //      images[9]    = "http://www.chekhabar.com/ads/riazati.jpg";
        //      images[14]   = "http://www.chekhabar.com/ads/mehdi_shahin.gif";
      //        images[maxi] = "http://www.chekhabar.com/ads/sadaf.gif";

              //images[24]   = "http://www.mehrgan.us/ee/images/web_banner.gif";
              //            images[7]  = "http://www.chekhabar.com/ads/carpetdesign3.jpg";
              //         images[16]   = "http://www.chekhabar.com/ads/satellite.gif";
              //         images[20]   = "http://www.chekhabar.com/images/radioiranla.gif";
              //            images[12] = "http://www.chekhabar.com/ads/carpetdesign1.jpg";
              //            images[13] = "http://www.chekhabar.com/ads/variety_tv_banner.gif";
              //            images[5]  = "http://www.chekhabar.com/ads/shawnommid.gif";
              //            images[6]  = "http://www.chekhabar.com/ads/japcar.jpg";              
              //            images[15] = "http://www.chekhabar.com/ads/mobasher.gif";
              //            images[21] = "http://www.chekhabar.com/ads/ostad.gif";
              //            images[28] = "http://www.chekhabar.com/ads/carmelmarket.gif";  
                
              function rollSleep(s)
              {
                window.setTimeout('rollImage()',s * 1000);
              }

              function rollImage()
              {
                i ++;
                if (i==maxi+1)
                {
                  i = 1;
                }
                document.banner.src = images[i];
                rollSleep(10);
              }

              function display_banner()
              {
                document.banner.src = images[i];
              }

              function currentLink()
              {
                return urls[i];
              }
