// JavaScript Document


//#############Validates required fields####################
function isReady(form){

if (form.Name.value == "") {
			alert("Please enter your name to continue.")
			return false
			}			

if (form.PostCode.value == "") {
				alert("Please enter your postcode to continue")
				return false
			}	


if (form.Mobile.value == "") {
			alert("Please enter your mobile number to continue.")
			return false
			}


if (form.Email.value == "") {
				alert("Please enter your email address to continue")
				return false
			}
			
if (form.Info.value == "") {
				alert("Please provide some revelent information to continue")
				return false
			}			
			
			return oneChecked(form)
}
//##########Validates Checkbox###############
function oneChecked(form)
   {
   for (i=0; i<form.Position.length; i++)
      {
      if (form.Position[i].type == "checkbox")
         {
         if (form.Position[i].checked){
            return true;
            }
         }
      }
   alert("You must check at least one of the four boxes to indicate which type of position you are offering.");
   return false;
   }
//#########Sets focus on availabilty field##############
function setFocus() {
  document.ImpClient.Name.focus();
}
