﻿<script language="JavaScript">


function isEmailValid(sEmail) {
		if (sEmail.value == '' || sEmail.indexOf('.') == 0 || sEmail.indexOf('.') == -1 || sEmail.indexOf('@') == 0 || sEmail.indexOf('@') == -1 || sEmail.indexOf('.') == sEmail.length - 1 || sEmail.indexOf(',') >= 0) {
			return false;
		} else {
			return true;
		}
	}
function about_validate(theForm)
{	
if(theForm.Fname.value == "")
		{
		alert("First Name Should Not Be Blank")
		theForm.Fname.focus();
		return false;
		}
		if(theForm.Lname.value == "")
		{
		alert("Last Name Should Not Be Blank")
		theForm.Lname.focus();
		return false;
		}
		if(theForm.City.value == "")
		{
		alert("City Should Not Be Blank")
		theForm.City.focus();
		return false;
		}
		if(!isEmailValid(theForm.Email.value))
		{
		alert("Please Enter Valid Email Adderss")
		theForm.Email.focus();
		return false;
		}
		if(theForm.NewPassword.value == "")
		{
		alert(" Please Enter Your Password")
		theForm.NewPassword.focus();
		return false;
		}
		if(theForm.RePassword.value == "")
		{
		alert("RePassword Should Not Be Blank")
		theForm.RePassword.focus();
		return false;
		}
		
	return true;
}

</script>﻿<script language="JavaScript">


function isEmailValid(sEmail) {
		if (sEmail.value == '' || sEmail.indexOf('.') == 0 || sEmail.indexOf('.') == -1 || sEmail.indexOf('@') == 0 || sEmail.indexOf('@') == -1 || sEmail.indexOf('.') == sEmail.length - 1 || sEmail.indexOf(',') >= 0) {
			return false;
		} else {
			return true;
		}
	}
function about_validate(theForm)
{	
if(theForm.Fname.value == "")
		{
		alert("First Name Should Not Be Blank")
		theForm.Fname.focus();
		return false;
		}
		if(theForm.Lname.value == "")
		{
		alert("Last Name Should Not Be Blank")
		theForm.Lname.focus();
		return false;
		}
		if(theForm.City.value == "")
		{
		alert("City Should Not Be Blank")
		theForm.City.focus();
		return false;
		}
		if(!isEmailValid(theForm.Email.value))
		{
		alert("Please Enter Valid Email Adderss")
		theForm.Email.focus();
		return false;
		}
		if(theForm.NewPassword.value == "")
		{
		alert(" Please Enter Your Password")
		theForm.NewPassword.focus();
		return false;
		}
		if(theForm.RePassword.value == "")
		{
		alert("RePassword Should Not Be Blank")
		theForm.RePassword.focus();
		return false;
		}
		
	return true;
}

</script>