function setAmount(formName){
	if(formName == 'charity'){
		return charity();
	}
}

function charity(){
	var pymtRadioSelected = false;
	var pymtType = "";
	for (var i = 0;  i < document.charity.pymt_type.length;  i++)
	{
		if (document.charity.pymt_type[i].checked){
			pymtRadioSelected = true;
			if(i == 1){
				pymtType = "Paying amount for services";
			}else if(i == 2){
				pymtType = "Donating for charity";
			}
		}
	}
	if (!pymtRadioSelected)
	{
		alert("Please select a Payment type");
		return (false);
	}
	
	if (document.charity.pymtAmount.value == "")
	{
		alert("Please enter Payment Amount.");
		document.charity.pymtAmount.focus();
		return (false);
	}
	//check amount validity here
	document.charity.item_name.value = pymtType;
	document.charity.amount.value = document.charity.pymtAmount.value ;
}
	


function validate(formName){
	//alert("formName"+formName);
	
	if(formName == 'babynames'){
		return babynames();
	}else if(formName == 'horoscopematch'){
		return horoscopematch();
	}else if(formName == 'gethoroscope'){
		return gethoroscope();
	}else if(formName == 'knowluckygem'){
		return knowluckygem();
	}else if(formName == 'manglik'){
		return manglik();
	}else if(formName == 'yearPredictions'){
		return yearPredictions();
	}else if(formName == 'abroad'){
		return abroad();
	}else if(formName == 'babyreport'){
		return babyreport();
	}else if(formName == 'business'){
		return business();
	}else if(formName == 'career'){
		return career();
	}else if(formName == 'doshayoga'){
		return doshayoga();
	}else if(formName == 'health'){
		return health();
	}else if(formName == 'mrgprospects'){
		return mrgprospects();
	}else if(formName == 'sadhesati'){
		return sadhesati();
	}else if(formName == 'sarpa'){
		return sarpa();
	}else if(formName == 'kaalasarpa'){
		return kaalasarpa();
	}else if(formName == 'csection'){
		return csection();
	}else if(formName == 'namealterperson'){
		return namealterperson();
	}else if(formName == 'namealterbusiness'){
		return namealterbusiness();
	}
	
}


//*************************************************************************************
//******************** BABY NAMES *****************************************************
//*************************************************************************************
function babynames(){
	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.babynames.gender.length;  i++)
	{
		if (document.babynames.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.babynames.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.babynames.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babynames.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.babynames.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babynames.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.babynames.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babynames.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.babynames.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babynames.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.babynames.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.babynames.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.babynames.am_pm.focus();
		return (false);
	}
	if (document.babynames.city.value == "")
	{
		alert("Please enter City of Birth");
		document.babynames.city.focus();
		return (false);
	}
	if (document.babynames.nearcity.value == "")
	{
		alert("Please enter nearest City of Birth");
		document.babynames.nearcity.focus();
		return (false);
	}
	if (document.babynames.country.value == "")
	{
		alert("Please enter Country of Birth");
		document.babynames.country.focus();
		return (false);
	}
	if (document.babynames.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.babynames.currentcountry.focus();
		return (false);
	}
	if (document.babynames.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.babynames.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.babynames.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.babynames.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** HOROSCOPE MATCHING       ***************************************
//*************************************************************************************
function horoscopematch() {
	if (document.horoscopematch.b_firstname.value == "") {
		alert("Please enter bride's First Name");
		document.horoscopematch.b_firstname.focus();
		return (false);
	}
	if (document.horoscopematch.b_lastname.value == "") {
		alert("Please enter bride's Last Name");
		document.horoscopematch.b_lastname.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_month.selectedIndex <= 0) {
		alert("Please select valid Month.");
		document.horoscopematch.b_month.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_date.selectedIndex <= 0) {
		alert("Please select a valid Date.");
		document.horoscopematch.b_date.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_year.selectedIndex <= 0) {
		alert("Please select a valid Year.");
		document.horoscopematch.b_year.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_hour.selectedIndex <= 0) {
		alert("Please select valid Hours.");
		document.horoscopematch.b_hour.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_minutes.selectedIndex <= 0) {
		alert("Please select valid Minutes.");
		document.horoscopematch.b_minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.b_am_pm.selectedIndex <= 0) {
		alert("Please select either the time of birth as AM or PM.");
		document.horoscopematch.b_am_pm.focus();
		return (false);
	}
	if (document.horoscopematch.b_city.value == "") {
		alert("Please enter bride's City of Birth");
		document.horoscopematch.b_city.focus();
		return (false);
	}
	if (document.horoscopematch.b_nearcity.value == "") {
		alert("Please enter bride's nearest City of Birth");
		document.horoscopematch.b_nearcity.focus();
		return (false);
	}
	if (document.horoscopematch.b_country.value == "") {
		alert("Please enter bride's Country of Birth");
		document.horoscopematch.b_country.focus();
		return (false);
	}
	//GROOM DETAILS
	if (document.horoscopematch.g_firstname.value == "") {
		alert("Please enter groom's First Name");
		document.horoscopematch.g_firstname.focus();
		return (false);
	}
	if (document.horoscopematch.g_lastname.value == "") {
		alert("Please enter groom's Last Name");
		document.horoscopematch.g_lastname.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_month.selectedIndex <= 0) {
		alert("Please select valid Month.");
		document.horoscopematch.g_month.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_date.selectedIndex <= 0) {
		alert("Please select a valid Date.");
		document.horoscopematch.g_date.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_year.selectedIndex <= 0) {
		alert("Please select a valid Year.");
		document.horoscopematch.g_year.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_hour.selectedIndex <= 0) {
		alert("Please select valid Hours.");
		document.horoscopematch.g_hour.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_minutes.selectedIndex <= 0) {
		alert("Please select valid Minutes.");
		document.horoscopematch.g_minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.horoscopematch.g_am_pm.selectedIndex <= 0) {
		alert("Please select either the time of birth as AM or PM.");
		document.horoscopematch.g_am_pm.focus();
		return (false);
	}
	if (document.horoscopematch.g_city.value == "") {
		alert("Please enter groom's City of Birth");
		document.horoscopematch.g_city.focus();
		return (false);
	}
	if (document.horoscopematch.g_nearcity.value == "") {
		alert("Please enter groom's nearest City of Birth");
		document.horoscopematch.g_nearcity.focus();
		return (false);
	}
	if (document.horoscopematch.g_country.value == "") {
		alert("Please enter groom's Country of Birth");
		document.horoscopematch.g_country.focus();
		return (false);
	}
	if (document.horoscopematch.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.horoscopematch.currentcountry.focus();
		return (false);
	}
	if (document.horoscopematch.email_id.value == "") {
		alert("Please enter a value for the \"Email\" field.");
		document.horoscopematch.email_id.focus();
		return (false);
	}
	
	//  test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.horoscopematch.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.horoscopematch.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** GET HOROSCOPE    ***********************************************
//*************************************************************************************
function gethoroscope(){
	if (document.gethoroscope.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.gethoroscope.firstname.focus();
		return (false);
	}
	if (document.gethoroscope.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.gethoroscope.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.gethoroscope.gender.length;  i++)
	{
		if (document.gethoroscope.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.gethoroscope.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.gethoroscope.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.gethoroscope.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.gethoroscope.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.gethoroscope.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.gethoroscope.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.gethoroscope.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.gethoroscope.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.gethoroscope.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.gethoroscope.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.gethoroscope.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.gethoroscope.am_pm.focus();
		return (false);
	}
	if (document.gethoroscope.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.gethoroscope.city.focus();
		return (false);
	}
	if (document.gethoroscope.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.gethoroscope.nearcity.focus();
		return (false);
	}
	if (document.gethoroscope.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.gethoroscope.country.focus();
		return (false);
	}
	if (document.gethoroscope.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.gethoroscope.currentcountry.focus();
		return (false);
	}
	if (document.gethoroscope.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.gethoroscope.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.gethoroscope.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.gethoroscope.email_id.focus();
		return (false);
	}
}

//*************************************************************************************
//******************** KNOW YOUR LUCKY GEM ********************************************
//*************************************************************************************
function knowluckygem(){
	if (document.knowluckygem.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.knowluckygem.firstname.focus();
		return (false);
	}
	if (document.knowluckygem.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.knowluckygem.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.knowluckygem.gender.length;  i++)
	{
		if (document.knowluckygem.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.knowluckygem.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.knowluckygem.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.knowluckygem.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.knowluckygem.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.knowluckygem.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.knowluckygem.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.knowluckygem.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.knowluckygem.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.knowluckygem.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.knowluckygem.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.knowluckygem.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.knowluckygem.am_pm.focus();
		return (false);
	}
	if (document.knowluckygem.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.knowluckygem.city.focus();
		return (false);
	}
	if (document.knowluckygem.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.knowluckygem.nearcity.focus();
		return (false);
	}
	if (document.knowluckygem.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.knowluckygem.country.focus();
		return (false);
	}
	if (document.knowluckygem.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.knowluckygem.currentcountry.focus();
		return (false);
	}
	if (document.knowluckygem.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.knowluckygem.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.knowluckygem.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.knowluckygem.email_id.focus();
		return (false);
	}
}


//*************************************************************************************
//******************** MANGLIK DOSHA **************************************************
//*************************************************************************************
function manglik(){
	if (document.manglik.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.manglik.firstname.focus();
		return (false);
	}
	if (document.manglik.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.manglik.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.manglik.gender.length;  i++)
	{
		if (document.manglik.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.manglik.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.manglik.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.manglik.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.manglik.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.manglik.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.manglik.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.manglik.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.manglik.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.manglik.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.manglik.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.manglik.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.manglik.am_pm.focus();
		return (false);
	}
	if (document.manglik.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.manglik.city.focus();
		return (false);
	}
	if (document.manglik.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.manglik.nearcity.focus();
		return (false);
	}
	if (document.manglik.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.manglik.country.focus();
		return (false);
	}
	if (document.manglik.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.manglik.currentcountry.focus();
		return (false);
	}
	if (document.manglik.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.manglik.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.manglik.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.manglik.email_id.focus();
		return (false);
	}
}


//*************************************************************************************
//******************** ABROAD TRAVEL    ***********************************************
//*************************************************************************************
function abroad(){
	if (document.abroad.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.abroad.firstname.focus();
		return (false);
	}
	if (document.abroad.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.abroad.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.abroad.gender.length;  i++)
	{
		if (document.abroad.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.abroad.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.abroad.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.abroad.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.abroad.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.abroad.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.abroad.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.abroad.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.abroad.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.abroad.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.abroad.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.abroad.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.abroad.am_pm.focus();
		return (false);
	}
	if (document.abroad.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.abroad.city.focus();
		return (false);
	}
	if (document.abroad.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.abroad.nearcity.focus();
		return (false);
	}
	if (document.abroad.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.abroad.country.focus();
		return (false);
	}
	if (document.abroad.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.abroad.currentcountry.focus();
		return (false);
	}
	if (document.abroad.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.abroad.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.abroad.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.abroad.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** BABY REPORT *****************************************************
//*************************************************************************************
function babyreport(){
	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.babyreport.gender.length;  i++)
	{
		if (document.babyreport.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.babyreport.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.babyreport.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babyreport.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.babyreport.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babyreport.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.babyreport.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babyreport.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.babyreport.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.babyreport.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.babyreport.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.babyreport.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.babyreport.am_pm.focus();
		return (false);
	}
	if (document.babyreport.city.value == "")
	{
		alert("Please enter City of Birth");
		document.babyreport.city.focus();
		return (false);
	}
	if (document.babyreport.nearcity.value == "")
	{
		alert("Please enter nearest City of Birth");
		document.babyreport.nearcity.focus();
		return (false);
	}
	if (document.babyreport.country.value == "")
	{
		alert("Please enter Country of Birth");
		document.babyreport.country.focus();
		return (false);
	}
	if (document.babyreport.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.babyreport.currentcountry.focus();
		return (false);
	}
	if (document.babyreport.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.babyreport.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.babyreport.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.babyreport.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** BUSINESS    ***********************************************
//*************************************************************************************
function business(){
	if (document.business.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.business.firstname.focus();
		return (false);
	}
	if (document.business.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.business.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.business.gender.length;  i++)
	{
		if (document.business.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.business.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.business.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.business.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.business.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.business.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.business.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.business.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.business.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.business.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.business.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.business.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.business.am_pm.focus();
		return (false);
	}
	if (document.business.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.business.city.focus();
		return (false);
	}
	if (document.business.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.business.nearcity.focus();
		return (false);
	}
	if (document.business.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.business.country.focus();
		return (false);
	}
	if (document.business.qualification.value == "")
	{
		alert("Please enter Educational Qualifications ");
		document.business.qualification.focus();
		return (false);
	}
	if (document.business.currentoccupation.value == "")
	{
		alert("Please enter Present Occupation");
		document.business.currentoccupation.focus();
		return (false);
	}
	if (document.business.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.business.currentcountry.focus();
		return (false);
	}
	if (document.business.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.business.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.business.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.business.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** CAREER    ***********************************************
//*************************************************************************************
function career(){
	if (document.career.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.career.firstname.focus();
		return (false);
	}
	if (document.career.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.career.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.career.gender.length;  i++)
	{
		if (document.career.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.career.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.career.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.career.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.career.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.career.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.career.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.career.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.career.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.career.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.career.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.career.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.career.am_pm.focus();
		return (false);
	}
	if (document.career.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.career.city.focus();
		return (false);
	}
	if (document.career.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.career.nearcity.focus();
		return (false);
	}
	if (document.career.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.career.country.focus();
		return (false);
	}
	if (document.career.qualification.value == "")
	{
		alert("Please enter Educational Qualifications ");
		document.career.qualification.focus();
		return (false);
	}
	if (document.career.currentoccupation.value == "")
	{
		alert("Please enter Present Occupation");
		document.career.currentoccupation.focus();
		return (false);
	}
	if (document.career.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.career.currentcountry.focus();
		return (false);
	}
	if (document.career.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.career.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.career.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.career.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** DOSHA YOGA    ***********************************************
//*************************************************************************************
function doshayoga(){
	if (document.doshayoga.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.doshayoga.firstname.focus();
		return (false);
	}
	if (document.doshayoga.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.doshayoga.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.doshayoga.gender.length;  i++)
	{
		if (document.doshayoga.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.doshayoga.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.doshayoga.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.doshayoga.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.doshayoga.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.doshayoga.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.doshayoga.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.doshayoga.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.doshayoga.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.doshayoga.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.doshayoga.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.doshayoga.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.doshayoga.am_pm.focus();
		return (false);
	}
	if (document.doshayoga.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.doshayoga.city.focus();
		return (false);
	}
	if (document.doshayoga.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.doshayoga.nearcity.focus();
		return (false);
	}
	if (document.doshayoga.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.doshayoga.country.focus();
		return (false);
	}
	if (document.doshayoga.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.doshayoga.currentcountry.focus();
		return (false);
	}
	if (document.doshayoga.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.doshayoga.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.doshayoga.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.doshayoga.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** HEALTH    ***********************************************
//*************************************************************************************
function health(){
	if (document.health.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.health.firstname.focus();
		return (false);
	}
	if (document.health.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.health.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.health.gender.length;  i++)
	{
		if (document.health.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.health.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.health.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.health.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.health.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.health.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.health.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.health.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.health.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.health.am_pm.focus();
		return (false);
	}
	if (document.health.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.health.city.focus();
		return (false);
	}
	if (document.health.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.health.nearcity.focus();
		return (false);
	}
	if (document.health.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.health.country.focus();
		return (false);
	}
	if (document.health.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.health.currentcountry.focus();
		return (false);
	}
	if (document.health.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.health.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.health.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.health.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** MARRIAGE PROSPECTS  ********************************************
//*************************************************************************************
function mrgprospects() {
	if (document.mrgprospects.b_firstname.value == "") {
		alert("Please enter First Name");
		document.mrgprospects.b_firstname.focus();
		return (false);
	}
	if (document.mrgprospects.b_lastname.value == "") {
		alert("Please enter Last Name");
		document.mrgprospects.b_lastname.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_month.selectedIndex <= 0) {
		alert("Please select valid Month.");
		document.mrgprospects.b_month.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_date.selectedIndex <= 0) {
		alert("Please select a valid Date.");
		document.mrgprospects.b_date.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_year.selectedIndex <= 0) {
		alert("Please select a valid Year.");
		document.mrgprospects.b_year.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_hour.selectedIndex <= 0) {
		alert("Please select valid Hours.");
		document.mrgprospects.b_hour.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_minutes.selectedIndex <= 0) {
		alert("Please select valid Minutes.");
		document.mrgprospects.b_minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.b_am_pm.selectedIndex <= 0) {
		alert("Please select either the time of birth as AM or PM.");
		document.mrgprospects.b_am_pm.focus();
		return (false);
	}
	if (document.mrgprospects.b_city.value == "") {
		alert("Please enter City of Birth");
		document.mrgprospects.b_city.focus();
		return (false);
	}
	if (document.mrgprospects.b_nearcity.value == "") {
		alert("Please enter nearest City of Birth");
		document.mrgprospects.b_nearcity.focus();
		return (false);
	}
	if (document.mrgprospects.b_country.value == "") {
		alert("Please enter Country of Birth");
		document.mrgprospects.b_country.focus();
		return (false);
	}
	//GROOM DETAILS
	if (document.mrgprospects.g_firstname.value == "") {
		alert("Please enter First Name");
		document.mrgprospects.g_firstname.focus();
		return (false);
	}
	if (document.mrgprospects.g_lastname.value == "") {
		alert("Please enter Last Name");
		document.mrgprospects.g_lastname.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_month.selectedIndex <= 0) {
		alert("Please select valid Month.");
		document.mrgprospects.g_month.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_date.selectedIndex <= 0) {
		alert("Please select a valid Date.");
		document.mrgprospects.g_date.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_year.selectedIndex <= 0) {
		alert("Please select a valid Year.");
		document.mrgprospects.g_year.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_hour.selectedIndex <= 0) {
		alert("Please select valid Hours.");
		document.mrgprospects.g_hour.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_minutes.selectedIndex <= 0) {
		alert("Please select valid Minutes.");
		document.mrgprospects.g_minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.mrgprospects.g_am_pm.selectedIndex <= 0) {
		alert("Please select either the time of birth as AM or PM.");
		document.mrgprospects.g_am_pm.focus();
		return (false);
	}
	if (document.mrgprospects.g_city.value == "") {
		alert("Please enter City of Birth");
		document.mrgprospects.g_city.focus();
		return (false);
	}
	if (document.mrgprospects.g_nearcity.value == "") {
		alert("Please enter nearest City of Birth");
		document.mrgprospects.g_nearcity.focus();
		return (false);
	}
	if (document.mrgprospects.g_country.value == "") {
		alert("Please enter Country of Birth");
		document.mrgprospects.g_country.focus();
		return (false);
	}
	if (document.mrgprospects.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.mrgprospects.currentcountry.focus();
		return (false);
	}
	if (document.mrgprospects.email_id.value == "") {
		alert("Please enter a value for the \"Email\" field.");
		document.mrgprospects.email_id.focus();
		return (false);
	}
	
	//  test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.mrgprospects.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.mrgprospects.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** SADHE SATI    ***********************************************
//*************************************************************************************
function sadhesati(){
	if (document.sadhesati.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.sadhesati.firstname.focus();
		return (false);
	}
	if (document.sadhesati.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.sadhesati.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.sadhesati.gender.length;  i++)
	{
		if (document.sadhesati.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.sadhesati.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.sadhesati.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sadhesati.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.sadhesati.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sadhesati.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.sadhesati.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sadhesati.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.sadhesati.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sadhesati.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.sadhesati.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.sadhesati.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.sadhesati.am_pm.focus();
		return (false);
	}
	if (document.sadhesati.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.sadhesati.city.focus();
		return (false);
	}
	if (document.sadhesati.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.sadhesati.nearcity.focus();
		return (false);
	}
	if (document.sadhesati.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.sadhesati.country.focus();
		return (false);
	}
	if (document.sadhesati.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.sadhesati.currentcountry.focus();
		return (false);
	}
	if (document.sadhesati.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.sadhesati.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.sadhesati.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.sadhesati.email_id.focus();
		return (false);
	}
}
//*************************************************************************************
//******************** kaalasarpa DOSHA   ***********************************************
//*************************************************************************************
function kaalasarpa(){
	if (document.kaalasarpa.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.kaalasarpa.firstname.focus();
		return (false);
	}
	if (document.kaalasarpa.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.kaalasarpa.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.kaalasarpa.gender.length;  i++)
	{
		if (document.kaalasarpa.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.kaalasarpa.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.kaalasarpa.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.kaalasarpa.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.kaalasarpa.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.kaalasarpa.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.kaalasarpa.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.kaalasarpa.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.kaalasarpa.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.kaalasarpa.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.kaalasarpa.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.kaalasarpa.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.kaalasarpa.am_pm.focus();
		return (false);
	}
	if (document.kaalasarpa.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.kaalasarpa.city.focus();
		return (false);
	}
	if (document.kaalasarpa.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.kaalasarpa.nearcity.focus();
		return (false);
	}
	if (document.kaalasarpa.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.kaalasarpa.country.focus();
		return (false);
	}
	if (document.kaalasarpa.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.kaalasarpa.currentcountry.focus();
		return (false);
	}
	if (document.kaalasarpa.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.kaalasarpa.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.kaalasarpa.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.kaalasarpa.email_id.focus();
		return (false);
	}
}



//*************************************************************************************
//******************** KAALA SARPA DOSHA   ********************************************
//*************************************************************************************
function sarpa(){
	if (document.sarpa.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.sarpa.firstname.focus();
		return (false);
	}
	if (document.sarpa.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.sarpa.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.sarpa.gender.length;  i++)
	{
		if (document.sarpa.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.sarpa.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.sarpa.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sarpa.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.sarpa.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sarpa.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.sarpa.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sarpa.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.sarpa.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.sarpa.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.sarpa.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.sarpa.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.sarpa.am_pm.focus();
		return (false);
	}
	if (document.sarpa.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.sarpa.city.focus();
		return (false);
	}
	if (document.sarpa.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.sarpa.nearcity.focus();
		return (false);
	}
	if (document.sarpa.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.sarpa.country.focus();
		return (false);
	}
	if (document.sarpa.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.sarpa.currentcountry.focus();
		return (false);
	}
	if (document.sarpa.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.sarpa.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.sarpa.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.sarpa.email_id.focus();
		return (false);
	}
}



//*************************************************************************************
//******************** C-SECTION MUHURTHAM ********************************************
//*************************************************************************************
function csection(){
	if (document.csection.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.csection.firstname.focus();
		return (false);
	}
	if (document.csection.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.csection.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.csection.gender.length;  i++)
	{
		if (document.csection.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.csection.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.csection.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.csection.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.csection.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.csection.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.csection.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.csection.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.csection.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.csection.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.csection.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.csection.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.csection.am_pm.focus();
		return (false);
	}
	if (document.csection.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.csection.city.focus();
		return (false);
	}
	if (document.csection.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.csection.nearcity.focus();
		return (false);
	}
	if (document.csection.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.csection.country.focus();
		return (false);
	}
	if (document.csection.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.csection.currentcountry.focus();
		return (false);
	}
	if (document.csection.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.csection.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.csection.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.csection.email_id.focus();
		return (false);
	}
}


//*************************************************************************************
//******************** Name Alteration Person *****************************************
//*************************************************************************************
function namealterperson(){
	if (document.namealterperson.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.namealterperson.firstname.focus();
		return (false);
	}
	if (document.namealterperson.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.namealterperson.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.namealterperson.gender.length;  i++)
	{
		if (document.namealterperson.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.namealterperson.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.namealterperson.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterperson.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.namealterperson.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterperson.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.namealterperson.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterperson.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.namealterperson.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterperson.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.namealterperson.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterperson.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.namealterperson.am_pm.focus();
		return (false);
	}
	if (document.namealterperson.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.namealterperson.city.focus();
		return (false);
	}
	if (document.namealterperson.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.namealterperson.nearcity.focus();
		return (false);
	}
	if (document.namealterperson.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.namealterperson.country.focus();
		return (false);
	}
	if (document.namealterperson.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.namealterperson.currentcountry.focus();
		return (false);
	}
	if (document.namealterperson.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.namealterperson.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.namealterperson.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.namealterperson.email_id.focus();
		return (false);
	}
}


//*************************************************************************************
//******************** Name Alteration Business****************************************
//*************************************************************************************
function namealterbusiness(){
	if (document.namealterbusiness.firstname.value == "")
	{
		alert("Please enter your First Name");
		document.namealterbusiness.firstname.focus();
		return (false);
	}
	if (document.namealterbusiness.lastname.value == "")
	{
		alert("Please enter your Last Name");
		document.namealterbusiness.lastname.focus();
		return (false);
	}

	//  require at least one radio button be selected
	var radioSelected = false;
	for (var i = 0;  i < document.namealterbusiness.gender.length;  i++)
	{
		if (document.namealterbusiness.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.namealterbusiness.month.selectedIndex <= 0)
	{
		alert("Please select valid Month.");
		document.namealterbusiness.month.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterbusiness.date.selectedIndex <= 0)
	{
		alert("Please select a valid Date.");
		document.namealterbusiness.date.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterbusiness.year.selectedIndex <= 0)
	{
		alert("Please select a valid Year.");
		document.namealterbusiness.year.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterbusiness.hour.selectedIndex <= 0)
	{
		alert("Please select valid Hours.");
		document.namealterbusiness.hour.focus();
		return (false);
	}

	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterbusiness.minutes.selectedIndex <= 0)
	{
		alert("Please select valid Minutes.");
		document.namealterbusiness.minutes.focus();
		return (false);
	}
	//   check if the first drop down is selected, if so, invalid selection
	if (document.namealterbusiness.am_pm.selectedIndex <= 0)
	{
		alert("Please select either the time of birth as AM or PM.");
		document.namealterbusiness.am_pm.focus();
		return (false);
	}
	if (document.namealterbusiness.city.value == "")
	{
		alert("Please enter your City of Birth");
		document.namealterbusiness.city.focus();
		return (false);
	}
	if (document.namealterbusiness.nearcity.value == "")
	{
		alert("Please enter your nearest City of Birth");
		document.namealterbusiness.nearcity.focus();
		return (false);
	}
	if (document.namealterbusiness.country.value == "")
	{
		alert("Please enter your Country of Birth");
		document.namealterbusiness.country.focus();
		return (false);
	}
	if (document.namealterbusiness.businesstype.value == "")
	{
		alert("Please enter Business Type");
		document.namealterbusiness.businesstype.focus();
		return (false);
	}
	if (document.namealterbusiness.businessdescr.value == "")
	{
		alert("Please enter Breif Description about your business");
		document.namealterbusiness.businessdescr.focus();
		return (false);
	}
	if (document.namealterbusiness.currentcountry.value == "")
	{
		alert("Please enter Current Country of Residence");
		document.namealterbusiness.currentcountry.focus();
		return (false);
	}
	if (document.namealterbusiness.email_id.value == "")
	{
		alert("Please enter a value for the \"Email\" field.");
		document.namealterbusiness.email_id.focus();
		return (false);
	}
	//	   test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = document.namealterbusiness.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.namealterbusiness.email_id.focus();
		return (false);
	}
}