
var rs=new Array(13),rgQuizHeadings=new Array(13),rgQuiz=new Array(13),rgQuizAnswers=new Array(13),rgQuizAnswersValue=new Array(13),rgQuizAnswersOption=new Array(13),rgQuizAnswersOptionValue=new Array(13);rgQuizHeadings[0]="Question 1";rgQuizHeadings[1]="Question 2";rgQuizHeadings[2]="";rgQuizHeadings[3]="";rgQuizHeadings[4]="";rgQuizHeadings[5]="Question 3";rgQuizHeadings[6]="Question 4";rgQuizHeadings[7]="Question 5";rgQuizHeadings[8]="Question 6";rgQuizHeadings[9]="Question 7";rgQuizHeadings[10]="Question 8";rgQuizHeadings[11]="Question 9";rgQuizHeadings[12]="Question 10";rgQuiz[0]="<b>How many total accounts do you have? (open and closed)</b><br /><span> Accounts include credit cards, retail cards, auto loans, mortgage loans, student loans, etc.</span> <br/> <select style='width:100%' name='qr_a' id='qr_a' >";rgQuiz[1]="<b>How many of your accounts: </b><br /><span> Please differentiate between accounts that are PRESENTLY late vs. accounts which were PREVIOUSLY late.</span><br/>Are <i> <u>presently</u></i> 30 days late? <br/> <select style='width:100%' name='qr_b' id='qr_b' >";rgQuiz[2]="Were <i><u>previously</u> </i> 30 days late? <br/> <select style='width:100%' name='qr_c' id='qr_c' >";rgQuiz[3]="Are  <i><u>presently</u> </i>  60 days late or greater (include delinquencies, charge offs and repossessions)? <br/> <select style='width:100%' name='qr_d' id='qr_d' >";rgQuiz[4]="Were <i><u>previously</u> </i> 60 days late or greater (include delinquencies, charge offs and repossessions)? <br/> <select style='width:100%' name='qr_e' id='qr_e' >";rgQuiz[5]="<b>How many credit cards or loans have you applied for in the last 2 years? </b><br/> <select style='width:100%' name='qr_f' id='qr_f' >";rgQuiz[6]="<b>Excluding your mortgage, how many open installment loans do you have? </b><br /><span>Installment loans are loans which have a fixed monthly payment amount over a scheduled period of time. Auto loans and student loans are examples of installment loans.</span><br/> <select style='width:100%' name='qr_g' id='qr_g' >";rgQuiz[7]="<b>How many open credit cards do you have?</b><br/> <select style='width:100%' name='qr_h' id='qr_h' >";rgQuiz[8]="<b>What is the total credit limit on all of your open credit cards? </b><br /><span>For example, if you have a VISA with a limit of $20,000 and a retail charge card with a limit of $1000, Your total credit limit on your credit card accounts would be: $21,000 ($20,000 + $1,000).</span><br/> <select style='width:100%' name='qr_i' id='qr_i' >";rgQuiz[9]="<b>What is the total balance on all of your open credit cards? </b><br /><span>For example, if you have a VISA with a balance of $4,000 and a retail charge card with a balance of $500, your total balances your credit card accounts would be: $4,500 ($4,000 + $500).</span><br/> <select style='width:100%' name='qr_j' id='qr_j' >";rgQuiz[10]="<b>What is the number of open credit cards that are maxed out (less than 10% of credit limit is available)? </b><br /><span>As an example, if you have a VISA with a balance of $4,000 and a limit of $5,000 (20% of credit limit available) and a retail charge card with a balance of $950 and a limit of $1000 (5% credit limit available), one credit card (the retail charge card) would be considered maxed out since less than 10% of the credit limit is available.</span><br/> <select style='width:100%' name='qr_k' id='qr_k' >";rgQuiz[11]="<b>If you have had a judgment, tax lien, or bankruptcy occur, when was the most recent occurrence? </b><br /><span>If you have had multiple judgments, tax liens, or bankruptcies, only use the most recent occurrence to answer this question. For example, if you filed for bankruptcy 5 years ago, but also had a judgment occur 18 months ago, your most recent occurrence would be: 12-24 months ago.</span><br/> <select style='width:100%' name='qr_l' id='qr_l' >";rgQuiz[12]="<b>When was your most recent credit card or loan opened? </b><br /><span>If you have opened multiple accounts recently, choose the most recent one. </span><br/> <select style='width:100%' name='qr_m' id='qr_m' >";rgQuizAnswersOption[0]="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,Greater than 25";rgQuizAnswersOption[1]="0, 1,2,3,4,5,6,7,8,9,10,Greater than 10";rgQuizAnswersOption[2]="0, 1,2,3,4,5,6,7,8,9,10,Greater than 10";rgQuizAnswersOption[3]="0, 1,2,3,4,5,6,7,8,9,10,Greater than 10";rgQuizAnswersOption[4]="0, 1,2,3,4,5,6,7,8,9,10,Greater than 10";rgQuizAnswersOption[5]="0, 1,2,3,4,5 or more";rgQuizAnswersOption[6]="Never had any installment loans ; Have paid/closed installment loans, but none currently open;1;2;3;4;5 or more";rgQuizAnswersOption[7]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,Greater than 25";rgQuizAnswersOption[8]="I have no open credit cards;Less than $1,000; $1,000 to $1,999;$2,000 to $4,999; $5,000 to $9,999; $10,000 to $14,999;$15,000 to $19,999;$20,000 to $29,999; $30,000 to $49,999; $50,000 or greater";rgQuizAnswersOption[9]="I have no open credit cards ; $0 ; Less than $500 ; $500 to $999 ; $1,000 to $1,499 ; $1,500 to $1,999 ; $2,000 to $3,999 ; $4,000 to $6,999 ; $7,000 to $9,999 ; $10,000 to $12,999 ; $13,000 to $15,999 ; $16,000 to $19,999 ; $20,000 to $24,999 ; $25,000 to $29,999 ; $30,000 to $39,999 ; $40,000 to $49,999 ; $50,000 or greater";rgQuizAnswersOption[10]="None,1,2,3,4 or more";rgQuizAnswersOption[11]="Never had a judgment, tax lien, or bankruptcy;This year;12-24 months;25-60 months ago;Over 60 months ago";rgQuizAnswersOption[12]="0-6 months ago,7-12 months ago,13-24 months,25-48 months ago,Over 48 months ago";rgQuizAnswersOptionValue[0]="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26";rgQuizAnswersOptionValue[1]="0,1,2,3,4,5,6,7,8,9,10,11";rgQuizAnswersOptionValue[2]="0,1,2,3,4,5,6,7,8,9,10,11";rgQuizAnswersOptionValue[3]="0,1,2,3,4,5,6,7,8,9,10,11";rgQuizAnswersOptionValue[4]="0,1,2,3,4,5,6,7,8,9,10,11";rgQuizAnswersOptionValue[5]="0,1,2,3,4,5";rgQuizAnswersOptionValue[6]="-1,0,1,2,3,4,5";rgQuizAnswersOptionValue[7]="0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26";rgQuizAnswersOptionValue[8]="0,999,1999,4999,9999,14999,19999,29999,49999,60000";rgQuizAnswersOptionValue[9]="0,0,500,999,1499,1999,3999,6999,9999,12999,15999,19999,24999,29999,39999,49999,50000";rgQuizAnswersOptionValue[10]="0,1,2,3,4";rgQuizAnswersOptionValue[11]="0,1,1,0,0";rgQuizAnswersOptionValue[12]="0,1,2,3,4";function GetQuestion(QuestionNo)
{rgQuizAnswers[0]=rgQuizAnswersOption[0].split(",");rgQuizAnswers[1]=rgQuizAnswersOption[1].split(",");rgQuizAnswers[2]=rgQuizAnswersOption[2].split(",");rgQuizAnswers[3]=rgQuizAnswersOption[3].split(",");rgQuizAnswers[4]=rgQuizAnswersOption[4].split(",");rgQuizAnswers[5]=rgQuizAnswersOption[5].split(",");rgQuizAnswers[6]=rgQuizAnswersOption[6].split(";");rgQuizAnswers[7]=rgQuizAnswersOption[7].split(",");rgQuizAnswers[8]=rgQuizAnswersOption[8].split(";");rgQuizAnswers[9]=rgQuizAnswersOption[9].split(";");rgQuizAnswers[10]=rgQuizAnswersOption[10].split(",");rgQuizAnswers[11]=rgQuizAnswersOption[11].split(";");rgQuizAnswers[12]=rgQuizAnswersOption[12].split(",");rgQuizAnswersValue[0]=rgQuizAnswersOptionValue[0].split(",");rgQuizAnswersValue[1]=rgQuizAnswersOptionValue[1].split(",");rgQuizAnswersValue[2]=rgQuizAnswersOptionValue[2].split(",");rgQuizAnswersValue[3]=rgQuizAnswersOptionValue[3].split(",");rgQuizAnswersValue[4]=rgQuizAnswersOptionValue[4].split(",");rgQuizAnswersValue[5]=rgQuizAnswersOptionValue[5].split(",");rgQuizAnswersValue[6]=rgQuizAnswersOptionValue[6].split(",");rgQuizAnswersValue[7]=rgQuizAnswersOptionValue[7].split(",");rgQuizAnswersValue[8]=rgQuizAnswersOptionValue[8].split(",");rgQuizAnswersValue[9]=rgQuizAnswersOptionValue[9].split(",");rgQuizAnswersValue[10]=rgQuizAnswersOptionValue[10].split(",");rgQuizAnswersValue[11]=rgQuizAnswersOptionValue[11].split(",");rgQuizAnswersValue[12]=rgQuizAnswersOptionValue[12].split(",");if(document.getElementById('crQuestionDiv'))
{removeElement('crQuestionDiv');}
var crsurveyQ=document.getElementById('crQuiz');var newdiv=document.createElement('div');newdiv.setAttribute('id','crQuestionDiv');var crquiz="";var QuestionNoOriginal=QuestionNo;crquiz+='<div id=\'crQuizTitle\'>'+rgQuizHeadings[QuestionNo-1]+' of 10: </div>';if(QuestionNo==2)
{document.getElementById('crQuiz').style.height=220+'px';var rgQuizQ=rgQuiz[QuestionNo-1].split("</span><br/>");crquiz+=rgQuizQ[0]+'<table><tr><td>'+rgQuizQ[1];var rgQuizDiv=crquiz.split("<select");crquiz=rgQuizDiv[0]+'<div id=\'crQuizPad\'> <select'+rgQuizDiv[1];}
else
{document.getElementById('crQuiz').style.height=170+'px';rgQuizDivs=rgQuiz[QuestionNo-1].split("<select");crquiz+=rgQuizDivs[0]+'<div id=\'crQuizPad\'> <select'+rgQuizDivs[1];}
for(var i=0;i<rgQuizAnswers[QuestionNo-1].length;i++)
{crquiz+='<option value='+rgQuizAnswersValue[QuestionNo-1][i]+'>'+rgQuizAnswers[QuestionNo-1][i]+'</option>';}
crquiz+='</select> </div> ';if(QuestionNo==2)
{crquiz+='</td><td>';for(var subQuestion=1;subQuestion<4;subQuestion++)
{if(subQuestion==2)crquiz+='<tr><td>';crquiz+=rgQuiz[QuestionNo];for(var i=0;i<rgQuizAnswers[QuestionNo].length;i++)
{crquiz+='<option value='+rgQuizAnswersValue[QuestionNo][i]+'>'+rgQuizAnswers[QuestionNo][i]+'</option>';}
var rgQuizD=crquiz.split("<br/> <select");crquiz=rgQuizD[0]+'<br/> <div id=\'crQuizPad\'> <select'+rgQuizD[1];crquiz+='</select> </div>';if(subQuestion==1||subQuestion==3)
crquiz+='</td> </tr>';else
crquiz+='</td><td>';QuestionNo++;}
crquiz+='</table>';}
QuestionNo++;crquiz+='<div id=\'crQuizNav\'>';if(QuestionNoOriginal==1)
{crquiz+='<input type=\'button\' value=\'Back\' disabled=\'disabled\'/> <input type=\'button\' value=\'Next\' onclick=\'getData('+(QuestionNo)+')\'/>';}
else if(QuestionNo==(rgQuizHeadings.length+1))
{crquiz+='<input type=\'button\' value=\'Back\' onclick=\'GetQuestion('+(QuestionNoOriginal-1)+')\'/> <input type=\'submit\' onclick=\'SumbitCrQuiz()\' value=\'Submit\' />';}
else if((QuestionNoOriginal-1)>2&&((QuestionNoOriginal-1)<6))
{crquiz+='<input type=\'button\' value=\'Back\' onclick=\'GetQuestion('+(QuestionNoOriginal-1-3)+')\'/> <input type=\'button\' value=\'Next\' onclick=\'getData('+(QuestionNo)+')\'/>';}
else
{crquiz+='<input type=\'button\' value=\'Back\' onclick=\'GetQuestion('+(QuestionNoOriginal-1)+')\'/> <input type=\'button\' value=\'Next\' onclick=\'getData('+(QuestionNo)+')\'/>';}
crquiz+='</div>';newdiv.innerHTML=crquiz;crsurveyQ.appendChild(newdiv);}
function removeElement(divNum){document.getElementById('crQuiz').removeChild(document.getElementById(divNum));}
function getData(QuestionNo)
{getCrQuizAns();GetQuestion(QuestionNo);}
function getCrQuizAns()
{if(document.getElementById("qr_a")){rs[0]='<Accounts>'+getValue("qr_a")+'</Accounts>'};if(document.getElementById("qr_b")){rs[1]='<AccountsOnePaymentLatePresently>'+getValue("qr_b")+'</AccountsOnePaymentLatePresently>'};if(document.getElementById("qr_c")){rs[2]='<AccountsOnePaymentLatePreviously>'+getValue("qr_c")+'</AccountsOnePaymentLatePreviously>'};if(document.getElementById("qr_d")){rs[3]='<AccountsOverOnePaymentLatePresently>'+getValue("qr_d")+'</AccountsOverOnePaymentLatePresently>'};if(document.getElementById("qr_e")){rs[4]='<AccountsOverOnePaymentLatePreviously>'+getValue("qr_e")+'</AccountsOverOnePaymentLatePreviously>'};if(document.getElementById("qr_f")){rs[5]='<CreditCardsOrLoansApplied>'+getValue("qr_f")+'</CreditCardsOrLoansApplied>'};if(document.getElementById("qr_g")){rs[6]='<OpenInstallmentLoansExceptMortgage>'+getValue("qr_g")+'</OpenInstallmentLoansExceptMortgage>'};if(document.getElementById("qr_h")){rs[7]='<OpenCreditCards>'+getValue("qr_h")+'</OpenCreditCards>'};if(document.getElementById("qr_i")){rs[8]='<TotalCreditLimit>'+getValue("qr_i")+'</TotalCreditLimit>'};if(document.getElementById("qr_j")){rs[9]='<TotalBalance>'+getValue("qr_j")+'</TotalBalance>'};if(document.getElementById("qr_k")){rs[10]='<MaxedOutCreditCards>'+getValue("qr_k")+'</MaxedOutCreditCards>'};if(document.getElementById("qr_l")){rs[11]='<MostRecentJudgement>'+getValue("qr_l")+'</MostRecentJudgement>'};if(document.getElementById("qr_m")){rs[12]='<MostRecentCreditOpened>'+getValue("qr_m")+'</MostRecentCreditOpened>'};}
function getValue(ddl)
{return document.getElementById(ddl).options[document.getElementById(ddl).selectedIndex].value;}
function SumbitCrQuiz()
{getCrQuizAns();var crQuizXML="";for(var i=0;i<rs.length;i++)
{crQuizXML+=rs[i];}
crQuizXML='<ScoreEstimator>'+crQuizXML+'</ScoreEstimator>';var f=document.forms["Quiz"];f._questionData.value=crQuizXML;f.submit();}