function subscribe(){
        var eadd="";
        eadd+=document.getElementById("txtemail").value;
        location.href="http://local.puja.com/HIMALAYAN/subscribe.php?email="+eadd+"";

        }

function subscribemail(){
                var msg;
                var err=0;
                var regex;
                msg="";

                if(document.SubscribeFORM.fldemaila.value==""){
                        msg+="<LI>Please Enter Mail, it should not be blank </LI> ";
                        document.getElementById("mfldemaila").innerHTML="<font color=red>Mail *</font>";
                        err++;
                }else{
                      regx=/^([a-zA-Z0-9_\\.\\-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
                      if(!regx.test(document.SubscribeFORM.fldemaila.value)){
                          msg+="<LI>Please Enter Valid Email Address</LI> ";
                          document.SubscribeFORM.fldemaila.value=="";
                          document.getElementById("mfldemaila").innerHTML="<font color=red>Your Email Address:*</font>";
                          err++;
                      }else{
                          document.getElementById("mfldemaila").innerHTML="Your Email Address:<font color=red>*</font>";
                      }
                }


                if(document.SubscribeFORM.fldemailb.value==""){
                        msg+="<LI>Please Retype Your Email Address,it should not be blank </LI> ";
                        document.getElementById("mfldemailb").innerHTML="<font color=red>Please retype your email Address *</font>";
                        err++;
                }else{ if(document.SubscribeFORM.fldemaila.value!=document.SubscribeFORM.fldemailb.value){
                        msg+="<LI>The Email Address doesnot match. </LI> ";
                        err++;
                       }else{
                          document.getElementById("mfldemailb").innerHTML="Please retype your email Address <font color=red>*</font>";
                       }
                }

                if(document.SubscribeFORM.fld1stname.value==""){
                        msg+="<LI>Please Enter First Name,it should not be blank </LI> ";
                        document.getElementById("mfld1stname").innerHTML="<font color=red>First Name*</font>";
                        err++;
                }else{
                          document.getElementById("mfld1stname").innerHTML="First Name <font color=red>*</font>";
                       }

                if(document.SubscribeFORM.fldlastname.value==""){
                        msg+="<LI>Please Enter Last Name,it should not be blank </LI> ";
                        document.getElementById("mfldlastname").innerHTML="<font color=red>Last Name*</font>";
                        err++;
                }else{
                          document.getElementById("mfldlastname").innerHTML="Last Name <font color=red>*</font>";
                       }

                if(document.SubscribeFORM.fldjobtitle.value==""){
                        msg+="<LI>Please Enter Job Title,it should not be blank </LI> ";
                        document.getElementById("mfldjobtitle").innerHTML="<font color=red>Job Title*</font>";
                        err++;
                }else{
                          document.getElementById("mfldjobtitle").innerHTML="Job Title <font color=red>*</font>";
                       }

                if(document.SubscribeFORM.fldcompanyname.value==""){
                        msg+="<LI>Please Enter Company Name,it should not be blank </LI> ";
                        document.getElementById("mfldcompanyname").innerHTML="<font color=red>Company Name*</font>";
                        err++;
                }else{
                          document.getElementById("mfldcompanyname").innerHTML="Company Name <font color=red>*</font>";
                       }

                if(document.SubscribeFORM.fldnote.value==""){
                        msg+="<LI>Please Enter Notes,it should not be blank </LI> ";
                        document.getElementById("mfldnote").innerHTML="<font color=red>Notes*</font>";
                        err++;
                }else{
                          document.getElementById("mfldnote").innerHTML="Notes<font color=red>*</font>";
                       }

                if(err>0){
                   document.getElementById("msg").innerHTML="<font color=red><b>Errors Occured :</b> <br /><UL>"+msg+"</UL></font>";
                   return false;
                }else{
                 return true;
                }
        }

function reservationvalidate(){
        var msg;
                var err=0;
                var regex;
                msg="";

                if(document.reservationform.flddate.value==""){
                        msg+="<LI>Please enter Date For Reservation,it should not be blank </LI> ";
                        document.getElementById("mflddate").innerHTML="<font color=yellow>Date For Reservation *</font>";
                        err++;
                }else{
                          document.getElementById("mflddate").innerHTML="Date For Reservation<font color=yellow>*</font>";
                }

                if(document.reservationform.fldfirstname.value==""){
                        msg+="<LI>Please enter First Name,it should not be blank </LI> ";
                        document.getElementById("mfldfirstname").innerHTML="<font color=yellow>First Name *</font>";
                        err++;
                }else{
                          document.getElementById("mfldfirstname").innerHTML="First Name<font color=yellow>*</font>";
                }
                if(document.reservationform.fldlastname.value==""){
                        msg+="<LI>Please enter Last Name,it should not be blank </LI> ";
                        document.getElementById("mfldlastname").innerHTML="<font color=yellow>Last Name *</font>";
                        err++;
                }else{
                          document.getElementById("mfldlastname").innerHTML="Last Name<font color=yellow>*</font>";
                }

                if(document.reservationform.fldemail.value==""){
                        msg+="<LI>Please Enter Email, it should not be blank </LI> ";
                        document.getElementById("mfldemail").innerHTML="<font color=yellow>Email *</font>";
                        err++;
                }else{
                      regx=/^([a-zA-Z0-9_\\.\\-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
                      if(!regx.test(document.reservationform.fldemaila.value)){
                          msg+="<LI>Please Enter Valid Email Address</LI> ";
                          document.reservationform.fldemail.value=="";
                          document.getElementById("mfldemail").innerHTML="<font color=yellow>Email*</font>";
                          err++;
                      }else{
                          document.getElementById("mfldemail").innerHTML="Email<font color=yellow>*</font>";
                      }
                }
                if(document.reservationform.fldphone.value==""){
                        msg+="<LI>Please enter Phone,it should not be blank </LI> ";
                        document.getElementById("mfldphone").innerHTML="<font color=yellow>Phone*</font>";
                        err++;
                }else{
                          document.getElementById("mfldphone").innerHTML="Phone<font color=yellow>*</font>";
                }

                if(document.reservationform.fldspecial.value==""){
                        msg+="<LI>Please enter Special Requirements,it should not be blank </LI> ";
                        document.getElementById("mfldspecial").innerHTML="<font color=yellow>Special Requirements*</font>";
                        err++;
                }else{
                          document.getElementById("mfldspecial").innerHTML="Special Requirements<font color=yellow>*</font>";
                }






                if(err>0){
                   document.getElementById("msg").innerHTML="<font color=yellow><b>Errors Occured :</b> <br /><UL>"+msg+"</UL></font>";
                   return false;
                }else{
                 return true;
                }
        }