
            function constructForm() {
                var container = document.getElementById("vantagecontainer");
                
                if(vantage_show_header) {
                    var header = document.createElement("h2");
                    header.innerHTML = vantage_header_text;
                    container.appendChild(header);
                }
                
                var frm = document.createElement("form");
                frm.id = "vantageform";
                frm.action = "http://vantagecard.merchantrates.com/tools/calculator.aspx";
                frm.method = "get";
                    
                var contactDiv = document.createElement("div");
                var contactLabel = document.createElement("label");
                contactLabel.innerHTML = "Contact";
                var contactText = document.createElement("input");
                contactText.type = "text";
                contactText.id = "vantagecontact";
                contactText.name = "vantagecontact";
                contactDiv.appendChild(contactLabel);
                contactDiv.appendChild(document.createElement("br"));
                contactDiv.appendChild(contactText);
                frm.appendChild(contactDiv);

                var emailDiv = document.createElement("div");
                var emailLabel = document.createElement("label");
                emailLabel.innerHTML = "Email";
                var emailText = document.createElement("input");
                emailText.type = "text";
                emailText.id = "vantageemail";
                emailText.name = "vantageemail";
                emailDiv.appendChild(emailLabel);
                emailDiv.appendChild(document.createElement("br"));
                emailDiv.appendChild(emailText);
                frm.appendChild(emailDiv);

                var phoneDiv = document.createElement("div");
                var phoneLabel = document.createElement("label");
                phoneLabel.innerHTML = "Phone";
                var phoneText = document.createElement("input");
                phoneText.type = "text";
                phoneText.id = "vantagephone";
                phoneText.name = "vantagephone";
                phoneDiv.appendChild(phoneLabel);
                phoneDiv.appendChild(document.createElement("br"));
                phoneDiv.appendChild(phoneText);
                frm.appendChild(phoneDiv);
                
                var industryDiv = document.createElement("div");
                var industryLabel = document.createElement("label");
                industryLabel.innerHTML = "Industry";
                var industrySelect = document.createElement("select");
                industrySelect.id = "vantageindustry";
                industrySelect.name = "vantageindustry";
                var option = document.createElement("option");
                option.value = "";
                option.innerHTML = "[Select]";
                industrySelect.appendChild(option);
                var option1 = document.createElement('option');
                    option1.value = "2";
                    option1.innerHTML = 'Retail Card Present';
                    industrySelect.appendChild(option1);var option2 = document.createElement('option');
                    option2.value = "3";
                    option2.innerHTML = 'Restaurant';
                    industrySelect.appendChild(option2);var option3 = document.createElement('option');
                    option3.value = "4";
                    option3.innerHTML = 'Business to Business';
                    industrySelect.appendChild(option3);var option4 = document.createElement('option');
                    option4.value = "6";
                    option4.innerHTML = 'Internet';
                    industrySelect.appendChild(option4);var option5 = document.createElement('option');
                    option5.value = "9";
                    option5.innerHTML = 'MOTO';
                    industrySelect.appendChild(option5);var option6 = document.createElement('option');
                    option6.value = "10";
                    option6.innerHTML = 'Touch Tone Capture';
                    industrySelect.appendChild(option6);var option7 = document.createElement('option');
                    option7.value = "5";
                    option7.innerHTML = 'Supermarket';
                    industrySelect.appendChild(option7);var option8 = document.createElement('option');
                    option8.value = "1";
                    option8.innerHTML = 'Lodging';
                    industrySelect.appendChild(option8);var option9 = document.createElement('option');
                    option9.value = "7";
                    option9.innerHTML = 'Emerging Markets';
                    industrySelect.appendChild(option9);var option10 = document.createElement('option');
                    option10.value = "8";
                    option10.innerHTML = 'Wireless';
                    industrySelect.appendChild(option10);industryDiv.appendChild(industryLabel);
                industryDiv.appendChild(document.createElement("br"));
                industryDiv.appendChild(industrySelect);
                frm.appendChild(industryDiv);

                var volumeDiv = document.createElement("div");
                var volumeLabel = document.createElement("label");
                volumeLabel.innerHTML = "MC/Visa/Discover sales/yr";
                var volumeText = document.createElement("input");
                volumeText.type = "text";
                volumeText.id = "vantagevolume";
                volumeText.name = "vantagevolume";
                volumeDiv.appendChild(volumeLabel);
                volumeDiv.appendChild(document.createElement("br"));
                volumeDiv.appendChild(document.createTextNode("$"));
                volumeDiv.appendChild(volumeText);
                frm.appendChild(volumeDiv);

                var avgTicketDiv = document.createElement("div");
                var avgTicketLabel = document.createElement("label");
                avgTicketLabel.innerHTML = "Avg Ticket";
                var avgTicketText = document.createElement("input");
                avgTicketText.type = "text";
                avgTicketText.id = "vantageavgticket";
                avgTicketText.name = "vantageavgticket";
                avgTicketDiv.appendChild(avgTicketLabel);
                avgTicketDiv.appendChild(document.createElement("br"));
                avgTicketDiv.appendChild(document.createTextNode("$"));
                avgTicketDiv.appendChild(avgTicketText);
                frm.appendChild(avgTicketDiv);

                var submitButton = document.createElement("input");
                submitButton.type = "submit";
                submitButton.value = "Check Rates";
                var submitDiv = document.createElement("div");
                submitDiv.appendChild(submitButton);
                frm.appendChild(submitDiv);

                container.appendChild(frm);
            }

            document.write("<div id='vantagecontainer'></div>");
            constructForm();