function frm_validate()
{ 

	if (!document.logfrm.course_title.value.length)
	{
		alert("Course Title can not be left blank");
		document.logfrm.course_title.focus();
		return false;
	}
	
	if (!document.logfrm.txtStartDate.value.length)
	{
		alert("Start Date can not be left blank");
		document.logfrm.txtStartDate.focus();
		return false;
	}
	
	if (!document.logfrm.txtFinishDate.value.length)
	{
		alert("Finish Date can not be left blank");
		document.logfrm.txtFinishDate.focus();
		return false;
	}
	
	if (!document.logfrm.txtAdditionalOptions.value.length)
	{
		alert("Additional Options can not be left blank");
		document.logfrm.txtAdditionalOptions.focus();
		return false;
	}
	
	if (!document.logfrm.fee.value.length)
	{
		alert("Fee can not be left blank");
		document.logfrm.fee.focus();
		return false;
	}
    if (!document.logfrm.txtTitle.value.length)
	{
		alert("Title can not be left blank");
		document.logfrm.txtTitle.focus();
		return false;
	}
	if (!document.logfrm.txtSurname.value.length)
	{
		alert("Surname can not be left blank");
		document.logfrm.txtSurname.focus();
		return false;
	}
	if (!document.logfrm.txtForename.value.length)
	{
		alert("Forename can not be left blank");
		document.logfrm.txtForename.focus();
		return false;
	}
	if (!document.logfrm.txtDateofBirth.value.length)
	{
		alert("Date of Birth can not be left blank");
		document.logfrm.txtDateofBirth.focus();
		return false;
	}
	if (!document.logfrm.txtOrganisation.value.length)
	{
		alert("Organisation can not be left blank");
		document.logfrm.txtOrganisation.focus();
		return false;
	}
    if (!document.logfrm.txtJobTitle.value.length)
	{
		alert("Job Title can not be left blank");
		document.logfrm.txtJobTitle.focus();
		return false;
	}
	if (!document.logfrm.txtDepartmant.value.length)
	{
		alert("Departmant can not be left blank");
		document.logfrm.txtDepartmant.focus();
		return false;
	}
	if (!document.logfrm.txtAddress.value.length)
	{
		alert("Address can not be left blank");
		document.logfrm.txtAddress.focus();
		return false;
	}
	if (!document.logfrm.txtTown.value.length)
	{
		alert("Town can not be left blank");
		document.logfrm.txtTown.focus();
		return false;
	}
	if (!document.logfrm.txtCountry.value.length)
	{
		alert("Country can not be left blank");
		document.logfrm.admin_id.focus();
		return false;
	}

	if (!document.logfrm.txtPostcode.value.length)
	{
		alert("Postcode can not be left blank");
		document.logfrm.txtPostcode.focus();
		return false;
	}
	if (!document.logfrm.txtTelephoneDelegate.value.length)
	{
		alert("Telephone Delegate can not be left blank");
		document.logfrm.txtTelephoneDelegate.focus();
		return false;
	}
	if (!document.logfrm.txtMobile.value.length)
	{
		alert("Mobile can not be left blank");
		document.logfrm.txtMobile.focus();
		return false;
	}
	if (!document.logfrm.txtEmail.value.length)
	{
		alert("Email can not be left blank");
		document.logfrm.txtEmail.focus();
		return false;
	}
	if (!document.logfrm.txtFax.value.length)
	{
		alert("Fax can not be left blank");
		document.logfrm.txtFax.focus();
		return false;
	}
	if (!document.logfrm.txtApprovingManagersName.value.length)
	{
		alert("Approving Managers Name can not be left blank");
		document.logfrm.txtApprovingManagersName.focus();
		return false;
	}
	if (!document.logfrm.txtApprovingManagersTel.value.length)
	{
		alert("ApprovingManagersTel can not be left blank");
		document.logfrm.txtApprovingManagersTel.focus();
		return false;
	}
	if (!document.logfrm.txtFundingInformation.value.length)
	{
		alert("Funding Information can not be left blank");
		document.logfrm.txtFundingInformation.focus();
		return false;
	}
	if (!document.logfrm.txtContactName.value.length)
	{
		alert("Contact Name can not be left blank");
		document.logfrm.txtContactName.focus();
		return false;
	}
	if (!document.logfrm.txtTelephone.value.length)
	{
		alert("Telephone can not be left blank");
		document.logfrm.txtTelephone.focus();
		return false;
	}
	return true;
}