
  document.getElementById("layouttop").innerHTML = "<span style='position: absolute'>\
    <a style='position: absolute; left: 654px; text-decoration: none; top: 59px' href='affjoin.pl'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>\
    <a style='position: absolute; left: 310px; text-decoration: none; top: 126px' href='rates.pl'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>\
    <span style='position: absolute; left: 590px; top: 100px'>\
      <select onchange=\"if (this.options[this.selectedIndex].value != '') window.location = this.options[this.selectedIndex].value;\" style='background-color: transparent; background-image: url(/waw/images2/Test1_02.jpg)'>\
        <option selected value=''>Ad Land World\
        <option value='http://pjsmarketing.com'>PJSMarketing\
        <option value='http://hitsfrenzy.com'>HitsFrenzy\
        <option value='http://easypopups.com'>Easy Popups\
        <option value='http://americandatalists.com'>American Data Lists\
        <option value='http://sprintgo.com'>SprintGO\
      </select>\
    </span>\
  </span>"; // put links at very top 
  document.getElementById("layouttop2").innerHTML = "<div style='position: relative; left: 441px; top: 20px; border: 1px solid #FFF; width: 300px; height: 160px; color: #FFF'>data</div>"; // text that fills big grey area
  document.getElementById("layouttop2").innerHTML = "<div style='position: relative; left: 441px; top: 20px; width: 300px; height: 160px; color: #FFF'><strong>Welcome to AdlandWorld's Full Page Classified Ad Mall.</strong> Receive your own web address, sell your product or service, opportunity, real estate or collectible with a cost effective 'Super-Sized Web Ad'. <strong>Place Your Ad Today</strong> and gain valuable Advertising Exposure on our High Traffic Classified Ad Mall. Join our Affiliate program and start earning commissions on ad placements on those you refer. What could be easier.</div>"; // text that fills big grey area
  document.getElementById("layoutbar").innerHTML = "<table style='width: 100%; height: 100%;'><tr>\
  <td width='100' align='center' valign='middle' style='vertical-align: middle; color: #FFF;font-weight: bold;  font-size: 12px; font-family: Arial'><a href='viewads.pl' style='color: #FFF;text-decoration: none'>Home</a></td>\
  <td width='120' align='center' valign='middle' style='vertical-align: middle; color: #FFF;font-weight: bold;  font-size: 12px; font-family: Arial'><a href='viewads.pl' style='color: #FFF;text-decoration: none'>View Ads</a></td>\
  <td width='134' align='center' valign='middle' style='vertical-align: middle; color: #FFF; font-size: 14px; font-weight: bold; font-family: Arial'><a href='updateads.pl' style='vertical-align: middle; color: #FFF;text-decoration: none; font-size: 12px'>Update Ads</a></td>\
  <td width='125' align='center' valign='middle' style='vertical-align: middle; color: #FFF; font-size: 12px; font-weight: bold; font-family: Arial'><a href='placeads.pl' style='color: #FFF;text-decoration: none'>Place Ads</a></td>\
  <td width='122' align='center' valign='middle' style='vertical-align: middle; color: #FFF; font-size: 12px; font-weight: bold; text-decoration: none; font-family: Arial'><a href='rates.pl' style='color: #FFF;text-decoration: none'>Ad Rates</a></td>\
  <td width='102' align='center' valign='middle' style='vertical-align: middle; color: #FFF; font-size: 12px; font-weight: bold; font-family: Arial'><a href='contactus.pl' style='color: #FFF;text-decoration: none'>Contact</a></td>\
  <td>&nbsp;</td>\
  </tr></table>";

  /*

  placeads.pl
  updateads.pl
  contactus.pl
  ??DB:admin:RC:admin_db:FL:homeurl?? - home?


  */

  document.getElementById("layoutfooter").style.textAlign = 'left'; 
  document.getElementById("layoutfooter").innerHTML = '<span style="position: absolute">\
    <a style="text-decoration: none; position: absolute; left: 60px; top: 14px" href="mailto: nathan@nurknet.com">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>\
    <a style="text-decoration: none; position: absolute; left: 48px; top: 24px" href="mailto: jacobbeasley@gmail.com">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>\
  </span>'; 

  document.getElementById("rightadverts").style.width='300px';

  var newdiv = document.createElement("div"); 
  newdiv.innerHTML = '\
        <table class="textbox">\
          <tr class="top">\
            <td>\
              Search Ad Database\
            </td>\
          </tr>\
          <tr>\
            <td><form method="POST" action="search.pl" name="search" style="display: inline">\
              <font size="2">Enter your search word(s) below.</font>\
                <input type="hidden" name="criterion" value="search"><input type="text"\
                  name="search_field" size="20"> <input name="choice" value="ANY" type="hidden">\
                  <input type="image" value="Search!" name="submit" src="/waw/images2/search.jpg" style="position: relative; top: 8px; "></form>\
            </td>\
          </tr>\
        </table>\
        \
        <table style="border-collapes: collapse; margin: 0px; padding: 0px; background-color: #323931; width: 100%">\
          <tr>\
            <td style="color: #FFF; font-size: 11px; font-weight: bold; padding: 4px; ">\
              Total <span style="color: #1a83b2">Ads:</span> <span id="totalAdsCount"></span>\
            </td>\
          </tr>\
        </table>\
        \
        <table class="textbox">\
          <tr class="top">\
            <td style="padding: 0px; margin: 0px">\
              Featured Sites<br><div style="font-size: 10px"><a href="featured.pl">Get Listed Now</a> For Only $49.95/month!</div>\
            </td>\
          </tr>\
          <tr>\
            <td>\
            <iframe onload="autoExpand();" id="pageRightAds" src="/waw/pageRightAds.html" width="100%" height="50" frameborder="0" allowtransparency="true"></iframe>\
            </td>\
          </tr>\
        </table>\
        <table class="textbox">\
          <tr class="top">\
            <td style="padding: 0px; margin: 0px">\
              Special Offers\
            </td>\
          </tr>\
          <tr>\
            <td>\
                Free 1 Month Ad Special, A $25.00 Value! Claim thru Service Link Below.<br>\
<a href="http://www.pjsmarketing.com/5c.php">Traffic-Central Home-Biz Traffic Service</a><!-- they go here -->\
            </td>\
          </tr>\
        </table>';
      document.getElementById("rightadverts").appendChild(newdiv);
      
      // right iframe auto-expand code
      function autoExpand() {
        var the_height=document.getElementById('pageRightAds').contentWindow.document.body.scrollHeight;

        //change the height of the iframe
        document.getElementById('pageRightAds').height=the_height;
        
        var the_height=document.getElementById('pageBottomAds').contentWindow.document.body.scrollHeight;

        //change the height of the iframe
        document.getElementById('pageBottomAds').height=the_height;
      }
      setTimeout("autoExpand();", 1000); // probably will be called on load anyway...


// POPUP AD CODE
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=0,width=500,height=450,left = 250,top = 10');");
}

// set totalAdsCount
function loadJavascript(dsrc) { 
  var newelement = document.createElement("script");
  newelement.src = dsrc;
  newelement.type="text/javascript";
  document.getElementsByTagName("body")[0].appendChild(newelement); 
}
loadJavascript("totalAds.pl"); 