function checkWholeForm(form) {
	
    var why = "";
    why += checkBoxChecked(document.getElementById('AssumptionsAcceptance'), " Please tick the checkbox to confirm that you agree to all the statements on this page");

	 
if (why != "") {
       alert(""+why);
       return false;
    }
	else if(why == ""){
	return true;
	}
}



function isEmpty(strng, str){
var error = "";
  if (strng.length == 0){
     error = "-"+str+"\n";
  }
return error;	  
}

function checkDropdown(choice, str){
    var error = "";
	if (choice == "0"){
       error = "-"+str+"\n";
    }    
return error;
}

function radioChecked(radiobutton, str){
var error = "";
  for(i=0; i<radiobutton.length; i++){
 	 if(radiobutton[i].checked == true){
		 error = "";
		 break;
	 }
  	 else{
		 error = "-"+str+"\n";
	}
  }
return error;	  
}

function checkBoxChecked(checkbox, str){
    var error = "";
	if (!checkbox.checked){
       error = "-"+str+"\n";
    }    
return error;
}