function validater()
{
         if(window.document.form1.pharmacyname.value=="")
        {

                        alert("Please enter Pharmacy Name");
                        window.document.form1.pharmacyname.focus();
                        return(false);

        }
         if(window.document.form1.nabp.value=="")
        {

                        alert("Please enter PNABP #");
                        window.document.form1.nabp.focus();
                        return(false);

        }
         if(window.document.form1.Address1.value=="")
        {

                        alert("Please enter Address");
                        window.document.form1.Address1.focus();
                        return(false);

        }
        if(window.document.form1.City.value=="")
        {

                        alert("Please enter City");
                        window.document.form1.City.focus();
                        return(false);

        }
        if(window.document.form1.State.value=="")
        {

                        alert("Please select State");
                        window.document.form1.State.focus();
                        return(false);

        }
        if(window.document.form1.ZipCode.value=="")
        {

                        alert("Please enter Zip code");
                        window.document.form1.ZipCode.focus();
                        return(false);

        }
         if(window.document.form1.Phone.value=="")
        {

                        alert("Please enter phone no");
                        window.document.form1.Phone.focus();
                        return(false);

        }
         if(window.document.form1.Phone.value!="")
        {
        var x=document.form1.Phone.value
        var anum=/(^\d+$)|(^\d+\.\d+$)/
        if (!anum.test(x)){
        alert("Please input a valid phone number!")
       window.document.form1.Phone.focus();
                return(false);
        }
        }
        if(window.document.form1.FirstName.value=="")
        {
                alert("Please enter first name");
                window.document.form1.FirstName.focus();
                return(false);
        }

        if(window.document.form1.LastName.value=="")
        {

                        alert("Please enter last name");
                        window.document.form1.LastName.focus();
                        return(false);

        }


         if(document.getElementById("ic").checked)
        {
                        if(window.document.form1.License.value=="")
                        {
                        alert("Please enter License");
                        window.document.form1.License.focus();
                        return(false);
                        }


        }

         if(window.document.form1.title.value=="")
        {

                        alert("Please Enter Position/title");
                        window.document.form1.title.focus();
                        return(false);

        }


        if(window.document.form1.Email.value=="")
        {

                        alert("Please enter email");
                        window.document.form1.Email.focus();
                        return(false);

        }

        if(window.document.form1.Email.value!="")
        {
        var a=document.form1.Email.value
        var e=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
        if (!e.test(a)){
        alert("Invalid E-mail Address! Please re-enter.")
        window.document.form1.Email.focus();
        return(false);
        }

        }
        if(window.document.form1.Email.value!=window.document.form1.Email2.value)
        {

                        alert("Your email Id not match");
                        window.document.form1.Email.focus();
                        return(false);

        }

        if(window.document.form1.Password.value=="")
        {

                        alert("Please enter your Password");
                        window.document.form1.Password.focus();
                        return(false);

        }
        if(window.document.form1.Password.value!=window.document.form1.Password2.value)
        {

                        alert("Your Password not match");
                        window.document.form1.Password.focus();
                        return(false);

        }

        function doSubmit()
        {

          return;
        }

}
