// JavaScript Document
var x=0;
function grade_retail_test_financial(){
myQuiz=document.quiz

var myWin= open("", "score");

myWin.document.open();


myWin.x=x;

myWin.document.write("<html><head>");
myWin.document.write('</head><body bgcolor="white" text="#000000">');
myWin.document.write("<font size=3>");

if (myQuiz.retail[1].checked){x=x+5}
if (myQuiz.shoplifters[2].checked){x=x+5}
if (myQuiz.new_cust[3].checked){x=x+5}
if (myQuiz.survey[2].checked){x=x+5}
if (myQuiz.profit[3].checked){x=x+5}
if (myQuiz.fail[3].checked){x=x+5}
if (myQuiz.expense[3].checked){x=x+5}
if (myQuiz.keystone[2].checked){x=x+5}
if (myQuiz.survival[1].checked){x=x+5}
if (myQuiz.ten[0].checked){x=x+5}
if (myQuiz.loss[2].checked){x=x+5}
if (myQuiz.shrinkage[1].checked){x=x+5}
if (myQuiz.theft[2].checked){x=x+5}
if (myQuiz.question[3].checked){x=x+5}
if (myQuiz.margin[2].checked){x=x+5}
if (myQuiz.turn_rate[2].checked){x=x+5}
if (myQuiz.balance[0].checked){x=x+5}
if (myQuiz.gross[3].checked){x=x+5}
if (myQuiz.assets[3].checked){x=x+5}
if (myQuiz.statement[3].checked){x=x+5}

if (x== 100) myWin.document.write("<B>A+! You really know your retailing! <br>You scored " + x +" out of a possible 100."+ "</B><p>");
else if (x >= 95) myWin.document.write("<B>A! You have a tremendous working knowledge of retailing! <br>You scored " + x +" out of a possible 100."+ "</B><p>");
else if (x >= 85) myWin.document.write("<B>B. Your retail management knowlege is substantial, but could improve.<br> You scored " + x +" out of a possible 100."+ "</B><p>");
else if (x >= 75) myWin.document.write("<B>C. Retailing requires many skills and plenty of knowledge to succeed. Your trade association is an excellent source of information.<br> You scored " + x +" out of a possible 100."+ "</B><p>");
else  myWin.document.write("<B>D. Retail trade publications are a great source of information retail knowledge.<br> Look on our magazine page to see some of the best. <br>You scored " + x +" out of a possible 100."+ "</B><p>");


if (myQuiz.retail[1].checked){x=x+5}
else{myWin.document.write("1. Retail minus cost divided by retail is <B>gross margin.</b><p>");}

if (myQuiz.shoplifters[2].checked){x=x+5}
else{myWin.document.write("2. Items are considered long term at <B>365 days</b>.<p>");}


if (myQuiz.new_cust[3].checked){x=x+5}
else{myWin.document.write("3. Book value is <B>Initial cost minus depreciation</b>.<p>");}

if (myQuiz.survey[2].checked){x=x+5}
else{myWin.document.write("4. Retained earnings is <B>Profit earned, but not yet taken from the business.</b>.<p>");}

if (myQuiz.profit[3].checked){x=x+5}
else{myWin.document.write("5. A profit loss statement is also known as <B>Income statement</b>.<p>");}

if (myQuiz.fail[3].checked){x=x+5}
else{myWin.document.write("6. Fair market value is <B>the price you would get if you sold the item</b>.<p>");}

if (myQuiz.expense[3].checked){x=x+5}
else{myWin.document.write("7. Expenses on a profit & loss statement are shown as a percentage of <B>Net sales</b>.<p>");}

if (myQuiz.keystone[2].checked){x=x+5}
else{myWin.document.write("8. Assets minus liabilities is <B>equity</b>.<p>");}

if (myQuiz.survival[1].checked){x=x+5}
else{myWin.document.write("9. Cash basis accounting means <B>receivables and payables are cleared at the end of each accounting period</b>.<p>");}

if (myQuiz.ten[0].checked){x=x+5}
else{myWin.document.write("10. The one that is not an asset is <B>notes payable</b>.<p>");}

if (myQuiz.loss[2].checked){x=x+5}
else{myWin.document.write("11. The one that is not a liability is <B>cash</b>.<p>");}

if (myQuiz.shrinkage[1].checked){x=x+5}
else{myWin.document.write("12. Accrual accounting is <B>certain incomes and expenses reported over several accounting periods</b>.<p>");}

if (myQuiz.theft[2].checked){x=x+5}
else{myWin.document.write("13. Depreciation is <B>reducing the value of an asset over time</b>.<p>");}

if (myQuiz.question[3].checked){x=x+5}
else{myWin.document.write("14. A cashflow chart is <B>a way of accurately projecting your future cash needs</b>.<p>");}

if (myQuiz.margin[2].checked){x=x+5}
else{myWin.document.write("15. While a budget is a great tool, it is an incomplete tool because <B>There is no indication that there is sufficient cash for the business</b>.<p>");}

if (myQuiz.turn_rate[2].checked){x=x+5}
else{myWin.document.write("16. Annual gross profit dollars divided by average inventory at cost is <B>Gross Margin Return on Investment</b>.<p>");}

if (myQuiz.balance[0].checked){x=x+5}
else{myWin.document.write("17. The <b>Interest expense</b> does not appear on the balance sheet.<p>");}

if (myQuiz.gross[3].checked){x=x+5}
else{myWin.document.write("18. Gross Margin Return on Investment should be <B>greater than 1.5</b>.<p>");}

if (myQuiz.assets[3].checked){x=x+5}
else{myWin.document.write("19.  Assets minus liabilities is <B>Net worth</b>.<p>");}

if (myQuiz.statement[3].checked){x=x+5}
else{myWin.document.write("<B>20. Cash on hand</b> does not appear on the profit and loss statement.<p>");}

// New code to add a button
myWin.document.write("<div align='center'><P><B><FONT COLOR='#000000' SIZE='+1' FACE='Verdana'><input type='button' onClick='window.close()' value='Return to Questions' name='button'></FONT></B></P>");

myWin.document.close();
myWin.focus();
x=0
}
