function validate(formName){
	//alert("formName"+formName);
	
	//prasna form validations
	if(formName == 'education1'){
		return education1();
	}else if(formName == 'education2'){
		return education2();
	}else if(formName == 'education3'){
		return education3();
	}else if(formName == 'education4'){
		return education4();
	}else if(formName == 'family1'){
		return family1();
	}else if(formName == 'family2'){
		return family2();
	}else if(formName == 'family3'){
		return family3();
	}else if(formName == 'family4'){
		return family4();
	}else if(formName == 'general'){
		return general();
	}else if(formName == 'health1'){
		return health1();
	}else if(formName == 'health2'){
		return health2();
	}else if(formName == 'job1'){
		return job1();
	}else if(formName == 'job2'){
		return job2();
	}else if(formName == 'job3'){
		return job3();
	}else if(formName == 'job4'){
		return job4();
	}else if(formName == 'job5'){
		return job5();
	}else if(formName == 'job6'){
		return job6();
	}else if(formName == 'property1'){
		return property1();
	}else if(formName == 'property2'){
		return property2();
	}else if(formName == 'property3'){
		return property3();
	}else if(formName == 'vivah1'){
		return vivah1();
	}else if(formName == 'vivah2'){
		return vivah2();
	}else if(formName == 'vivah3'){
		return vivah3();
	}else if(formName == 'vivah4'){
		return vivah4();
	}
	
}


//*************************************************************************************
//******************** EDUCATION1 *****************************************************
//*************************************************************************************
function education1(){
	if (document.education1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.education1.firstname.focus();
		return (false);
	}
	if (document.education1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.education1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.education1.gender.length;  i++)
	{
		if (document.education1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.education1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.education1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.education1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.education1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.education1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.education1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.education1.am_pm.focus();
		return (false);
	}
	if (document.education1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.education1.city.focus();
		return (false);
	}
	if (document.education1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.education1.nearcity.focus();
		return (false);
	}
	if (document.education1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.education1.country.focus();
		return (false);
	}
	if (document.education1.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.education1.currentcountry.focus();
		return (false);
	}
	if (document.education1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.education1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.education1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.education1.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** EDUCATION2 *****************************************************
//*************************************************************************************
function education2(){
	if (document.education2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.education2.firstname.focus();
		return (false);
	}
	if (document.education2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.education2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.education2.gender.length;  i++)
	{
		if (document.education2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.education2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.education2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.education2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.education2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.education2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.education2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.education2.am_pm.focus();
		return (false);
	}
	if (document.education2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.education2.city.focus();
		return (false);
	}
	if (document.education2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.education2.nearcity.focus();
		return (false);
	}
	if (document.education2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.education2.country.focus();
		return (false);
	}
	if (document.education2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.education2.currentcountry.focus();
		return (false);
	}
	if (document.education2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.education2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.education2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.education2.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** EDUCATION3 *****************************************************
//*************************************************************************************
function education3(){
	if (document.education3.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.education3.firstname.focus();
		return (false);
	}
	if (document.education3.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.education3.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.education3.gender.length;  i++)
	{
		if (document.education3.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.education3.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.education3.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.education3.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.education3.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.education3.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.education3.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.education3.am_pm.focus();
		return (false);
	}
	if (document.education3.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.education3.city.focus();
		return (false);
	}
	if (document.education3.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.education3.nearcity.focus();
		return (false);
	}
	if (document.education3.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.education3.country.focus();
		return (false);
	}
	if (document.education3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.education3.currentcountry.focus();
		return (false);
	}
	if (document.education3.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.education3.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.education3.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.education3.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** EDUCATION4 *****************************************************
//*************************************************************************************
function education4(){
	if (document.education4.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.education4.firstname.focus();
		return (false);
	}
	if (document.education4.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.education4.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.education4.gender.length;  i++)
	{
		if (document.education4.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.education4.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.education4.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.education4.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.education4.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.education4.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.education4.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.education4.am_pm.focus();
		return (false);
	}
	if (document.education4.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.education4.city.focus();
		return (false);
	}
	if (document.education4.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.education4.nearcity.focus();
		return (false);
	}
	if (document.education4.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.education4.country.focus();
		return (false);
	}
	if (document.education4.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.education4.currentcountry.focus();
		return (false);
	}
	if (document.education4.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.education4.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.education4.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.education4.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** FAMILY1 ********************************************************
//*************************************************************************************
function family1(){
	if (document.family1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.family1.firstname.focus();
		return (false);
	}
	if (document.family1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.family1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.family1.gender.length;  i++)
	{
		if (document.family1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.family1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.family1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.family1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.family1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.family1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.family1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.family1.am_pm.focus();
		return (false);
	}
	if (document.family1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.family1.city.focus();
		return (false);
	}
	if (document.family1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.family1.nearcity.focus();
		return (false);
	}
	if (document.family1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.family1.country.focus();
		return (false);
	}
	if (document.family1.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.family1.currentcountry.focus();
		return (false);
	}
	if (document.family1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.family1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.family1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.family1.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** FAMILY2 ********************************************************
//*************************************************************************************
function family2(){
	if (document.family2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.family2.firstname.focus();
		return (false);
	}
	if (document.family2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.family2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.family2.gender.length;  i++)
	{
		if (document.family2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.family2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.family2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.family2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.family2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.family2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.family2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.family2.am_pm.focus();
		return (false);
	}
	if (document.family2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.family2.city.focus();
		return (false);
	}
	if (document.family2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.family2.nearcity.focus();
		return (false);
	}
	if (document.family2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.family2.country.focus();
		return (false);
	}
	if (document.family2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.family2.currentcountry.focus();
		return (false);
	}
	if (document.family2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.family2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.family2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.family2.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** FAMILY3 ********************************************************
//*************************************************************************************
function family3(){
	if (document.family3.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.family3.firstname.focus();
		return (false);
	}
	if (document.family3.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.family3.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.family3.gender.length;  i++)
	{
		if (document.family3.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.family3.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.family3.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.family3.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.family3.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.family3.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.family3.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.family3.am_pm.focus();
		return (false);
	}
	if (document.family3.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.family3.city.focus();
		return (false);
	}
	if (document.family3.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.family3.nearcity.focus();
		return (false);
	}
	if (document.family3.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.family3.country.focus();
		return (false);
	}
	if (document.family3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.family3.currentcountry.focus();
		return (false);
	}
	if (document.family3.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.family3.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.family3.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.family3.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** FAMILY4 ********************************************************
//*************************************************************************************
function family4(){
	if (document.family4.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.family4.firstname.focus();
		return (false);
	}
	if (document.family4.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.family4.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.family4.gender.length;  i++)
	{
		if (document.family4.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.family4.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.family4.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.family4.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.family4.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.family4.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.family4.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.family4.am_pm.focus();
		return (false);
	}
	if (document.family4.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.family4.city.focus();
		return (false);
	}
	if (document.family4.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.family4.nearcity.focus();
		return (false);
	}
	if (document.family4.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.family4.country.focus();
		return (false);
	}
	if (document.family4.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.family4.currentcountry.focus();
		return (false);
	}
	if (document.family4.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.family4.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.family4.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.family4.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** OWN QUESTION ***************************************************
//*************************************************************************************
function general(){
	if (document.general.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.general.firstname.focus();
		return (false);
	}
	if (document.general.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.general.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.general.gender.length;  i++)
	{
		if (document.general.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.general.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.general.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.general.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.general.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.general.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.general.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.general.am_pm.focus();
		return (false);
	}
	if (document.general.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.general.city.focus();
		return (false);
	}
	if (document.general.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.general.nearcity.focus();
		return (false);
	}
	if (document.general.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.general.country.focus();
		return (false);
	}
	if (document.general.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.general.currentcountry.focus();
		return (false);
	}
	if (document.general.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.general.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.general.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.general.email_id.focus();
		return (false);
	}
	if (document.general.question.value == "")
	{
		alert("Please enter your Question.");
		document.general.question.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** HEALTH1 ********************************************************
//*************************************************************************************
function health1(){
	if (document.health1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.health1.firstname.focus();
		return (false);
	}
	if (document.health1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.health1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.health1.gender.length;  i++)
	{
		if (document.health1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.health1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.health1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.health1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.health1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.health1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.health1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.health1.am_pm.focus();
		return (false);
	}
	if (document.health1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.health1.city.focus();
		return (false);
	}
	if (document.health1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.health1.nearcity.focus();
		return (false);
	}
	if (document.health1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.health1.country.focus();
		return (false);
	}
	if (document.health1.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.health1.currentcountry.focus();
		return (false);
	}
	if (document.health1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.health1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.health1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.health1.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** HEALTH2 ********************************************************
//*************************************************************************************
function health2(){
	if (document.health2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.health2.firstname.focus();
		return (false);
	}
	if (document.health2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.health2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.health2.gender.length;  i++)
	{
		if (document.health2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.health2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.health2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.health2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.health2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.health2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.health2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.health2.am_pm.focus();
		return (false);
	}
	if (document.health2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.health2.city.focus();
		return (false);
	}
	if (document.health2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.health2.nearcity.focus();
		return (false);
	}
	if (document.health2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.health2.country.focus();
		return (false);
	}
	if (document.health2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.health2.currentcountry.focus();
		return (false);
	}
	if (document.health2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.health2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.health2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.health2.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** JOB1 ***********************************************************
//*************************************************************************************
function job1(){
	if (document.job1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job1.firstname.focus();
		return (false);
	}
	if (document.job1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job1.gender.length;  i++)
	{
		if (document.job1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job1.am_pm.focus();
		return (false);
	}
	if (document.job1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job1.city.focus();
		return (false);
	}
	if (document.job1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job1.nearcity.focus();
		return (false);
	}
	if (document.job1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job1.country.focus();
		return (false);
	}
	if (document.health3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.health3.currentcountry.focus();
		return (false);
	}
	if (document.job1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job1.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** JOB2 ***********************************************************
//*************************************************************************************
function job2(){
	if (document.job2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job2.firstname.focus();
		return (false);
	}
	if (document.job2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job2.gender.length;  i++)
	{
		if (document.job2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job2.am_pm.focus();
		return (false);
	}
	if (document.job2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job2.city.focus();
		return (false);
	}
	if (document.job2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job2.nearcity.focus();
		return (false);
	}
	if (document.job2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job2.country.focus();
		return (false);
	}
	if (document.job2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.job2.currentcountry.focus();
		return (false);
	}
	if (document.job2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job2.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** JOB3 ***********************************************************
//*************************************************************************************
function job3(){
	if (document.job3.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job3.firstname.focus();
		return (false);
	}
	if (document.job3.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job3.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job3.gender.length;  i++)
	{
		if (document.job3.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job3.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job3.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job3.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job3.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job3.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job3.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job3.am_pm.focus();
		return (false);
	}
	if (document.job3.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job3.city.focus();
		return (false);
	}
	if (document.job3.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job3.nearcity.focus();
		return (false);
	}
	if (document.job3.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job3.country.focus();
		return (false);
	}
	if (document.job3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.job3.currentcountry.focus();
		return (false);
	}
	if (document.job3.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job3.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job3.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job3.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** JOB4 ***********************************************************
//*************************************************************************************
function job4(){
	if (document.job4.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job4.firstname.focus();
		return (false);
	}
	if (document.job4.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job4.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job4.gender.length;  i++)
	{
		if (document.job4.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job4.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job4.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job4.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job4.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job4.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job4.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job4.am_pm.focus();
		return (false);
	}
	if (document.job4.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job4.city.focus();
		return (false);
	}
	if (document.job4.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job4.nearcity.focus();
		return (false);
	}
	if (document.job4.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job4.country.focus();
		return (false);
	}
	if (document.job4.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.job4.currentcountry.focus();
		return (false);
	}
	if (document.job4.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job4.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job4.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job4.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** JOB5 ***********************************************************
//*************************************************************************************
function job5(){
	if (document.job5.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job5.firstname.focus();
		return (false);
	}
	if (document.job5.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job5.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job5.gender.length;  i++)
	{
		if (document.job5.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job5.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job5.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job5.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job5.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job5.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job5.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job5.am_pm.focus();
		return (false);
	}
	if (document.job5.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job5.city.focus();
		return (false);
	}
	if (document.job5.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job5.nearcity.focus();
		return (false);
	}
	if (document.job5.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job5.country.focus();
		return (false);
	}
	if (document.job5.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.job5.currentcountry.focus();
		return (false);
	}
	if (document.job5.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job5.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job5.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job5.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** JOB6 ***********************************************************
//*************************************************************************************
function job6(){
	if (document.job6.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.job6.firstname.focus();
		return (false);
	}
	if (document.job6.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.job6.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.job6.gender.length;  i++)
	{
		if (document.job6.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.job6.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.job6.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.job6.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.job6.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.job6.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.job6.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.job6.am_pm.focus();
		return (false);
	}
	if (document.job6.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.job6.city.focus();
		return (false);
	}
	if (document.job6.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.job6.nearcity.focus();
		return (false);
	}
	if (document.job6.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.job6.country.focus();
		return (false);
	}
	if (document.job6.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.job6.currentcountry.focus();
		return (false);
	}
	if (document.job6.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.job6.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.job6.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.job6.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** PROPERTY1 ******************************************************
//*************************************************************************************
function property1(){
	if (document.property1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.property1.firstname.focus();
		return (false);
	}
	if (document.property1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.property1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.property1.gender.length;  i++)
	{
		if (document.property1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.property1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.property1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.property1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.property1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.property1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.property1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.property1.am_pm.focus();
		return (false);
	}
	if (document.property1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.property1.city.focus();
		return (false);
	}
	if (document.property1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.property1.nearcity.focus();
		return (false);
	}
	if (document.property1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.property1.country.focus();
		return (false);
	}
	if (document.property1.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.property1.currentcountry.focus();
		return (false);
	}
	if (document.property1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.property1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.property1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.property1.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** PROPERTY2 ******************************************************
//*************************************************************************************
function property2(){
	if (document.property2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.property2.firstname.focus();
		return (false);
	}
	if (document.property2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.property2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.property2.gender.length;  i++)
	{
		if (document.property2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.property2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.property2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.property2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.property2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.property2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.property2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.property2.am_pm.focus();
		return (false);
	}
	if (document.property2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.property2.city.focus();
		return (false);
	}
	if (document.property2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.property2.nearcity.focus();
		return (false);
	}
	if (document.property2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.property2.country.focus();
		return (false);
	}
	if (document.property2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.property2.currentcountry.focus();
		return (false);
	}
	if (document.property2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.property2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.property2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.property2.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** PROPERTY3 ******************************************************
//*************************************************************************************
function property3(){
	if (document.property3.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.property3.firstname.focus();
		return (false);
	}
	if (document.property3.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.property3.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.property3.gender.length;  i++)
	{
		if (document.property3.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.property3.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.property3.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.property3.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.property3.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.property3.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.property3.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.property3.am_pm.focus();
		return (false);
	}
	if (document.property3.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.property3.city.focus();
		return (false);
	}
	if (document.property3.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.property3.nearcity.focus();
		return (false);
	}
	if (document.property3.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.property3.country.focus();
		return (false);
	}
	if (document.property3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.property3.currentcountry.focus();
		return (false);
	}
	if (document.property3.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.property3.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.property3.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.property3.email_id.focus();
		return (false);
	}
}


//*************************************************************************************
//******************** VIVAH1 *********************************************************
//*************************************************************************************
function vivah1(){
	if (document.vivah1.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.vivah1.firstname.focus();
		return (false);
	}
	if (document.vivah1.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.vivah1.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.vivah1.gender.length;  i++)
	{
		if (document.vivah1.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.vivah1.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.vivah1.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.vivah1.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.vivah1.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.vivah1.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah1.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.vivah1.am_pm.focus();
		return (false);
	}
	if (document.vivah1.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.vivah1.city.focus();
		return (false);
	}
	if (document.vivah1.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.vivah1.nearcity.focus();
		return (false);
	}
	if (document.vivah1.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.vivah1.country.focus();
		return (false);
	}
	if (document.vivah1.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.vivah1.currentcountry.focus();
		return (false);
	}
	if (document.vivah1.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.vivah1.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.vivah1.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.vivah1.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** VIVAH2 *********************************************************
//*************************************************************************************
function vivah2(){
	if (document.vivah2.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.vivah2.firstname.focus();
		return (false);
	}
	if (document.vivah2.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.vivah2.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.vivah2.gender.length;  i++)
	{
		if (document.vivah2.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.vivah2.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.vivah2.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.vivah2.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.vivah2.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.vivah2.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah2.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.vivah2.am_pm.focus();
		return (false);
	}
	if (document.vivah2.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.vivah2.city.focus();
		return (false);
	}
	if (document.vivah2.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.vivah2.nearcity.focus();
		return (false);
	}
	if (document.vivah2.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.vivah2.country.focus();
		return (false);
	}
	if (document.vivah2.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.vivah2.currentcountry.focus();
		return (false);
	}
	if (document.vivah2.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.vivah2.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.vivah2.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.vivah2.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** VIVAH3 *********************************************************
//*************************************************************************************
function vivah3(){
	if (document.vivah3.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.vivah3.firstname.focus();
		return (false);
	}
	if (document.vivah3.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.vivah3.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.vivah3.gender.length;  i++)
	{
		if (document.vivah3.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.vivah3.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.vivah3.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.vivah3.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.vivah3.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.vivah3.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah3.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.vivah3.am_pm.focus();
		return (false);
	}
	if (document.vivah3.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.vivah3.city.focus();
		return (false);
	}
	if (document.vivah3.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.vivah3.nearcity.focus();
		return (false);
	}
	if (document.vivah3.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.vivah3.country.focus();
		return (false);
	}
	if (document.vivah3.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.vivah3.currentcountry.focus();
		return (false);
	}
	if (document.vivah3.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.vivah3.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.vivah3.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.vivah3.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** VIVAH4 *********************************************************
//*************************************************************************************
function vivah4(){
	if (document.vivah4.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.vivah4.firstname.focus();
		return (false);
	}
	if (document.vivah4.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.vivah4.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.vivah4.gender.length;  i++)
	{
		if (document.vivah4.gender[i].checked)
			radioSelected = true;
		}
	if (!radioSelected)
	{
		alert("Please select the Gender");
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.vivah4.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.vivah4.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.vivah4.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.vivah4.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.vivah4.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.vivah4.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.vivah4.am_pm.focus();
		return (false);
	}
	if (document.vivah4.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.vivah4.city.focus();
		return (false);
	}
	if (document.vivah4.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.vivah4.nearcity.focus();
		return (false);
	}
	if (document.vivah4.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.vivah4.country.focus();
		return (false);
	}
	if (document.vivah4.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.vivah4.currentcountry.focus();
		return (false);
	}
	if (document.vivah4.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.vivah4.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.vivah4.email_id.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
			if (EmailAt && EmailPeriod)
				break;
			if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true;
			break;
		}
	}
	if (!EmailValid)
	{
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		document.vivah4.email_id.focus();
		return (false);
	}
}
