//Enter total number of questions:
var totalquestions=10

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='true' //question 1 solution
correctchoices[2]='false' //question 2 solution, and so on.
correctchoices[3]='false'
correctchoices[4]='false'
correctchoices[5]='true'
correctchoices[6]='true'
correctchoices[7]='false'
correctchoices[8]='false'
correctchoices[9]='false'
correctchoices[10]='false'

var questions=new Array()
questions[1]='Oral agreements are equally enforceable as written agreements.  Although both an oral and a written agreement are equally enforceable, it is much easier to prove the terms of a written contract.  A lawsuit for breach of an oral contract must be commenced within three \(3\) years from the date of the breach.  The rule is six \(6\) years for written contracts.<p>'
questions[2]='In the absence of a statute or contract to the contrary, each party is responsible for its own attorneys\' fees and costs.  This is the American rule.  Your contract should clearly state that if there is a dispute and either party retains an attorney, the prevailing party is entitled to recover its attorneys\' fees and costs from the non-prevailing party.  Washington\'s lien and public bond/retainage statutes provide for recovery of attorney\'s fees to the prevailing party.<p>'
questions[3]='Washington law allows parties to a construction contract to bargain for warranty periods of any length (e.g. one month, one year, etc.).  A construction agreement may limit the warranty period or disclaim any warranty whatsoever with only two (2) exceptions: (1) A four-year warranty on the sale of new condominium units; and (2) A three-year warranty of habitability on the sale of new residential units.  In the event that the construction agreement is silent regarding a warranty, the customer may assert a claim against the contractor for up to six years following substantial completion of a commercial or residential project.<p>'
questions[4]='However, if the contractor fails to notify the homeowner of the steps the homeowner must follow before initiating any lawsuit against the contractor, the homeowner may proceed directly against the contractor with a lawsuit.  The contractor should provide this notice upon starting new residential construction or a \"substantial remodel\" of a residence.  A \"substantial remodel\" is defined as a project for which the total cost exceeds one half of the assessed value of residence at the time the contractor for the remodeling work is made.<p>'
questions[5]='For a construction contract, the usury laws do not apply which means that the parties can negotiate whatever interest they wish to apply to unpaid balances owed to the contractor.  The reason that usury laws do not apply is because, at the time that the contract is entered, neither party owes the other money.<p>'
questions[6]='Courts favor arbitration clauses because they reduce court congestion.  Therefore, a clause that requires the parties to arbitrate a dispute rather than litigate that dispute will be enforced by a court.<p>'
questions[7]='There is no law that requires an owner to permit a contractor to remain on the job in order to correct or complete the contractor\'s work.  Absent contractual terms to the contrary, a customer can order the contractor to leave the customer\'s premises, and the customer may hire an alternative contractor to complete or correct the original contractor\'s work. The contractor\'s remedy is for breach of contract.<p>'
questions[8]='Contracts which require change orders to be in writing are written for the benefit of the customer, not the contractor.  Because the written requirement is for the benefit of the customer, the customer may waive the requirement that change orders be in writing.  The customer may do this in writing or by his conduct.  By orally directing and authorizing the work of a contractor, the Washington courts have held that the customer has waived the contractual requirement that change orders be written in order to be valid and binding.<p>'
questions[9]='Whether or not additional work was actually not foreseen by the contractor is not relevant.  The test is whether or not the contractor could and therefore should have foreseen the problems which occurred subsequent to contract formation which led to the additional work for which costs were incurred and for which the contractor wants the customer to pay for.<p>'
questions[10]='A spouse\'s signature is not required on a construction contract.  Washington is a community property state.  Either spouse may manage or control community property with limited exceptions (RCW 26.16.030) which do not apply to construction contracts.<p>'

/////Don't edit beyond here//////////////////////////

function gradeit(){
var incorrect=null
for (q=1;q<=totalquestions;q++){
	var thequestion=eval("document.myquiz.question"+q)
	for (c=0;c<thequestion.length;c++){
		if (thequestion[c].checked==true)
		actualchoices[q]=thequestion[c].value
		}
		
	if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice
		if (incorrect==null)
		incorrect=q
		else
		incorrect+="/"+q
		}
	}

if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("Your browser does not accept cookies. Please adjust your browser settings.")
else
window.location="contracts_quiz_results.html"
}

