// $Id$
// $HeadURL$
function set()
{
	if (document.dataform.your_name.value.length == 0)
	 {
		alert ("Kindly enter your name.");
		document.dataform.your_name.focus();
		return false;
	}
	if (document.dataform.dobdays.selectedIndex == 0 || document.dataform.dobmonth.selectedIndex == 0 || document.dataform.dobyears.selectedIndex == 0)
	{
		alert('Kindly Fill the Correct Date of Birth.');
		if (document.dataform.dobyears.selectedIndex == 0)
		{
			document.dataform.dobyears.focus();
		}
		if (document.dataform.dobmonth.selectedIndex == 0)
		{
			document.dataform.dobmonth.focus();
		}
		if (document.dataform.dobdays.selectedIndex == 0)
		{
			document.dataform.dobdays.focus();
		}
		return false;
	}

	if (document.dataform.cityob.value.length == 0)
	{
		alert('Kindly Fill the City of Birth.');
		document.dataform.cityob.focus();
		return false;
	}
	if (document.dataform.stateob.value.length == 0)
	{
		alert('Kindly Fill the State of Birth.');
		document.dataform.stateob.focus();
		return false;
	}

	if (document.dataform.countryob.selectedIndex == "")
	{
		alert('Kindly Fill the Contry of Birth.');
		document.dataform.countryob.focus();
		return false;
	}
	if (document.dataform.sex[0].checked == false && document.dataform.sex[1].checked == false)
	{
		alert('Kindly Fill the Sex.');
		document.dataform.sex[0].focus();
		return false;
	}
	if (document.dataform.emp_cat[0].checked == false && document.dataform.emp_cat[1].checked == false && document.dataform.emp_cat[2].checked == false)
	{
		alert('Kindly Fill the Employment category.');
		document.dataform.emp_cat[0].focus();
		return false;
	}
	if (document.dataform.emp_stat[0].checked == false && document.dataform.emp_stat[1].checked == false && document.dataform.emp_stat[2].checked == false)
	{
		alert('Kindly Fill the Employment Status.');
		document.dataform.emp_stat[0].focus();
		return false;
	}
	if (document.dataform.maritial_stat[0].checked == false && document.dataform.maritial_stat[1].checked == false && document.dataform.maritial_stat[2].checked == false && document.dataform.maritial_stat[3].checked == false && document.dataform.maritial_stat[4].checked == false)
	{
		alert('Kindly Fill the Marital Status.');
		document.dataform.maritial_stat[0].focus();
		return false;
	}
	return true;
}

