function verifycheckbox(f)
{
    var empty_fields = "";
    var errors = "";

    for(var i = 0; i < f.length; i++) {
        var e = f.elements[i];
		
		if (e.name == "chkTerms_1") {
			if (e.checked == false) {
				errors += "\n please confirm you read and understand the key points ";
			break			
			}
		}
		if (e.name == "chkTerms_2") {
			if (e.checked == false) {
				errors += "\n please confirm you meet these eligibility criteria";
			break			
			}
		}
		if (e.name == "chkTerms_3") {
			if (e.checked == false) {
				errors += "\nplease confirm read and understand the health and fitness points ";
			break			
			}
		}
		if (e.name == "chkTerms_4") {
			if (e.checked == false) {
				errors += "\n please confirm you read and understand the selection criteria ";
			break			
			}
		}
		if (e.name == "chkTerms_5") {
			if (e.checked == false) {
				errors += "\n please confirm you read and understand the Financial Assistance criteria above ";
			break			
			}
		}
		if (e.name == "chkTerms_6") {
			if (e.checked == false) {
				errors += "\n please confirm you read and understand my travel responsibilities above";
			break			
			}
		}
		if (e.name == "chkTerms") {
			if (e.checked == false) {
				errors += "\n please confirm you read and understand terms and conditions as stated above";
			break			
			}
		}
    }

    // Now, if there were any errors, display the messages, and return false to prevent the form from being submitted.  Otherwise return true.
    if (!empty_fields && !errors) return true;
	    errors;
    	alert(errors);
    return false;
}

function changecolor1(){
var e = document.getElementById('chkTerm_1');
	if (e.checked == false) {
	document.getElementById('div_1').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_1').style.backgroundColor='#D6E8F0';
	}
}
function changecolor2(){
var e = document.getElementById('chkTerm_2');
	if (e.checked == false) {
	document.getElementById('div_2').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_2').style.backgroundColor='#D6E8F0';
	}
}

function changecolor3(){
var e = document.getElementById('chkTerm_3');
	if (e.checked == false) {
	document.getElementById('div_3').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_3').style.backgroundColor='#D6E8F0';
	}
}

function changecolor4(){
var e = document.getElementById('chkTerm_4');
	if (e.checked == false) {
	document.getElementById('div_4').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_4').style.backgroundColor='#D6E8F0';
	}
}

function changecolor5(){
var e = document.getElementById('chkTerm_5');
	if (e.checked == false) {
	document.getElementById('div_5').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_5').style.backgroundColor='#D6E8F0';
	}
}

function changecolor6(){
var e = document.getElementById('chkTerm_6');
	if (e.checked == false) {
	document.getElementById('div_6').style.backgroundColor='#FFFFFF';		
	}else{

	document.getElementById('div_6').style.backgroundColor='#D6E8F0';
	}
}





