function results() {
    var yes = 0;
    var no = 0;
    for (var i=0;i<11;i++) {
        if (eval("document.getElementById('q" + i + "_1').checked") == true)
            yes++;
        if (eval("document.getElementById('q" + i + "_0').checked") == true)
            no++;
    }

	document.getElementById('debtResults').style.display='';
	if (navigator.appName == "Microsoft Internet Explorer"){

		if (yes > 0) {
			document.getElementById("debtResults").innerHTML  = "Your answers indicate that you may be in some financial difficulty.  Bankruptcy could help you.  To find out if bankruptcy is right for you, call us toll free at <b>877-349-1309</b> or use our <b><a href=/free-case-evaluation.aspx>free case evaluation</a></b> to schedule an initial, no-obligation consultation with one of our sponsoring bankruptcy attorneys."
		} else if (yes < 1 && no <11){ 
			document.getElementById("debtResults").innerHTML = "You need to complete the test.";
		} else {
			document.getElementById("debtResults").innerHTML = 'Although you marked "No" for all your answers, you may be having other financial difficulties that make you a candidate for bankruptcy.  Only a consultation with a local bankruptcy attorney can give you the information you need to make an informed decision about bankruptcy.  A bankruptcy attorney can help you fully understand your financial picture and advise you on whether bankruptcy is right for you.  Call us toll free at <b>877-349-1309</b> or  use our <b><a href=/free-case-evaluation.aspx>free case evaluation</a></b> to schedule an initial, no-obligation consultation with one of our sponsoring bankruptcy attorneys.'
		}
	
	} else {

		if (yes > 0) {
			document.getElementById("debtResults").innerHTML  = "Your answers indicate that you may be in some financial difficulty.  Bankruptcy could help you.  To find out if bankruptcy is right for you, call us toll free at <b>877-349-1309</b> or use our <b><a href=/free-case-evaluation.aspx>free case evaluation</a></b> to schedule an initial, no-obligation consultation with one of our sponsoring bankruptcy attorneys."
		} else if (yes < 1 && no <11){ 
			document.getElementById("debtResults").innerHTML = "You need to complete the test.";
		} else { 
			document.getElementById("debtResults").innerHTML = 'Although you marked "no" for all your answers, you may be having other financial difficulties that make you a candidate for bankruptcy.  Only a consultation with a local bankruptcy attorney can give you the information you need to make an informed decision about bankruptcy.  A bankruptcy attorney can help you fully understand your financial picture and advise you on whether bankruptcy is right for you.  Call us toll free at <b>877-349-1309</b> or  use our <b><a href=/free-case-evaluation.aspx>free case evaluation</a></b> to schedule an initial, no-obligation consultation with one of our sponsoring bankruptcy attorneys.'
		}
	}
}

function resetForm() {
	document.getElementById('debtResults').style.visibility='hidden';
	document.location="#anc_top";
}
