
	var BKPresent = false;
    var CollectionsStep = 6;
	var StepNumber = 4;
	var ArraySteps = new Array("Advice1", "Advice2","Advice3","Advice4","Advice5","Advice6", "Advice7","Advice8","Advice9","Advice10");
	var ArrayNumbers = new Array(0,0,0,0,0,0,0,0,0,0);
	
	
	///////bankruptcy
	function DoBK() {
	  BKPresent = true;
	  var form = document.Repair;
	  var AnsweredYes = false;
	  var AccountsNotIncluded = confirm("Do You Have any accounts in your BK which are not shown as 'Included in BK' on your credit report?  Press OK for Yes, Cancel for No");
	  if (AccountsNotIncluded) {
	     FillAdvice("Write to the credit bureaus requesting they request any accounts included in your bankruptcy account to be listed as 'Included in BK'", ArraySteps[0]);
         AnsweredYes = true;
		 form.Accounts_Not_Showing_As_Included.value = "Yes";
      }
      else form.Accounts_Not_Showing_As_Included.value = "No";
	  
      var CollectionsPresent = confirm("Do you have any collections on your report? Press OK for Yes, Cancel for No");
	  if (CollectionsPresent) {
	      var CollectionsFromAccountsInBK = confirm("Are any which are showing as open from accounts which were included in your BK?  Press OK for Yes, Cancel for No");
		  
          if (CollectionsFromAccountsInBK) {
		    form.Open_Collections_From_Accounts_In_BK.value = "Yes";
	        FillAdvice("You have indicated that you have some open collections on your credit report which do not reflect that they are part of your bankruptcy. Write to the collection agencies and tell them they are illegally reporting collections for debt which was included in a BK.  This is a violation of the FCRA.", ArraySteps[1]);
            AnsweredYes = true;
	      }
		  else {
		    FillAdvice("Well, we need to do a little more work on your collections.  We will deal with this step " + CollectionsStep + ", 'Dealing with Collections'", ArraySteps[1])
			form.Open_Collections_From_Accounts_In_BK.value = "No";
          }
      }
	  else FillAdvice("Go On to Step 4", ArraySteps[0]);
	  if (!(AnsweredYes)) FillAdvice("Great!  Your credit report is updated as far as your bankruptcy.", ArraySteps[0]);
		 
	}
	
	///////////////////judgements
	function DoJudgments() {
      var formField = 0;
	  var form = document.Repair;
	  var AnsweredYes = false;
	  var AreJudgmentsYours = confirm("Do You Have any Judgments on your credit report which are not yours?  Press OK for Yes, Cancel for No");
	  if (AreJudgmentsYours) {
	     form.Judgments_On_Credit_Report_Yours.value = "No";
	     FillAdvice("Dispute the judgments with the credit bureaus using our sample letters.", ArraySteps[2]);
         AnsweredYes = true;
      }	
	  else form.Judgments_On_Credit_Report_Yours.value = "Yes";
	  if (confirm("For each judgment which is yours on your credit report have you paid them off?  Press OK for Yes, Cancel for No.")) {
	     form.Some_Judgments_On_Credit_Report_Have_Been_Paid.value = "Yes";
	     if (!(confirm("If they are PAID, is your credit report showing this properly? Press OK for Yes, Cancel for No."))) {
		 form.Judgment_Status_Showing_Correctly_On_Credit_Report.value = "No";
	     AddAdvice("Write to the credit bureaus and request that they correct the status of your judgment to PAID or SATISFIED.", ArraySteps[2]);
         }
		 else {
		    form.Judgment_Status_Showing_Correctly_On_Credit_Report.value = "Yes";
			AddAdvice("You can try and dispute PAID judgments on your credit report with the bureaus if you want.", ArraySteps[2]);
		 }
		 AddAdvice("If you have any UNPAID judgments, you need to take care of these judgments as soon as possible to avoid wage garnishment or seizure of property. You can negotiate these debts.", ArraySteps[2]);
         AnsweredYes = true;
      }	
	  else { 
	    AddAdvice("If you can't vacate the judgment, you need to take care of these judgments as soon as possible to avoid wage garnishment or seizure of property. You can negotiate these debts.", ArraySteps[2]);
		form.Some_Judgments_On_Credit_Report_Have_Been_Paid.value = "No";
      }
	  
	  var ServedProperly = confirm("For each judgment which is yours on your credit report, were you served paperwork by courier, FEDEX or Certified Mail? Press OK for Yes, Cancel for No");
	  
	  if (!(ServedProperly)) {
	     form.Judgments_Not_Served_Properly.value = "Yes";
	     if (document.Repair.elements[ArraySteps[2]].value == "") 
		     formField = ArraySteps[2];
		 else formField = ArraySteps[3];
		 
	     FillAdvice("File a motion to vacate the judgment based on the fact that you were not served the paperwork.  Once the judgment is vacated (this means it is rendered invalid) you can send the paperwork to the credit bureaus and they should remove the judgment.", formField);
         AnsweredYes = true;
      }	
	  else form.Judgments_Not_Served_Properly.value = "No";
	  
	  
	  if (!(AnsweredYes)) 
	     FillAdvice("Well, the best thing you can do is to dispute the judgment and hope the credit bureau can't verify it.", ArraySteps[2]);
	
	}
	
	///////////////tax liens
	function DoTaxLien() {
      var formField = 0;
	  var form = document.Repair;
	  var AnsweredYes = false;
	  var AreTheyYours = confirm("Are these tax liens yours? Press OK for Yes, Cancel for No");
	  
	  
	  if (AreTheyYours) {
	     form.Tax_Liens_Are_Yours.value = "Yes";
	     if (confirm("Are your tax liens paid?")) {
		   form.Tax_Liens_Paid.value = "Yes";
	       FillAdvice("Make sure they are showing as paid on your credit report. If not, dispute the status with the credit bureaus.", ArraySteps[4]);
		 }
		 form.Tax_Liens_Paid.value = "No";
         AnsweredYes = true;
      }
	  else form.Tax_Liens_Are_Yours.value = "No";
	  
	  if (!(AnsweredYes)) 
	     FillAdvice("Well, the best thing you can do is to dispute the tax liens and hope the credit bureau can't verify it.  You should also try and pay them off ASAP.  It's also possible to negotiate for less than you owe.  Look around for a good tax attorney.", ArraySteps[5]);
	
	}	
	
	/////////Collections
	function DoCollection() {
	  var form = document.Repair;
	  if (confirm("Are these collections yours? Press OK for Yes, Cancel for No")) {
	     form.Collections_Are_Yours.value = "Yes";
	     if (confirm("Have you tried the debt validation route. Press OK for Yes, Cancel for No" )) {
            form.You_Have_Tried_Debt_Validation.value = "Yes";
            if (confirm("Have you sent in your request for debt validation letter to the collection agency? Press OK for Yes, Cancel for No")) {
			   form.You_Have_Sent_In_Request_For_Debt_Validation.value = "Yes";
               FillAdvice("Be sure you have sent this letter certified mail return receipt requested.  Wait for 30 days to send the next letter.  Go to our debt validation section for the next steps.  You can also use the Dispute with Original Creditors method (do a search on the upper right to find the article).", ArraySteps[6]);
			   if (confirm("Did the collection agency validate your debt?")) {
			     AddAdvice("It's time to go the debt settlement route.  See our section on debt settlement.", ArraySteps[6]);
				 form.Collection_Agency_Validated_Debt.value = "No";
			   }
			   else {
			      AddAdvice("It's time to send proof of non-validation to credit bureaus. You can also use the Dispute with Original Creditors method (do a search on the upper right to find the article). If you have followed our procedures, it's also time to get ready to take legal action against the collection agency.", ArraySteps[6]);
				  form.Collection_Agency_Validated_Debt.value = "No";
			   }
			        
            }
			else {
			   FillAdvice("Go to our debt validation section to learn how to do this.", ArraySteps[6])
			   form.You_Have_Sent_In_Request_For_Debt_Validation.value = "No";
			}
		 }
		 else {
		   FillAdvice("Do not call the collection agencies or talk to them on the phone. Go to our debt validation section and get started!", ArraySteps[6])
		   form.You_Have_Tried_Debt_Validation.value = "No";
		 }
      }
	  else {
	    FillAdvice("Write to the credit bureaus and dispute the collections as 'not yours'", ArraySteps[6]);
		form.Collections_Are_Yours.value = "No";
	  }

	}		
	

	
	
	function FillAdvice(text, textbox) {
	   //alert(textbox);
	   elem = document.getElementById(textbox);
	   //alert(elem);
	   //document.Repair.elements[textbox].value = text;
	   elem.value = text;
	}
	
	function AddAdvice(text, textbox) {
	   //alert(textbox);
	   elem = document.getElementById(textbox);
	   //alert(elem);
	   //document.Repair.elements[textbox].value += text;
	   elem.value += text;
	   
	}
	

