function verify(form)
{

//name validation
	if(form.name.value=="")
	{
		alert("please enter your Name");
		form.name.focus();
		return false;
	}
	if(form.name.value.match(/^\d+$/))
	{
	alert("Numbers are not allowed in name")
	form.name.focus();
	return false;
	}
	
//Sex validation
	 var radioSelected = false;
  	for (i = 0;  i < form.Sex.length;  i++)
  	{
    	if (form.Sex[i].checked)
        radioSelected = true;
  	}
  		if (!radioSelected)
  			{
    			alert("Please select one of the Sex options.");
				return (false);
  			}
			
	//Marital Status validation
	var radioSelected = false;
  	for (i = 0;  i < form.Mstatus.length;  i++)
  	{
    	if (form.Mstatus[i].checked)
        radioSelected = true;
  	}
  		if (!radioSelected)
  			{
    			alert("Please select one of the marital status options.");
    			return (false);
  			}
//birthdate validation
	if (form.bdate.selectedIndex < 0)
  {
    alert("Please select one of the \"Date Required\" options.");
    form.bdate.focus();
    return (false);
  }

  if (form.bdate.selectedIndex == 0)
  {
    alert("The first \"Date Required\" option is not a valid selection.  Please choose one of the other options.");
    form.bdate.focus();
    return (false);
  }

//Birth Month validation
  if (form.bmonth.selectedIndex < 0)
  {
    alert("Please select one of the \"Month Required\" options.");
    form.bmonth.focus();
    return (false);
  }

  if (form.bmonth.selectedIndex == 0)
  {
    alert("The first \"Month Required\" option is not a valid selection.  Please choose one of the other options.");
    form.bmonth.focus();
    return (false);
  }

//Birth Year validation
  if (form.byear.selectedIndex < 0)
  {
    alert("Please select one of the \"Year Required\" options.");
   form.byear.focus();
    return (false);
  }

  if (form.byear.selectedIndex == 0)
  {
    alert("The first \"Year Required\" option is not a valid selection.  Please choose one of the other options.");
    form.byear.focus();
    return (false);
} 

//Birth Hour validation
if(form.Bhour.selectedIndex <0 )
	{
	alert("please select one of the \"Hours Required\"options.");
	form.Bhour.focus();
	return (false);
	}
	
	if(form.Bhour.selectedIndex == 0)
	{
	alert("The first\"Hours Required\"option is not valid selection. Please choose one of the other options.");
	form.Bhour.focus();
	return (false);
	}

//birth Minute validation
	if(form.BMin.selectedIndex < 0)
	{
	alert("please select one of the \"Minutes Required\"options.");
	form.BMin.focus();
	return (false);
	}
	
	if(form.BMin.selectedIndex == 0)
	{
	alert("The first\"Minutes Required\"option is not valid selection. please choose one of the other options.");
	form.BMin.focus();
	return (false);
	}

//Birth City validation

	if(form.bcity.value=="")
	{
		alert("please enter your city name");
		form.bcity.focus();
		return false;
	}
	if(form.bcity.value.match(/^\d+$/))
	{
	alert("Numbers are not allowed in birth city")
	form.bcity.focus();
	return false;
	}
	
	
if(form.state.value=="")
	{
		alert("please enter your Birth State");
		form.state.focus();
		return false;
	}

if(form.country.value=="-")
{
alert("please select ur country");
form.country.focus();
return false;
}

if (form.email.value =="")
						{
							alert('Please enter your email addres, Thank You.');
							form.email.focus();
							return false;
						}
							else 
							if (form.email.value!="") 
						{
							if (form.email.value.indexOf("@")==-1 ||
								form.email.value.indexOf(".")==-1 || 
								form.email.value.indexOf(" ")!=-1 || 
								form.email.value.length<6) 
							{
							alert("Please enter a valid email address, Thank You.");
							form.email.focus();
							return false;
							}
						}	

return true;
}

