﻿function displayFAQ() {

    questions = new Array();
    answers = new Array();

    questions[0] = "Why are my creditors still calling me?";
    answers[0] = "The <em>Fair Debt Collection Practices Act (FDCPA)</em> specifically addresses third-party debt collectors and does not&hellip;";
    questions[1] = "Can I still use a credit card I have in the program?";
    answers[1] = "NO. Any account in the program will be requested to be closed during American Debt Control's initial contact with your&hellip;";
    questions[2] = "Will I still receive monthly statements from the creditors, and will they still charge interest and late fees?";
    answers[2] = "YES. Most creditors will continue to send statements as long as the debt is outstanding. Once an account is settled, you will&hellip;";
    questions[3] = "Are all the accounts settled at the very end of the program?";
    answers[3] = "NO. You will use your personal savings fund to settle each account, one at a time throughout the program, as soon as you&hellip;";
    questions[4] = "What about Lawsuits or Arbitration? Can I be sued?";
    answers[4] = "Lawsuits are far less common in debt matters than most people think. Some people may fall behind and not make payments to&hellip;";
    questions[5] = "Can I shorten the program for the settlement of my accounts?";
    answers[5] = "YES. The pace of the settlement is based on the availability of funds. If you are able to come up with additional funds such&hellip;";
    questions[6] = "What should I do with any letters or correspondence I receive from my creditors or collection agencies?";
    answers[6] = "Some of the letters you receive require a response from our office and are time-sensitive material. Others may not be as time&hellip;";
    questions[7] = "Who controls the monthly savings account allocation to ultimately settle the accounts with my creditors?";
    answers[7] = "You do! The account is maintained and set up by you at your own bank. This account can be an existing account or a new account&hellip;";
    questions[8] = "Are you making payments to my creditors?";
    answers[8] = "No. When you choose to settle a debt, versus paying the balance in full, a creditor will only negotiate on an account that is&hellip;";
    questions[9] = "Will creditors call me?";
    answers[9] = "The hard truth is yes. You do owe them money so they have every right to call. Now there are things you can do to handle&hellip;";
    questions[10] = "Will this affect my credit report?";
    answers[10] = "Honestly, anything you do will affect your credit report. This is hitting the unsecured payment-history side of your credit&hellip;";
    questions[11] = "Do you hold onto my settlement funds?";
    answers[11] = "As members of TASC, we are not allowed to hold clients' funds. We have our clients set a personal account where funds start&hellip;";
    questions[12] = "Do I receive a 1099 after my account settles?";
    answers[12] = "If the savings is more than $600, then yes, you will receive a 1099. You will need to seek the advice of a tax expert&hellip;"

    if (document.getElementById("FAQQuestion")) {
        var faq = Math.round(Math.random() * 100) % 13;
        document.getElementById("FAQQuestion").innerHTML = questions[faq];
        document.getElementById("FAQAnswer").innerHTML = answers[faq];
        document.getElementById("LinkQuestion").href += "#FAQ" + faq;
        document.getElementById("LinkAnswer").href += "#FAQ" + faq;
        if(document.getElementById("SideBarFAQ")) {
        	document.getElementById("SideBarFAQ").style.display = "block";
    	}
    }
}
function verifySend() {
	if(document.getElementById("yourname").value == "") {
		alert('Please enter your name.');
		return false;	
	} else if(document.getElementById("youremail").value == "") {
		alert('Please enter your email address.');
		return false;	
	} else if(document.getElementById("friendsname").value == "") {
		alert('Please enter your friend\'s name.');
		return false;	
	} else if(document.getElementById("friendsemail").value == "") {
		alert('Please enter your friend\'s email address.');
		return false;	
	} else if(!isValidEmail(document.getElementById("friendsemail").value)) {
		alert('Please enter a valid email address yourself.');
		return false;	
	} else if(!isValidEmail(document.getElementById("friendsemail").value)) {
		alert('Please enter a valid email address your friend.');
		return false;	
	} else {
		return true;	
	}
}
function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}


function tableStripes() {
	var tables = document.getElementsByName("table");
	for(var i=0; i<tables.length; i++) {
		var odd = false;
		var rows = tables[i].getElementsByTagName("tr");
		for(var j=0; j<rows.length; j++){
			if(odd == true) {
			 addClass(rows[j], "odd");
			 odd = false;
			} else {
				odd = true;
			}
		}
	}
}


//usage
	addLoadEvent(tableStripes);




