////////stuent regis form validation////////



function valfrmaddstudent1()
{if (document.frmaddstudent1.firstname.value=="")
    {alert("Please, enter First Name.");
     document.frmaddstudent1.firstname.focus();
     return false;
    }
 if (document.frmaddstudent1.lastname.value=="")
    {alert("Please, enter Last Name.");
     document.frmaddstudent1.lastname.focus();
     return false;
    }
else 
   return true;
}

function valfrmaddstudent2()
{/*	
 if (document.frmaddstudent2.home_congregation2.value=="")
    {alert("Please, enter Home Congregation.");
     document.frmaddstudent2.home_congregation2.focus();
     return false;
    }
 if (document.frmaddstudent2.hc_address.value=="")
    {alert("Please, enter Home Congregation Address.");
     document.frmaddstudent2.hc_address.focus();
     return false;
    }
 if (document.frmaddstudent2.hc_city.value=="")
    {alert("Please, enter Home Congregation City.");
     document.frmaddstudent2.hc_city.focus();
     return false;
    }
 if (document.frmaddstudent2.hc_state.value=="")
    {alert("Please, select Home Congregation State.");
     document.frmaddstudent2.hc_state.focus();
     return false;
    }
 if (document.frmaddstudent2.hc_zip.value=="")
    {alert("Please, enter Home Congregation Zip.");
     document.frmaddstudent2.hc_zip.focus();
     return false;
    }
 else 
*/
 
 return true;

}

function valfrmaddstudent3()
{/*
 if (document.frmaddstudent3.other_congregation.value=="")
    {alert("Please, enter Other Congregation Attending.");
     document.frmaddstudent3.other_congregation.focus();
     return false;
    }
 if (document.frmaddstudent3.college_university.value=="")
    {alert("Please, enter College, University, or Grad School.");
     document.frmaddstudent3.college_university.focus();
     return false;
    }
 if (document.frmaddstudent3.other_place_service.value=="")
    {alert("Please, enter Other Place of Service of Membership.");
     document.frmaddstudent3.other_place_service.focus();
     return false;
    }
 else */
 return true;
}

function valfrmaddstudent4()
{/*
 if (document.frmaddstudent4.bmon.value=="0")
    {alert("Please, select Month.");
     document.frmaddstudent4.bmon.focus();
     return false;
    }
 if (document.frmaddstudent4.bday.value=="0")
    {alert("Please, select Day.");
     document.frmaddstudent4.bday.focus();
     return false;
    }
 if (document.frmaddstudent4.byear.value=="")
    {alert("Please, enter Year.");
     document.frmaddstudent4.byear.focus();
     return false;
    }
 if (document.frmaddstudent4.haddress.value=="")
    {alert("Please, enter Home Address.");
     document.frmaddstudent4.haddress.focus();
     return false;
    }
 if (document.frmaddstudent4.city.value=="")
    {alert("Please, enter Home City.");
     document.frmaddstudent4.city.focus();
     return false;
    }
 if (document.frmaddstudent4.state.value=="")
    {alert("Please, enter Home State.");
     document.frmaddstudent4.state.focus();
     return false;
    }
 if (document.frmaddstudent4.zip.value=="")
    {alert("Please, enter Home Zip.");
     document.frmaddstudent4.zip.focus();
     return false;
    }
 if (document.frmaddstudent4.phone.value=="")
    {alert("Please, enter Home Phone.");
     document.frmaddstudent4.phone.focus();
     return false;
    }
 */
//filter students
}

function valfrmsearchstudent123()

{

	if(document.frmsearchstudent123.select_fieldtosearch.value=="0")

	{

		alert("Please, Select on which field you want to Search? ");

		document.frmsearchstudent123.select_fieldtosearch.focus();

		return false;

	}

	if(document.frmsearchstudent123.parameters.value=="")

	{

		alert("Please, Enter keyword for Search ");

		document.frmsearchstudent123.parameters.focus();

		return false;

	}

	else 

	return true;

}
