var q1, q2, q3, q4, q5, q6, q7 ,q8, q9, q10;
var f6y = "We strongly recommend our <u>Standard</u> Standard Plan. You have indicated that you are very comfortable with the major tasks involved in selling a home and should be able to save a considerable amount of money by selling your property yourself.<br /><br />Read more about our Standard Plan by <a href=\"FSBO.aspx\">clicking here</a>.<br /><br />";
var f6n = "We recommend that you consider our Deluxe MLS Plan. The way you answered some of the questions suggests that you might benefit from some of the features of this package. Consider:<ul>";
var q1n = "<li>You indicated that you aren't comfortable using the Internet. With our Deluxe MLS Plan, a ListWisconsin.com representative will come to your home and can enter the listing into the website for you.</li>";
var q2n = "<li>You indicated that you don't have a good idea what your home is worth. Our Deluxe MLS Plan includes a market analysis where one of our representatives will help you determine the likely selling price of your home based on recent comparable home sales in your area.</li>";
var q5n = "<li>You indictated that selling your home quickly is important to you. Our Deluxe MLS Plan places your property into the Multiple Listing Service, which gives exposure to thousands of local real estate agents who are working with buyers. Maximizing exposure is a great way to sell your property quickly.</li>";
var q6n = "<li>You indicated that you are not comfortable with the negotiations and legal aspects of selling your home. We offer a closing services upgrade to customers who purchase our Deluxe MLS Plan. With this upgrade we handle the paperwork related to the transaction, assist you with the negotiations and coordinate the closing of the sale. This upgrade costs $495 and is only available to customers who purchase our Deluxe MLS Plan. You pay nothing up front - the payment is made only when your home sells. Read more about our closing services option by <a href=\"ClosingServices.aspx\">clicking here</a>.";
var q7y = "<u>Since you are selling a condominium</u>, you will want to check into any rules that your homeowners association has regarding signs. Some associations allow yard signs, others allow only window signs, and still others prohibit any signs at all. You can check your condominium disclosure documents or call your property manager or a board member for this information<br /><br />When you list your property on our website, make sure you choose a sign option that is permitted at your homeowners association.<br /><br />";
var q8n = "<u>Since you don't have access to a digital camera</u>, you will want to make sure that we take pictures of your home for you. This service is included at no extra charge for our Deluxe MLS Plan customers and can be purchased for $49 extra by our Standard package customers at the time you list your home. Pictures are important - listings with pictures sell more quickly than listings without pictures!<br /><br />";
var q9y = "<u>Since your property is located on a corner lot</u>, you may want to consider adding a second sign. This will allow traffic from both streets to see that your home is for sale. Be sure to select the additional sign option (a $75 charge applies) when you list your property.<br /><br />";
var q10y = "<u>Since you are also in the market to buy a replacement property</u>, you should consider working with one of the real estate agents from our partner company, <a href=\"http://www.eliteprop.org\">Elite Properties</a>. Since our Deluxe MLS Plan is administered by Elite Properties, it makes sense to work with the same company for both selling your existing home and buying a new one.<br /><br />";

function WhichPlan(form)
{
    var recommendations;
    q1 = document.aspnetForm.q1[0].checked;
    q2 = document.aspnetForm.q2[0].checked;
    q3 = document.aspnetForm.q3[0].checked;
    q4 = document.aspnetForm.q4[0].checked;
    q5 = document.aspnetForm.q5[0].checked;
    q6 = document.aspnetForm.q6[0].checked;
    q7 = document.aspnetForm.q7[0].checked;
    q8 = document.aspnetForm.q8[0].checked;
    q9 = document.aspnetForm.q9[0].checked;
    q10 = document.aspnetForm.q10[0].checked;
    
    if( q1 && q2 && q3 && q4 && q5 && q6 )
    {
        // yes to first 6 questions
        recommendations = f6y;
    }
    else
    {
        recommendations = f6n;
        if( !q1 )
        {
            recommendations += q1n;
        }
        if( !q2 )
        {
            recommendations += q2n;
        }
        if(!q3 || !q4)
        {
            var text = "<li>You indicated that ";
            if( !q3 )
            {
                text += "you aren't comfortable showing your home by yourself";
            }
            if( !q3 && !q4 )
            {
                text += " and ";
            }
            if( !q4 )
            {
                text += "you have a busy schedule that can make showings difficult";
            }
            text += ". Our Deluxe MLS Plan places your property into the Multiple Listing Service, where thousands of local real estate agents will have access to it and will show your home to prospective buyers. You don't need to be at home for these showings.</li>";
            
            recommendations += text;
        }
        if( !q5 )
        {
            recommendations += q5n;
        }
        if( !q6 )
        {
            recommendations += q6n;
        }
        recommendations += "</ul>";
    }
    
    if( q7 )
    {
        recommendations += q7y;
    }
    if( !q8 )
    {
        recommendations += q8n;
    }
    if( q9 )
    {
        recommendations += q9y;
    }
    if( q10 )
    {
        recommendations += q10y;
    }
    
    document.getElementById("questions").style.display = "none";
    document.getElementById("answers").style.display = "inline";
    document.getElementById("recommendations").innerHTML = recommendations;
}

function Restart()
{
    document.getElementById("recommendations").innerHTML = "";
    document.getElementById("answers").style.display = "none";
    document.getElementById("questions").style.display = "inline";
}