function generatecode()
{
<!-- Get Logo Selection*****************************************************************-->
for (var i=0; i < document.cladgenerator.logochoice.length; i++)
   {
   if (document.cladgenerator.logochoice[i].checked)
      {
      var logochoice = document.cladgenerator.logochoice[i].value;
      }
   }
<!-- Get Heading Selection**************************************************************-->
for (var i=0; i < document.cladgenerator.headingchoice.length; i++)
   {
   if (document.cladgenerator.headingchoice[i].checked)
      {
      var headingchoice = document.cladgenerator.headingchoice[i].value;
      }
   }
<!-- Get Bullet Text********************************************************************-->
var bullet1 = document.getElementById('bullet1').value;
var bullet2 = document.getElementById('bullet2').value;
var bullet3 = document.getElementById('bullet3').value;
var bullet4 = document.getElementById('bullet4').value;
var bullet5 = document.getElementById('bullet5').value;
var bullet6 = document.getElementById('bullet6').value;
<!-- Get Phone Numbers******************************************************************-->
var emergencyphone = document.getElementById('emergencyphone').value;
var territoryname = document.getElementById('territoryname').value;
var territoryphone = document.getElementById('territoryphone').value;
<!-- Get Website URL********************************************************************-->
var websiteurl = document.getElementById('websiteurl').value;
<!-- Get Credit Cards Accepted**********************************************************-->
for (var i=0; i < document.cladgenerator.creditcardchoice.length; i++)
   {
   if (document.cladgenerator.creditcardchoice[i].checked)
      {
      var creditcardchoice = document.cladgenerator.creditcardchoice[i].value;
      }
   }
  
document.cladgenerator.codebox.value = '<table width="800px" style="border: 2px solid #4178bd; border-collapse: collapse; background:white;" cellspacing="0" border-collapse: collapse;><tr><td colspan ="12" bgcolor="#4178bd" style="padding:0px;"><font size="6" face="calibri" color="lavenderblush"><center><strong>' + headingchoice + '</strong></center></font></td></tr><tr><td width="133px" colspan="2" style="padding:0px;"><img src="http://www.rooterman.com/images/qualitywork.gif"></img></td><td colspan="10"  style="padding:0px;"><img src="http://www.rooterman.com/images/tvlogotop.gif" style="padding:0px;"></img></td></tr><tr><td width="266px" colspan="5"  style="padding:0px; text-align:right;"><img src="http://www.rooterman.com/images/' + logochoice + '"></img></td><td colspan="7" style="padding:0px;"><img src="http://www.rooterman.com/images/tvlogobottom.gif"></img></td></tr><tr><td width="266px" colspan="5"  style="padding:0px; text-align:center;"><strong><font size="5.5" face="Arial Narrow"><a href="http://' + websiteurl + '"><span style="text-decoration:none; color: #0767b3;">' + websiteurl + '</span></a></font></strong></td><td style="padding:0px;"></td><td colspan="6" style="padding:0px;  text-align:center;"><img src="' + creditcardchoice + '"></img></td></tr><tr><td colspan="4"  style="padding:0px;"><ul style="padding-left:20px; padding-right: 0px;"><li><strong><font size="3" face="Arial Narrow">' + bullet1 + '</font></strong></li><li><strong><font size="3" face="Arial Narrow">' + bullet2 + '</font></strong></li></ul></td><td colspan="4"  style="padding:0px;"><ul style="padding-left:20px; padding-right: 0px;"><li><strong><font size="3" face="Arial Narrow">' + bullet3 + '</font></strong></li><li><strong><font size="3" face="Arial Narrow">' + bullet4 + '</font></strong></li></ul></td><td colspan="4"  style="padding:0px;"><ul style="padding-left:0px; padding-right: 0px;"><li><strong><font size="3" face="Arial Narrow">' + bullet5 + '</font></strong></li><li><strong><font size="3" face="Arial Narrow">' + bullet6 + '</font></strong></li></ul></td></tr><tr><td colspan="6"  bgcolor="#4178bd" style="padding:0px; border-right: 3px solid white;"><font size="6" face="calibri" color="lavenderblush"><center><strong>EMERGENCY:<br>Call: ' + emergencyphone + '</strong></center></font></td><td colspan="6" bgcolor="#4178bd" style="padding:0px;  border-left: 3px solid white;"><font size="6" face="calibri" color="lavenderblush"><center><strong>' + territoryname + ':<br>Call: ' + territoryphone + '</strong></center></font></td></tr><tr><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="67px"  style="padding:0px;"></td><td width="67px"  style="padding:0px;"></td><td width="67px"  style="padding:0px;"></td><td width="67px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td><td width="66px"  style="padding:0px;"></td></tr></table>'
}

