<!--
var browser=navigator.appName;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////// Main
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function MainFunction( home )
{
var oTitleH = document.getElementById("oTitle");
var img = document.createElement('img');
img.setAttribute('className','logo');
img.setAttribute('class','logo');
img.setAttribute('src','Graphics/acelogog.gif');
oTitleH.appendChild(img);

var oMenu = document.getElementById("oMenuBar");
if( browser == "Netscape") oMenu.style.width = 916;


var homeLink = document.createElement('p');
homeLink.setAttribute('className','unselected');
homeLink.setAttribute('class','unselected');
homeLink.appendChild(document.createTextNode(" Home "));
homeLink.style.zIndex = 1;
homeLink.style.textDecoration = 'underline';
if( browser == "Netscape") homeLink.style.top = -15;
homeLink.onclick = function(){ window.location.href = 'index.html'};
oMenu.appendChild(homeLink);

var spacer = document.createElement('p');
spacer.appendChild(document.createTextNode("|"));
spacer.setAttribute('className','spacer');
spacer.setAttribute('class','spacer');
if( browser == "Netscape") spacer.style.top = -25;
oMenu.appendChild(spacer);

var productLink = document.createElement('p');
productLink.setAttribute('className','unselected');
productLink.setAttribute('class','unselected');
productLink.appendChild(document.createTextNode("Products"));
productLink.style.left = 85;
if( browser == "Netscape") productLink.style.top = -15;
productLink.style.textDecoration = 'underline';
productLink.onclick = function(){ window.location.href = 'products.html'};

oMenu.appendChild(productLink);

var spacer2 = document.createElement('p');
spacer2.appendChild(document.createTextNode("|"));
spacer2.setAttribute('className','spacer');
spacer2.setAttribute('class','spacer');
if( browser == "Netscape") spacer2.style.top = -25;
spacer2.style.left = 175;

oMenu.appendChild(spacer2);


var capabilitiesLink = document.createElement('p');
capabilitiesLink.setAttribute('className','unselected');
capabilitiesLink.setAttribute('class','unselected');
capabilitiesLink.appendChild(document.createTextNode("Capabilities"));
capabilitiesLink.style.left = 185;
if( browser == "Netscape") capabilitiesLink.style.top = -15;
capabilitiesLink.style.textDecoration = 'underline';
capabilitiesLink.onclick = function(){ window.location.href = 'capabilities.html'};
oMenu.appendChild(capabilitiesLink);

var spacer2 = document.createElement('p');
spacer2.appendChild(document.createTextNode("|"));
spacer2.setAttribute('className','spacer');
spacer2.setAttribute('class','spacer');
spacer2.style.left = 305;
if( browser == "Netscape") spacer2.style.top = -25;
oMenu.appendChild(spacer2);

var contactLink = document.createElement('p');
contactLink.setAttribute('className','unselected');
contactLink.setAttribute('class','unselected');
contactLink.appendChild(document.createTextNode("Contact Us"));
contactLink.style.left = 315;
if( browser == "Netscape") contactLink.style.top = -15;
contactLink.style.textDecoration = 'underline';
contactLink.onclick = function(){ window.location.href = 'contact.html'};
oMenu.appendChild(contactLink);

var spacer2 = document.createElement('p');
spacer2.appendChild(document.createTextNode("|"));
spacer2.setAttribute('className','spacer');
spacer2.setAttribute('class','spacer');
spacer2.style.left = 427;
if( browser == "Netscape") spacer2.style.top = -25;
oMenu.appendChild(spacer2);

var faqLink = document.createElement('p');
faqLink.setAttribute('className','unselected');
faqLink.setAttribute('class','unselected');
faqLink.appendChild(document.createTextNode("FAQ"));
faqLink.style.left = 437;
if( browser == "Netscape") faqLink.style.top = -15;
faqLink.style.textDecoration = 'underline';
faqLink.onclick = function(){ window.location.href = 'FAQ.html'};
oMenu.appendChild(faqLink);

var spacer2 = document.createElement('p');
spacer2.appendChild(document.createTextNode("|"));
spacer2.setAttribute('className','spacer');
spacer2.setAttribute('class','spacer');
spacer2.style.left = 487;
if( browser == "Netscape") spacer2.style.top = -25;
oMenu.appendChild(spacer2);

//var quoteLink = document.createElement('p');
//quoteLink.setAttribute('className','unselected');
//quoteLink.setAttribute('class','unselected');
//quoteLink.appendChild(document.createTextNode("Request Quote"));
//quoteLink.style.left = 497;
//if( browser == "Netscape") quoteLink.style.top = -15;
//quoteLink.style.textDecoration = 'underline';
//quoteLink.onclick = function(){ window.location.href = 'quote.html'};
//oMenu.appendChild(quoteLink);


var MainDisplay = document.getElementById("oMainDisplay");


if(home == 1)
  {
  homeLink.style.background = 'lightgray';
  homeLink.style.color = "darkblue";
  homeLink.style.textDecoration = 'none';

 var pageHeader = document.createElement('h2');
 var titleText = document.createTextNode('Call Us Toll Free At 1-800-223-9287.');  
 pageHeader.setAttribute("align","center");
 pageHeader.appendChild(titleText);
 MainDisplay.appendChild(pageHeader);

 var pageGraphic = document.createElement('img');
 pageGraphic.setAttribute("src","Graphics/AceFrontPage.jpg");
 pageGraphic.setAttribute("className","pagehead");
 pageGraphic.setAttribute("class","pagehead");
 pageGraphic.setAttribute("width","500");
 pageGraphic.setAttribute("height","280");
 pageGraphic.style.left = 180;
 MainDisplay.appendChild(pageGraphic);

var Para = document.createElement('p');
var ParaBody = "Ace Forms is known throughout the printing industry as a quality manufacturer ";
ParaBody = ParaBody + "of custom business forms. We start with the best available raw materials ";
ParaBody = ParaBody + "and transform those materials into top-quality form solutions.";

 var ParaText = document.createTextNode(ParaBody);  
 Para.setAttribute("align","left");
 Para.setAttribute("className","pagebody");
 Para.setAttribute("class","pagebody");
 Para.style.top = 340;
 Para.appendChild(ParaText);
 MainDisplay.appendChild(Para);

var Para3 = document.createElement('p');
ParaBody = "We are dedicated to providing our customers with a good product at a reasonable price and in a managable time frame. "; 
ParaBody = ParaBody + "With qualified sales representatives to handle sales, quotations and service to our customers, ";
ParaBody = ParaBody + "we're ready to help with your form needs.";

 var ParaText = document.createTextNode(ParaBody);  
 Para3.setAttribute("align","left");
 Para3.setAttribute("className","pagebody");
 Para3.setAttribute("class","pagebody");
 Para3.style.top = 410;

 Para3.appendChild(ParaText);
 MainDisplay.appendChild(Para3);

  }

if(home == 2)
  {
  productLink.style.background = 'lightgray';
  productLink.style.color = "darkblue";
  productLink.style.textDecoration = 'none';

  var productDis = document.createElement('div');
  productDis.setAttribute('id','ProdDisDiv');
  MainDisplay.appendChild(productDis);

  var image = document.createElement('img');
  image.setAttribute('src','Graphics/create.jpg');
  image.setAttribute('width','400');
  image.setAttribute('height','280');
  image.setAttribute('id','proGraphic');  
  productDis.appendChild(image);
  
  var header2 = document.createElement('h2');

  var p = document.createElement('p');
  p.setAttribute("className","listH");
  p.setAttribute("class","listH");
  p.style.left = "30";
  p.style.top = "0";
  var text = "Select Product Type";
  var textNode = document.createTextNode(text);
  p.appendChild(header2);
  header2.appendChild(textNode);
  MainDisplay.appendChild(p);  

  var table = document.createElement('table');
  table.setAttribute("className","listA");
  table.setAttribute("class","listA");
  table.setAttribute("id","listA");
  table.style.left = '20';
  table.style.top = '10';
  MainDisplay.appendChild(table);
  var count = 0;
  var vAlign = 20;
  if( browser == "Netscape") var vAlign = 60;
  var text = ["Promotional Printing","Internal Business Forms","Checks","Certificates and Licenses", "Printed Mill Rolls"];
  while(table.rows.length < text.length){
    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listA");
    newCell.setAttribute("class","listA");
     var bullet = document.createElement('img');
     bullet.setAttribute("src","Graphics/RedDot.jpg");
     bullet.setAttribute("width","10");
     bullet.setAttribute("height","10");
    newCell.style.top = vAlign;
    vAlign = vAlign + 20;
     newCell.appendChild(bullet);
    var textNode = document.createTextNode("  " + text[count]);
    if( count == 0 )newCell.onclick = function(){TableRedraw("0",text);}
    if( count == 1 )newCell.onclick = function(){TableRedraw("1",text);}
    if( count == 2 )newCell.onclick = function(){TableRedraw("2",text);}
    if( count == 3 )newCell.onclick = function(){TableRedraw("3",text);}
    if( count == 4 )newCell.onclick = function(){TableRedraw("4",text);}
    newCell.appendChild(textNode);
    count++;
    }  
function TableRedraw(count,text){
    var table = document.getElementById("listA");
      while(table.rows.length > 0){table.deleteRow(0);}

    var products = new Array();
    products[0] = ['Flyers','Pamphlets / Brochures','Mailers','Card Carriers','Door Hangers']; //Promos
    products[1] = ['Pocket Forms','Manifold Books','Control Number Forms','Letterhead'];  //Internal BF
    products[2] = ['Cut Sheet Checks','Continuous Checks','Multi-Part Checks','Gift Checks'];   //Checks
    products[3] = ['Licenses and Permits','Certificates','Legal Contracts'];  //Official Documents
    products[4] = ['Pre-Printed Masthead', 'Check Backs','Pre-Perfed Paper'];  //Printed Mill rolls

    var rootCount = 0;
    var vAlign = 20;
    if( browser == "Netscape") var vAlign = 60;
    while(rootCount < text.length)
     {
     var newRow = table.insertRow(table.rows.length);
     var newCell = newRow.insertCell(0);
     newCell.setAttribute("className","listA");
     newCell.setAttribute("class","listA");

     newCell.style.top = vAlign;
     vAlign = vAlign + 23;
     var bullet = document.createElement('img');
     bullet.setAttribute("src","Graphics/RedDot.jpg");
     bullet.setAttribute("width","10");
     bullet.setAttribute("height","10");
     var textNode = document.createTextNode("  " + text[rootCount]);
     newCell.onclick = function(){TableRedraw(rootCount,text);}
     newCell.appendChild(bullet);
     newCell.appendChild(textNode);
     if( rootCount == 0 )newCell.onclick = function(){TableRedraw("0",text);}
     if( rootCount == 1 )newCell.onclick = function(){TableRedraw("1",text);}
     if( rootCount == 2 )newCell.onclick = function(){TableRedraw("2",text);}
     if( rootCount == 3 )newCell.onclick = function(){TableRedraw("3",text);}
     if( rootCount == 4 )newCell.onclick = function(){TableRedraw("4",text);}
     if( rootCount == count ){
     var proCount = 0;
       while(proCount < products[count].length){
         var secondary = table.insertRow(table.rows.length);
         listCell = secondary.insertCell(0);
         listCell.setAttribute("className","listB");
         listCell.setAttribute("class","listB");

         if(proCount == 0)listCell.onclick = function(){ProductDescr(products[count][0]);}    
         if(proCount == 1)listCell.onclick = function(){ProductDescr(products[count][1]);}    
         if(proCount == 2)listCell.onclick = function(){ProductDescr(products[count][2]);}    
         if(proCount == 3)listCell.onclick = function(){ProductDescr(products[count][3]);}    
         if(proCount == 4)listCell.onclick = function(){ProductDescr(products[count][4]);}    
         if(proCount == 5)listCell.onclick = function(){ProductDescr(products[count][5]);}    
         if(proCount == 6)listCell.onclick = function(){ProductDescr(products[count][6]);}    
         if(proCount == 7)listCell.onclick = function(){ProductDescr(products[count][7]);} 
         if(proCount == 8)listCell.onclick = function(){ProductDescr(products[count][8]);}    
         if(proCount == 9)listCell.onclick = function(){ProductDescr(products[count][9]);}    
         if(proCount == 10)listCell.onclick = function(){ProductDescr(products[count][10]);}               
         listCell.style.top = vAlign;
         vAlign = vAlign + 33;
         var textNode = document.createTextNode(products[count][proCount]);
         listCell.appendChild(textNode);
         proCount++;
         } 
       }  
    rootCount++;
    }  

  MainDisplay.appendChild(table)
 }
  }
if(home == 3)
  {
  capabilitiesLink.style.background = 'lightgray';
  capabilitiesLink.style.color = "darkblue";
  capabilitiesLink.style.textDecoration = 'none';

  MainDisplay.style.height = 750;
  }

if(home == 4)
  {
  contactLink.style.background = 'lightgray';
  contactLink.style.color = "darkblue";
  contactLink.style.textDecoration = 'none';

  var pageTitle = document.createElement('div');
  pageTitle.setAttribute("left","200");
  pageTitle.setAttribute("top","10");
  pageTitle.setAttribute("align","center");
  var text = "For Customer Service Call Us Toll Free At 1-800-223-9287";
  var h = document.createElement('h2');
  h.appendChild(document.createTextNode(text));
  pageTitle.appendChild(h);

  var pageGraphic = document.createElement('img');
  pageGraphic.setAttribute("src","Graphics/us3C.gif");
  pageGraphic.setAttribute("className","pagehead");
  pageGraphic.setAttribute("class","pagehead");
  pageGraphic.setAttribute("width","400");
  pageGraphic.setAttribute("height","250");
  pageGraphic.style.left = 350;
  MainDisplay.appendChild(pageGraphic);

  var pageAdd = document.createElement('div');
  pageAdd.setAttribute("className","pagebody");
  pageAdd.setAttribute("class","pagebody");
  pageAdd.style.top ="100";
  pageAdd.style.left ="-10";

  var h3 = document.createElement('h3');
  pageAdd.style.textIndent ="0cm";
  var Add = "Mailing Address";
  h3.appendChild(document.createTextNode(Add));
  h3.appendChild(document.createElement('br'));
  var Add = "Ace Forms Inc.";
  h3.appendChild(document.createTextNode(Add));
  h3.appendChild(document.createElement('br'));
  var Add = "2900 N. Rotary Terrace";
  h3.appendChild(document.createTextNode(Add));
  h3.appendChild(document.createElement('br'));
  var Add = "Pittsburg, Kansas 66762-2799";
  h3.appendChild(document.createTextNode(Add));
  h3.appendChild(document.createElement('br'));
  pageAdd.appendChild(h3);
  Add =" Fax Anytime: 1-620-232-1111";   
  h3.appendChild(document.createElement('br'));
  h3.appendChild(document.createElement('br'));
  h3.appendChild(document.createTextNode(Add));


  var pageText = document.createElement('div');
  pageText.setAttribute("className","pagebody");
  pageText.setAttribute("class","pagebody");
  pageText.style.top ="310";
  pageText.style.textAlign ="center";
  pageText.style.textIndent ="0cm";

  var text = "White - Denise ext. 427 ";
  var h3b = document.createElement('h3');
  h3b.appendChild(document.createTextNode(text));
  var link = document.createElement('a');
  link.appendChild(document.createTextNode("DeniseP@aceforms.com"));
  link.setAttribute('href','mailto:DeniseP@aceforms.com');
  h3b.appendChild(link);
  h3b.appendChild(document.createElement('br'));
  h3b.appendChild(document.createElement('br'));
  text ="Pink - Diane ext. 425 ";
  h3b.appendChild(document.createTextNode(text));
  var link = document.createElement('a');
  link.appendChild(document.createTextNode("DianeM@aceforms.com"));
  link.setAttribute('href','mailto:DianeM@aceforms.com');
  h3b.appendChild(link);
  h3b.appendChild(document.createElement('br'));
  h3b.appendChild(document.createElement('br'));
  text ="Sales Manager - Darrell ext. 430 ";
  h3b.appendChild(document.createTextNode(text));
  var link = document.createElement('a');
  link.appendChild(document.createTextNode("DarrellW@aceforms.com"));
  link.setAttribute('href','mailto:DarrellW@aceforms.com');
  h3b.appendChild(link);
  pageText.appendChild(h3b);
  
  MainDisplay.appendChild(pageText);
  MainDisplay.appendChild(pageAdd);
  MainDisplay.appendChild(pageTitle);

  MainDisplay.appendChild(pageGraphic);
  }

if(home == 5)
  {
  faqLink.style.background = 'lightgray';
  faqLink.style.color = "darkblue";
  faqLink.style.textDecoration = 'none';

  var answerBox = document.createElement('div');
  answerBox.setAttribute('id','AnswerBox');
  MainDisplay.appendChild(answerBox);
  
  var faq = document.createElement('img');
  faq.setAttribute('src','Graphics/solutions.jpg');
  answerBox.appendChild(faq);
  
  var header2 = document.createElement('h2');

  var p = document.createElement('p');
  p.setAttribute("className","listH");
  p.setAttribute("class","listH");
  p.style.left = "10";
  p.style.top = "0";
  var text = "Select an Item to View Solutions";
  var textNode = document.createTextNode(text);
  p.appendChild(header2);
  header2.appendChild(textNode);
  MainDisplay.appendChild(p);  

  var table = document.createElement('table');
  table.setAttribute("className","listA");
  table.setAttribute("class","listA");
  table.setAttribute("id","listA");
  table.style.left = '5';
  table.style.top = '10';
  MainDisplay.appendChild(table);
  var count = 0;
  var vAlign = 25;
  if( browser == "Netscape") var vAlign = 60;

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("I need my order Fast! What can you do?");
    newCell.appendChild(textNode);

    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 200;

    var h = document.createElement('h2');
    text = "Ask for a Rush Order!";
    var textNode = document.createTextNode(text);
    h.appendChild(textNode);
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "For a nominal fee we can upgrade your order to Rush Order.  Rush orders will be given priority and may ship within a week depending on raw material availability and plant loads.";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}
    

    vAlign = vAlign + 25;  

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("Do I have to accept a 10% overrun?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 200;

    var h = document.createElement('h2');
    text = "Overruns and Underruns";
    var textNode = document.createTextNode(text);
    h.appendChild(textNode);
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "For orders meeting minimums the standard Overrun is 10% and the standard Underrun is 10%.  For sufficiently large orders the Overrun/Underrun may be reduced to 3%.  You may also request your own percentage or even exact quantity, however an additional charge may be assesed especially on numbered jobs.";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What are your standard minimum order sizes?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 45;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 300;

    var h = document.createElement('h2');
    text = "Order Minimums";

    h.appendChild(document.createTextNode(text));
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "Minimums depend on form size with continuous and cut sheet forms measured by the height or depth of the form and unit sets measured from the width of the form.";
    var textNode = document.createTextNode(text);
    p.appendChild(textNode);
    p.appendChild(document.createElement('br'));
    p.appendChild(document.createElement('br'));
    text = "Up to 5 inches - 5000 minimum.";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Up to 8 inches - 4000 minimum.";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Above 8 inches  - 2500 minimum.";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    p.appendChild(document.createElement('br'));
    text = "All orders below minimums will be charged as if they met minimums, and subject to 20% overrun 10% underrun..";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}


   var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What are your standard shipping terms?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 300;

    var h = document.createElement('h2');
    text = "Standard Shipping Procedure";

    h.appendChild(document.createTextNode(text));
    answerBox.appendChild(h);
    var p = document.createElement(p);
    text = "Unless otherwise requested all jobs will ship in Ace standard cartons without storage, F.O.B. plant.  Via standard carrier to be determined by Ace. ";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}


    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("Where do I send digital art and/or copy?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 300;

    var h = document.createElement('h2');
    text = "Sending Electronic Copy";

    h.appendChild(document.createTextNode(text));
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "Email electronic copy and art to ";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
    var link = document.createElement('a');
    text = "comp@aceforms.com";
    link.setAttribute('href','mailto:comp@aceforms.com');
    link.appendChild(document.createTextNode(text));
    p.appendChild(link);
    text = ".";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    p.appendChild(document.createElement('br'));
    text = "  Please specify the job number or if its still a quote the quote number in the body or subject of the email.";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    p.appendChild(document.createElement('br'));
    text = "Or send a CD or flash drive via mail carrier to:";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Ace Forms of Kansas Inc.";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "2900 North Rotary Terrace";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Pittsburg, KS 66762";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    p.appendChild(document.createElement('br'));
    text = "If you prefer we can also set up a FTP session please call your sales rep.";    
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What is the best file format to use when sending digital art or copy?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 45;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 300;

    var h = document.createElement('h2');
    text = "Prefered file formats";

    h.appendChild(document.createTextNode(text));
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "In order to facilitate the smoothest most acurate reproduction of your digital copy please send copy files as adobe .pdf , .indd , .eps , quark X-press .qxd, or .qxp. Also make sure you include any imbeded art and special fonts.";    

    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));

    text = "Although we can convert a Word documents or Excel files into a .pdf this often introduces formatting errors into the .pdf and may require additional proofs and charges.";    
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("Why do I need send hard copy when I send in copy via computer file?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 45;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 200;

    var h = document.createElement('h2');
    text = "E-copy proofs";
    var textNode = document.createTextNode(text);
    h.appendChild(textNode);
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "In order to eliminate errors we require one proof for all jobs that come to us via computer file.  This ensure that you have sent us the right file, that we have all embedded images and fonts, and that the file has not been corrupted in any way.";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}
    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What are your standard payment terms?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;  
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 300;

    var h = document.createElement('h2');
    text = "Standard Payment Terms"; 

    h.appendChild(document.createTextNode(text));
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "Effective August 1st, 2% prompt pay discount allowed on all invoices paid within 15 days, funds must be recieved within 20 days. Net due 30 days. Prompt pay discount only applies to open account customers with no delinquent items. Discount not allowed on frieght invoices.  Late payments will be assesed a charge per day at the rate of 18% per annum. Claims for defects, damages or shortages must be made by the distributor with 10 business days of shipment.";
    var textNode = document.createTextNode(text);
    p.appendChild(document.createTextNode(text));    
    answerBox.appendChild(p);

}

    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What are your office hours?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height = 200;

    var h = document.createElement('h2');
    text = "Office Hours";
    var textNode = document.createTextNode(text);
    h.appendChild(textNode);
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "Sales - 8:00am cst to 5:00pm cst";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Other Office - 8:30am cst to 4:30pm cst";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
}
    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
    var textNode = document.createTextNode("What security features do you offer?");
    newCell.appendChild(textNode);
    vAlign = vAlign + 25;
    newCell.onclick = function(){
    removeChildNodes(answerBox);
    answerBox.style.width = 400;
    answerBox.style.height =350;

    var h = document.createElement('h2');
    text = "Security Features";
    var textNode = document.createTextNode(text);
    h.appendChild(textNode);
    answerBox.appendChild(h);

    var p = document.createElement(p);
    text = "We carry a wide range of security papers, in addition to the features the paper manufacturers include we offer:";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Micro print";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Bleed through MICR and Arabic numbering";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Security Pantographs";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Dual Color Pantographs";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Custom artificial watermarks";
    p.appendChild(document.createTextNode(text));
    answerBox.appendChild(p);
    p.appendChild(document.createElement('br'));
    text = "Embossing with or without foil";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Thermochromatic inks";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Invisible Fluorescent Inks";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Tamper Evident Packing Tape";
    p.appendChild(document.createTextNode(text));
    p.appendChild(document.createElement('br'));
    text = "Wicker Security System";
    p.appendChild(document.createTextNode(text));
    }
  }

if(home == 6)
  {
  quoteLink.style.background = 'lightgray';
  quoteLink.style.color = "darkblue";
  quoteLink.style.textDecoration = 'none';

  var newsBox = document.createElement('div');
  newsBox.setAttribute('id','newsBox');
  MainDisplay.appendChild(newsBox);
  newsBox.style.width = 400;
  newsBox.style.height = 350; 

  var faq = document.createElement('img');
  faq.setAttribute('src','Graphics/news.jpg');
  faq.style.width = 400;
  faq.style.height = 350; 
  newsBox.appendChild(faq);
  
  var header2 = document.createElement('h2');

  var p = document.createElement('p');
  p.setAttribute("className","listH");
  p.setAttribute("class","listH");
  p.style.left = "10";
  p.style.top = "0";
  var text = "Select an Item to View Item";
  var textNode = document.createTextNode(text);
  p.appendChild(header2);
  header2.appendChild(textNode);
  MainDisplay.appendChild(p);  

  var table = document.createElement('table');
  table.setAttribute("className","listA");
  table.setAttribute("class","listA");
  table.setAttribute("id","listA");
  table.style.left = '5';
  table.style.top = '10';
  MainDisplay.appendChild(table);
  var count = 0;
  var vAlign = 20;
  if( browser == "Netscape") var vAlign = 60;


    var newRow = table.insertRow(table.rows.length);
    var newCell = newRow.insertCell(0);
    var newsHead = document.createElement('h2');
    newsHead.style.textAlign = 'center';
    var para = document.createElement('p');

    newCell.setAttribute("className","listC");
    newCell.setAttribute("class","listC");  
    newCell.style.top = vAlign;
//////////////////////////////////////////NEWS ITEM 1////////////////////////////////////////////////////////
    var textNode = document.createTextNode("Welcome to the new Ace Forms site!");
    newCell.appendChild(textNode);
    newCell.onclick = function(){
          removeChildNodes(newsBox);                     
          newsHead.appendChild(document.createTextNode("New and Improved Website"));
          var img = document.createElement('img');
          img.setAttribute('src', 'Graphics/acepage.jpg');
          img.style.textAlign = 'center';
          newsBox.appendChild(img);
          var text = "There's more that just the updated look. Check out the Product descriptions,FAQ, and coming soon a ";
          text = text + "in depth online quote request form."; 
          para.appendChild(document.createTextNode(text));
          newsBox.appendChild(newsHead);
          newsBox.appendChild(para);
          }
    vAlign = vAlign + 25;  
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

  }

if(home == 7)
  {
  window.open ('quotereq.html') ;

  var h = document.createElement('h3');
  var text = "The form will open in a seperate window or tab."; 
  var textNode = document.createTextNode(text);
  h.appendChild(textNode);
  MainDisplay.appendChild(h);
  }

function removeChildNodes(ctrl)
{
  while (ctrl.childNodes[0])
  {
    ctrl.removeChild(ctrl.childNodes[0]);
  }
}
}


