function bookmark()
{
bookmarkurl="http://www.rajpalastro.com"
bookmarktitle="RajpalAstro Astrology Consultants Astrology, Hypnosis..."
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


function Validation(rpw)
{

 if (rpw.Name.value == "")
  {
    alert("Please enter a value for the \"Name \" field.");
    rpw.Name.focus();
    return (false);
  }

  if (rpw.Name.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Name \" field.");
    rpw.Name.focus();
    return (false);
  }
 

if (rpw.Year.value == "")
  {
    alert("Please enter a value for the \"Year\" field.");
    rpw.Year.focus();
    return (false);
  }
  
   if (rpw.Year.value.length <1 )
  {
    alert("Please enter at least 1 characters in the \"Year\" field.");
    rpw.Year.focus();
    return (false);
}  

var checkOK = "-+() 0123456789-,";
  var checkStr = rpw.Year.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Year\" field.");
    rpw.Year.focus();
    return (false);
    }


 if (rpw.BirthCity.value == "")
  {
    alert("Please enter a value for the \"BirthCity \" field.");
    rpw.BirthCity.focus();
    return (false);
  }

  if (rpw.BirthCity.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"BirthCity \" field.");
    rpw.BirthCity.focus();
    return (false);
  }


 if (rpw.State.value == "")
  {
    alert("Please enter a value for the \"State \" field.");
    rpw.State.focus();
    return (false);
  }

  if (rpw.State.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"State \" field.");
    rpw.State.focus();
    return (false);
  }


 if (rpw.Address.value == "")
  {
    alert("Please enter a value for the \"Address \" field.");
    rpw.Address.focus();
    return (false);
  }

  if (rpw.Address.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Address \" field.");
    rpw.Address.focus();
    return (false);
  }

if (rpw.Note.value == "")
  {
    alert("Please enter a value for the \"Note \" field.");
    rpw.Note.focus();
    return (false);
  }

  if (rpw.Note.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Note \" field.");
    rpw.Note.focus();
    return (false);
  }

 if (rpw.Child.value == "")
  {
    alert("Please enter a value for the \"No. of Children\" field.");
    rpw.Child.focus();
    return (false);
  }
  
   if (rpw.Child.value.length <1 )
  {
    alert("Please enter at least 1 characters in the \"Child\" field.");
    rpw.Child.focus();
    return (false);
}  

   
var checkOK = "-+() 0123456789-,";
  var checkStr = rpw.Child.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"No. of Children\" field.");
    rpw.Child.focus();
    return (false);
    }

 
 if (rpw.Profession.value == "")
  {
    alert("Please enter a value for the \"Profession \" field.");
    rpw.Profession.focus();
    return (false);
  }

  if (rpw.Profession.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Profession \" field.");
    rpw.Profession.focus();
    return (false);
  }
 
if (rpw.Email.value == "")
  {
    alert("Please enter a value for the \"E-Mail\" field.");
    rpw.Email.focus();
    return (false);
  }

  if (rpw.Email.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"E-Mail\" field.");
    rpw.Email.focus();
    
    return (false);
}

{ emailStr=rpw.Email.value
var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
var matchArray = emailStr.match(emailPat);
if (matchArray == null) 
{
alert("Your email address seems incorrect.  Please try again (check the '@' and '.'s in the email address)");
rpw.Email.focus();
return (false) ;
} }     


if (rpw.Phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    rpw.Phone.focus();
    return (false);
  }
  
   if (rpw.Phone.value.length <1 )
  {
    alert("Please enter at least 1 characters in the \"Phone\" field.");
    rpw.Phone.focus();
    return (false);
}  

   
var checkOK = "-+() 0123456789-,";
  var checkStr = rpw.Phone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Phone\" field.");
    rpw.Phone.focus();
    return (false);
    }


if (rpw.CellPhone.value == "")
  {
    alert("Please enter a value for the \"CellPhone\" field.");
    rpw.CellPhone.focus();
    return (false);
  }
  
   if (rpw.CellPhone.value.length <1 )
  {
    alert("Please enter at least 1 characters in the \"CellPhone\" field.");
    rpw.CellPhone.focus();
    return (false);
}  

   
var checkOK = "-+() 0123456789-,";
  var checkStr = rpw.CellPhone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"CellPhone\" field.");
    rpw.CellPhone.focus();
    return (false);
    }


  return (true);
}