// JavaScript Document
function validation_rec()
{
	var success=1;
	if(document.rec.company_name.value=="")
	{
		alert("Company Name is Empty");
		document.rec.company_name.focus();
		return false;
	}
	if(document.rec.description.value=="")
	{
		alert("Organization Description is Empty");
		document.rec.description.focus();
		return false;
	}
	if(document.rec.address.value=="")
	{
		alert("Organization Address is Empty");
		document.rec.address.focus();
		return false;
	}
	if(document.rec.contact_persion.value=="")
	{
		alert("Contact Person is Empty");
		document.rec.contact_persion.focus();
		return false;
	}
	if(document.rec.phone_no.value=="")
	{
		alert("Contact Person Phone is Empty");
		document.rec.phone_no.focus();
		return false;
	}
	if(document.rec.process.value==0)
	{
		alert("Select One process of recruitment");
		document.rec.process.focus();
		return false;
	}
	if(document.rec.job_title.value=="")
	{
		alert("Job Title is Empty");
		document.rec.job_title.focus();
		return false;
	}
	if(document.rec.no_of_employee.value=="")
	{
		alert("Please Enter The no of Employee");
		document.rec.no_of_employee.focus();
		return false;
	}
	if(document.rec.job_spec.value=="")
	{
		alert("Please Enter Requirements and Qualifications");
		document.rec.job_spec.focus();
		return false;
	}

	return true;	
}

function validation_appln()
{
	if(document.application.first_name.value=="")
	{
		alert("First Name is Empty");
		document.application.first_name.focus();
		return false;

	}
	if(document.application.last_name.value=="")
	{
		alert("Last Name is Empty");
		document.application.last_name.focus();
		return false;
	}
	if(document.application.day.value==0 || document.application.month.value==0 || document.application.year.value==0)
	{
		alert("Date of birth is Empty");
		document.application.day.focus();
		return false;

	}
	if(document.application.permanent_address.value=="")
	{
		alert("Address is Empty");
		document.application.permanent_address.focus();
		return false;
	}
	if(document.application.telephone_home.value=="")
	{
		alert("Telephone is Empty");
		document.application.telephone_home.focus();
		return false;
	}
	if(document.application.email_address.value=="")
	{
		alert("Email is Empty");
		document.application.email_address.focus();
		return false;
	}
	if(document.application.password.value=="")
	{
		alert("Password is Empty");
		document.application.password.focus();
		return false;
	}
	if(document.application.education.value=="")
	{
		alert("Education Details is Empty");
		document.application.education.focus();
		return false;
	}
	if(document.application.languages.value=="")
	{
		alert("Language Details is Empty");
		document.application.languages.focus();
		return false;
	}
	if(document.application.computer_knowledge.value==0)
	{
		alert("Select an option");
		document.application.computer_knowledge.focus();
		return false;
	}
	if(document.application.awards.value=="")
	{
		alert("Please Enter Some Details About Awards and Recognition");
		document.application.awards.focus();
		return false;
	}
	if(document.application.expected_salary.value=="")
	{
		alert("Expected Salary is Empty");
		document.application.expected_salary.focus();
		return false;
	}
	if(document.application.location.value=="")
	{
		alert("Duty Station Preferred is Empty");
		document.application.location.focus();
		return false;
	}
}

function chk_mail()
{
	if(document.form1.from.value=="")
	{
		alert("Please Enter the From Field");
		document.form1.from.focus();
		return false;
	}
	
	if(document.form1.toemail.value=="")
	{
		alert("Please Enter the To Field");
		document.form1.toemail.focus();
		return false;
	}
	return true;
}

function testimonial()
{
	if(document.form1.full_name.value=="")
	{
		alert("Please Enter Full Name");
		document.form1.full_name.focus();
		return false;
	}
	if(document.form1.email.value=="")
	{
		alert("Please Enter Email");
		document.form1.email.focus();
		return false;
	}
	if(document.form1.description.value=="")
	{
		alert("Please Enter Your Details");
		document.form1.description.focus();
		return false;
	}
	return true();
}
function queries()
{
	if(document.form1.full_name.value=="")
	{
		alert("Please Enter Full Name");
		document.form1.full_name.focus();
		return false;
	}
	if(document.form1.email.value=="")
	{
		alert("Please Enter Email");
		document.form1.email.focus();
		return false;
	}
	if(document.form1.description.value=="")
	{
		alert("Please Enter Your Details");
		document.form1.description.focus();
		return false;
	}
	return true();
}

