// JavaScript Document

var total =   0;

<!-- What kind of data are stored on your computer? (If more than one, choose highest value) -->
var q1a1  =  10;  //Occasional letters and reports
var q1a2  =  50;  //Client Records
var q1a3  = 100;  //Accounting
var q1a4  = 200;  //Most critical business data

<!-- If all data on your computer were lost and all backup tapes destroyed, how long would it take one person to re-enter it manually? -->
var q2a1  =  10;  //1 Week
var q2a2  =  30;  //4 Weeks
var q2a3  =  50;  //6 Months  
var q2a4  = 100;  //1 Year  
    
<!-- Do you keep paper records that you could use as a source to re-enter lost computer data? -->                        
var q3a1  =-100;  //Yes
var q3a2  = 100;  //No

<!-- How often do you perform a full backup? -->
var q4a1  =- 50;  //Daily
var q4a2  =   0;  //Weekly
var q4a3  =  50;  //Monthly 
var q4a4  = 100;  //Yearly

<!-- How is the backup done? -->
var q5a1  =- 50;  //Automatically
var q5a2  =  10;  //Manually, by a skilled person
var q5a3  =  50;  //Other

<!-- How long do you keep copies of your old data? -->
var q6a1  = 100;  //We use the same tape every day
var q6a2  =  50;  //One Week
var q6a3  =  30;  //One Month 
var q6a4  =- 50;  //One Year

<!-- How often are backup tapes verified? -->
var q7a1  =- 50;  //Every time a backup is done
var q7a2  =  50;  //Periodically
var q7a3  = 100;  //Never

<!-- How often do you re-evaluate your backup strategy? -->
var q8a1  =- 50;  //Weekly
var q8a2  =- 10;  //Monthly
var q8a3  =  50;  //Yearly 
var q8a4  = 100;  //Never

<!-- Where are your backup tapes stored? -->
var q9a1  =-200;  //Offsite secure data storage vault
var q9a2  =- 50;  //At home
var q9a3  = 100;  //At the office 
var q9a4  = 200;  //Next to the computer
var q9a5  = 500;  //We don't do backups

<!-- Who has access to your computers? (Check all that apply) -->
var q10a1 =- 50;  //Trusted, computer-skilled employees
var q10a2 =  30;  //People with no computer training
var q10a3 =  50;  //Unskilled employees 
var q10a4 = 100;  //Employees who will soon quit

<!-- Do you or any of your employees: (Check all that apply) -->
var q11a1 =  30;  //Install non-company software?
var q11a2 =  50;  //Borrow software from friends?
var q11a3 =  40;  //Access your computers by modem?

<!-- How many computers do you have? -->
var q12a1 =   0;  //1
var q12a2 =  70;  //2-10
var q12a3 = 100;  //11-20 
var q12a4 = 200;  //Over 20

<!-- Do you have a computer network? -->
var q13a1 = 200;  //Yes
var q13a2 =   0;  //No

 

function x() 

{
if (document.survey.q1[0].checked == true)   
   {total += q1a1} 
if (document.survey.q1[1].checked == true)   
   {total += q1a2} 
if (document.survey.q1[2].checked == true)   
   {total += q1a3} 
if (document.survey.q1[3].checked == true)   
   {total += q1a4} 

if (document.survey.q2[0].checked == true)   
   {total += q2a1} 
if (document.survey.q2[1].checked == true)   
   {total += q2a2} 
if (document.survey.q2[2].checked == true)   
   {total += q2a3} 
if (document.survey.q2[3].checked == true)   
   {total += q2a4} 
  
if (document.survey.q3[0].checked == true)   
   {total += q3a1} 
if (document.survey.q3[1].checked == true)   
   {total += q3a2} 
      
if (document.survey.q4[0].checked == true)   
   {total += q4a1} 
if (document.survey.q4[1].checked == true)   
   {total += q4a2} 
if (document.survey.q4[2].checked == true)   
   {total += q4a3} 
if (document.survey.q4[3].checked == true)   
   {total += q4a4} 
   
if (document.survey.q5[0].checked == true)   
   {total += q5a1} 
if (document.survey.q5[1].checked == true)   
   {total += q5a2} 
if (document.survey.q5[2].checked == true)   
   {total += q5a3} 
  
if (document.survey.q6[0].checked == true)   
   {total += q6a1} 
if (document.survey.q6[1].checked == true)   
   {total += q6a2} 
if (document.survey.q6[2].checked == true)   
   {total += q6a3} 
if (document.survey.q6[3].checked == true)   
   {total += q6a4} 

if (document.survey.q7[0].checked == true)   
   {total += q7a1} 
if (document.survey.q7[1].checked == true)   
   {total += q7a2} 
if (document.survey.q7[2].checked == true)   
   {total += q7a3} 
   

if (document.survey.q8[0].checked == true)   
   {total += q8a1} 
if (document.survey.q8[1].checked == true)   
   {total += q8a2} 
if (document.survey.q8[2].checked == true)   
   {total += q8a3} 
if (document.survey.q8[3].checked == true)   
   {total += q8a4} 

if (document.survey.q9[0].checked == true)   
   {total += q9a1} 
if (document.survey.q9[1].checked == true)   
   {total += q9a2} 
if (document.survey.q9[2].checked == true)   
   {total += q9a3} 
if (document.survey.q9[3].checked == true)   
   {total += q9a4} 
if (document.survey.q9[4].checked == true)   
   {total += q9a5} 


if (document.survey.q10[0].checked == true)   
   {total += q10a1} 
if (document.survey.q10[1].checked == true)   
   {total += q10a2} 
if (document.survey.q10[2].checked == true)   
   {total += q10a3} 
if (document.survey.q10[3].checked == true)   
   {total += q10a4} 


if (document.survey.q11[0].checked == true)   
   {total += q11a1} 
if (document.survey.q11[1].checked == true)   
   {total += q11a2} 
if (document.survey.q11[2].checked == true)   
   {total += q11a3} 


if (document.survey.q12[0].checked == true)   
   {total += q12a1} 
if (document.survey.q12[1].checked == true)   
   {total += q12a2} 
if (document.survey.q12[2].checked == true)   
   {total += q12a3} 
if (document.survey.q12[3].checked == true)   
   {total += q12a4} 


if (document.survey.q13[0].checked == true)   
   {total += q13a1} 
if (document.survey.q13[1].checked == true)   
   {total += q13a2} 



alert ("Your score was " +total+ ".  Please refer to the table below to assess the risk to your business.")

}


function b()
{
total -= total
}

