function SubmitLoginFrm(formNm)
{
	if(formNm.profile_id.value == "")	{
		alert("Please enter profile id");
		formNm.profile_id.focus();
		return false;
	}
	else if(formNm.password.value == "")	
	{
		alert("Please enter password");
		formNm.password.focus();
		return false;
	}
	else	
	{
		return true;
	}
}

/* JavaScript Client Side Validations for Registration Form Starts Here */
function saveRegistration(objForm)
{
	//return true;
	/* To assign a memory to a variable */
	var mail,email;
	/* To save value within variable */
	 mail=objForm.txtEmail.value;
	 /* To create a regular expression for email validation */
	emailRegEx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	/* To string conversion */
	email=new String(mail);

	if(objForm.txtProfileID.value == "")
	{
		// The alert message is displayed  
		alert("Please Enter a Profile ID");
		// To set the focus on the Profile ID textbox 
		objForm.txtProfileID.focus();
		return false;
	}
	else if(objForm.txtEmail.value == "")
	{
		// The alert message is displayed  
		alert("Please Enter an Email Address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
	else if( !emailRegEx.test( objForm.txtEmail.value ) )
	{  
		// The alert message is displayed  
		alert("Please enter a valid email address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
	/*else if(objForm.txtConfirmEmail.value == "")
	{
		// The alert message is displayed  
		alert("Please enter confirm email address");
		// To set the focus on the Confirm Email textbox 
		objForm.txtConfirmEmail.focus();
		return false;
	}
	else if(objForm.txtEmail.value != objForm.txtConfirmEmail.value)
	{
		// The alert message is displayed  
		alert("The email address entered are not identical");
		// To set the focus on the Email textbox 
		objForm.txtConfirmEmail.focus();
		return false;
	}*/
	else if(objForm.txtPassword.value =="")
	{
		// The alert message is displayed  
		alert("Please enter a password");
		// To set the focus on the Password textbox 
		objForm.txtPassword.focus();
		return false;
	}
	else if(objForm.txtConfirmPassword.value =="")
	{
		// The alert message is displayed  
		alert("Please enter confirm password");
		// To set the focus on the Password textbox 
		objForm.txtConfirmPassword.focus();
		return false;
	}
	else if(objForm.txtPassword.value != objForm.txtConfirmPassword.value)
	{
		// The alert message is displayed  
		alert("The passwords entered are not identical");
		// To set the focus on the Password textbox 
		objForm.txtConfirmPassword.focus();
		return false;
	}
	else if(objForm.cmbGender.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a gender");
		// To set the focus on the Gender selectbox
		objForm.cmbGender.focus();
		return false;
	}
	else if(objForm.cmbDay.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a day");
		// To set the focus on the Day selectbox
		objForm.cmbDay.focus();
		return false;
	}
	else if(objForm.cmbMonth.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a month");
		// To set the focus on the Month selectbox
		objForm.cmbMonth.focus();
		return false;
	}
	else if(objForm.cmbYear.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a year");
		// To set the focus on the Year selectbox
		objForm.cmbYear.focus();
		return false;
	}
	/*else if(objForm.cmbReligion.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a religion ");
		// To set the focus on the Religion / Religion selectbox
		objForm.cmbReligion.focus();
		return false;
	}*/
	else if(objForm.cmbCountry.value =="")
	{				
		// The alert message is displayed  
		alert("Please select a country of residence");
		// To set the focus on the Country of Residence selectbox
		objForm.cmbCountry.focus();
		return false;
	}
	else if(!objForm.chkTerms.checked)
	{
		// The alert message is displayed  
		alert("Please agree to the terms and conditions to proceed further");
		// To set the focus on the Country of Residence selectbox
		objForm.chkTerms.focus();
		return false;
	}
	// RHM Sunday, May 04, 2008 : Checkbox validation pending 
	else
	{
		return true;
	}
}

function sendPassword(objForm)
{
	//return true;
	/* To assign a memory to a variable */
	var mail,email;
	/* To save value within variable */
	 mail=objForm.txtEmail.value;
	 /* To create a regular expression for email validation */
	emailRegEx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	/* To string conversion */
	email=new String(mail);
	
	if(objForm.txtEmail.value == "")
	{
		// The alert message is displayed  
		alert("Please Enter an Email Address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
	else if( !emailRegEx.test( objForm.txtEmail.value ) )
	{  
		// The alert message is displayed  
		alert("Please enter a valid email address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
}

function submitContact(objForm)
{
	//return true;
	/* To assign a memory to a variable */
	var mail,email;
	/* To save value within variable */
	 mail=objForm.txtEmail.value;
	 /* To create a regular expression for email validation */
	emailRegEx = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
	/* To string conversion */
	email=new String(mail);

	if(objForm.txtFullname.value == "")
	{
		// The alert message is displayed  
		alert("Please Enter an full name");
		// To set the focus on the Email textbox 
		objForm.txtFullname.focus();
		return false;
	}
	else if(objForm.txtEmail.value == "")
	{
		// The alert message is displayed  
		alert("Please Enter an Email Address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
	else if( !emailRegEx.test( objForm.txtEmail.value ) )
	{  
		// The alert message is displayed  
		alert("Please enter a valid email address");
		// To set the focus on the Email textbox 
		objForm.txtEmail.focus();
		return false;
	}
	else if(objForm.txtEnquiry.value == "")
	{
		// The alert message is displayed  
		alert("Please enter a enquiry");
		// To set the focus on the Email textbox 
		objForm.txtEnquiry.focus();
		return false;
	}
	else
	{
		return true;
	}

}