/***************************************************************************/
/*     AUTHOR         :  PHP Dev Team, iFactor Solutions, India            */
/*	   CONTACT 		  :  support@ifactors.com www.ifactors.com			   */
/*     PROGRAMMER     :  DPT                                               */
/*     SCRIPT NAME    :  js.js					                           */
/*     CREATED ON     :  03/MAR/2005                                       */
/*     MODIFIED ON    :  14/MAR/2005                                       */
/*     MODIFIED BY    :  SDYA                   						   */
/*     MODIFIED ON    :  28/MAR/2005                                       */
/*     MODIFIED BY    :  SDYA                   						   */
/*                                                                         */
/*     Java Script Functions For the Site                                  */
/***************************************************************************/

    /*----------------------------------------------------------------
    Description   :- function to validate the sign up page
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    -------------------------------------------------------------------*/
    function signup_validate()
    {
    	// first name
        if(document.frm_signup.txt_firstname.value=='')
        {
        	alert("Please enter the first name");
            document.frm_signup.txt_firstname.focus();
            return false;
        }

        // last name
        if(document.frm_signup.txt_lastname.value=='')
        {
        	alert("Please enter the last name");
            document.frm_signup.txt_lastname.focus();
            return false;
        }

        // city
 /*       if(document.frm_signup.txt_city.value=='')
        {
        	alert("Please enter the city");
            document.frm_signup.txt_city.focus();
            return false;
        }     */

        // email
        if(document.frm_signup.txt_email.value=='')
        {
        	alert("Please enter your email id");
            document.frm_signup.txt_email.focus();
            return false;
        }

        // memberid
        if(document.frm_signup.txt_memberid.value=='')
        {
        	alert("Please enter the user name");
            document.frm_signup.txt_memberid.focus();
            return false;
        }

        // password
        if(document.frm_signup.txt_password.value=='')
        {
        	alert("Please enter your password");
            document.frm_signup.txt_password.focus();
            return false;
        }

        // re password
        if(document.frm_signup.txt_repassword.value=='')
        {
        	alert("Please confirm your password");
            document.frm_signup.txt_repassword.focus();
            return false;
        }

        // confirm password
        if(document.frm_signup.txt_repassword.value!=document.frm_signup.txt_password.value)
        {
        	alert("Please confirm your password");
            document.frm_signup.txt_repassword.focus();
            return false;
        }
    }

    /*----------------------------------------------------------------
    Description   :- function to validate the login form
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    -------------------------------------------------------------------*/
    function signin_validate()
    {
        // user name
        if(document.frm_login.txt_username.value=='')
        {
            alert("Please enter your user name");
            document.frm_login.txt_username.focus();
            return false;
        }
        // password
        if(document.frm_login.txt_password.value=='')
        {
            alert("Please enter your password");
            document.frm_login.txt_password.focus();
            return false;
        }
        return true;
    }

    /*----------------------------------------------------------------
    Description   :- function to validate the my profile page
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    Modified on   :- 28/MAR/2005
	Modified by	  :- SDYA
	-------------------------------------------------------------------*/
    function my_profile_validate()
    {
    	//  bride name
        if(document.frm_signup.txt_bride_name.value=='')
        {
        	alert("Please enter bride name");
            document.frm_signup.txt_bride_name.focus();
            return false;
        }
        //  bride address1
        if(document.frm_signup.txt_bride_address1.value=='')
        {
        	alert("Please enter the bride address1 ");
            document.frm_signup.txt_bride_address1.focus();
            return false;
        }
    	//  bride address2
        if(document.frm_signup.txt_bride_address2.value=='')
        {
        	alert("Please enter bride address2");
            document.frm_signup.txt_bride_address2.focus();
            return false;
        }
        //  bride city
        if(document.frm_signup.txt_bride_city.value=='')
        {
        	alert("Please enter the bride city ");
            document.frm_signup.txt_bride_city.focus();
            return false;
        }		
    	//  bride state
        if(document.frm_signup.txt_bride_state.value=='')
        {
        	alert("Please enter bride state");
            document.frm_signup.txt_bride_state.focus();
            return false;
        }
        //  bride zip
        if(document.frm_signup.txt_bride_zip.value=='')
        {
        	alert("Please enter the bride zip ");
            document.frm_signup.txt_bride_zip.focus();
            return false;
        }
        //  bride homephone
        if(document.frm_signup.txt_bride_homephone.value=='')
        {
        	alert("Please enter the bride home phone ");
            document.frm_signup.txt_bride_homephone.focus();
            return false;
        }
        //  bride occupation
        if(document.frm_signup.txt_bride_occupation.value=='')
        {
        	alert("Please enter bride's occupation");
            document.frm_signup.txt_bride_occupation.focus();
            return false;
        }		
		//  bride workphone
        if(document.frm_signup.txt_bride_workphone.value=='')
        {
        	alert("Please enter bride's workphone");
            document.frm_signup.txt_bride_workphone.focus();
            return false;
        }		
		//  bride cellphone
        if(document.frm_signup.txt_bride_cellphone.value=='')
        {
        	alert("Please enter bride's cell phone");
            document.frm_signup.txt_bride_cellphone.focus();
            return false;
        }
        //  bride email
        if(document.frm_signup.txt_bride_emailid.value=='')
        {
        	alert("Please enter bride's email id");
            document.frm_signup.txt_bride_emailid.focus();
            return false;
        }
		//  bride method of contact
        if(document.frm_signup.txt_bride_prefered.value=='')
        {
        	alert("Please enter the method to contact bride");
            document.frm_signup.txt_bride_prefered.focus();
            return false;
        }
    	//  groom name
        if(document.frm_signup.txt_groom_name.value=='')
        {
        	alert("Please enter groom name");
            document.frm_signup.txt_groom_name.focus();
            return false;
        }
    	//  groom address1
        if(document.frm_signup.txt_groom_address1.value=='')
        {
        	alert("Please enter groom address1");
            document.frm_signup.txt_groom_address1.focus();
            return false;
        }
    	//  groom address2
        if(document.frm_signup.txt_groom_address2.value=='')
        {
        	alert("Please enter groom address2");
            document.frm_signup.txt_groom_address2.focus();
            return false;
        }
        //  groom city
        if(document.frm_signup.txt_groom_city.value=='')
        {
        	alert("Please enter the groom city ");
            document.frm_signup.txt_groom_city.focus();
            return false;
        }
        //  groom state
        if(document.frm_signup.txt_groom_state.value=='')
        {
        	alert("Please enter the groom state ");
            document.frm_signup.txt_groom_state.focus();
            return false;
        }
        //  groom zip
        if(document.frm_signup.txt_groom_zip.value=='')
        {
        	alert("Please enter the groom zip ");
            document.frm_signup.txt_groom_zip.focus();
            return false;
        } 
        //  groom homephone
        if(document.frm_signup.txt_groom_homephone.value=='')
        {
        	alert("Please enter the groom home phone ");
            document.frm_signup.txt_groom_homephone.focus();
            return false;
        }
        //  groom occupation
        if(document.frm_signup.txt_groom_occupation.value=='')
        {
        	alert("Please enter groom's occupation");
            document.frm_signup.txt_groom_occupation.focus();
            return false;
        }
		//  groom workphone
        if(document.frm_signup.txt_groom_workphone.value=='')
        {
        	alert("Please enter groom's workphone");
            document.frm_signup.txt_groom_workphone.focus();
            return false;
        }
		//  groom cellphone
        if(document.frm_signup.txt_groom_cellphone.value=='')
        {
        	alert("Please enter groom's cell phone");
            document.frm_signup.txt_groom_cellphone.focus();
            return false;
        }
        //  groom email
        if(document.frm_signup.txt_groom_emailid.value=='')
        {
        	alert("Please enter groom's email id");
            document.frm_signup.txt_groom_emailid.focus();
            return false;
        }
		//  groom method of contact
        if(document.frm_signup.txt_groom_prefered.value=='')
        {
        	alert("Please enter the method to contact groom");
            document.frm_signup.txt_groom_prefered.focus();
            return false;
        }
		//  Planner Contact Name 	 	
        if(document.frm_signup.txt_planner_name.value=='')
        {
        	alert("Please enter planner contact name ");
            document.frm_signup.txt_planner_name.focus();
            return false;
        }
		//  Planner Company Name  	 	
        if(document.frm_signup.txt_planner_companyname.value=='')
        {
        	alert("Please enter planner company name");
            document.frm_signup.txt_planner_companyname.focus();
            return false;
        }
		//  Planner Phone  	 	
        if(document.frm_signup.txt_planner_phone.value=='')
        {
        	alert("Please enter planner phone ");
            document.frm_signup.txt_planner_phone.focus();
            return false;
        }
		//  Planner Emailid 	
        if(document.frm_signup.txt_planner_emailid.value=='')
        {
        	alert("Please enter planner email id");
            document.frm_signup.txt_planner_emailid.focus();
            return false;
        }
		//  how did u meet?
        if(document.frm_signup.txt_howmeet.value=='')
        {
        	alert("Please enter how did you meet");
            document.frm_signup.txt_howmeet.focus();
            return false;
        }
		//  when did u get engaged?
        if(document.frm_signup.txt_whenengaged.value=='')
        {
        	alert("Please enter when did you get engaged");
            document.frm_signup.txt_whenengaged.focus();
            return false;
        }
		//  how did u get engaged?
        if(document.frm_signup.txt_howengaged.value=='')
        {
        	alert("Please enter how did you get engaged ");
            document.frm_signup.txt_howengaged.focus();
            return false;
        }
	 	//  bridal gown fitting location	
        if(document.frm_signup.txt_fitting_location.value=='')
        {
        	alert("Please enter the gown fitting location");
            document.frm_signup.txt_fitting_location.focus();
            return false;
        }
	 	//  bridal gown fitting date	
        if(document.frm_signup.txt_fitting_date.value=='')
        {
        	alert("Please enter the gown fitting date");
            document.frm_signup.txt_fitting_date.focus();
            return false;
        }
	 	//  bridal gown fitting time
        if(document.frm_signup.txt_fitting_time.value=='')
        {
        	alert("Please enter the gown fitting time");
            document.frm_signup.txt_fitting_time.focus();
            return false;
        }
	 	//  bridal gown fitting address1	
        if(document.frm_signup.txt_fitting_address1.value=='')
        {
        	alert("Please enter the gown fitting address1");
            document.frm_signup.txt_fitting_address1.focus();
            return false;
        }
	 	//  bridal gown fitting address2
        if(document.frm_signup.txt_fitting_address2.value=='')
        {
        	alert("Please enter the gown fitting address2");
            document.frm_signup.txt_fitting_address2.focus();
            return false;
        }
	 	//  bridal gown fitting city
        if(document.frm_signup.txt_fitting_city.value=='')
        {
        	alert("Please enter the gown fitting city");
            document.frm_signup.txt_fitting_city.focus();
            return false;
        }
	 	//  bridal gown fitting state
        if(document.frm_signup.txt_fitting_state.value=='')
        {
        	alert("Please enter the gown fitting state");
            document.frm_signup.txt_fitting_state.focus();
            return false;
        }
	 	//  bridal gown fitting zip
        if(document.frm_signup.txt_fitting_zip.value=='')
        {
        	alert("Please enter the gown fitting zip");
            document.frm_signup.txt_fitting_zip.focus();
            return false;
        }
	 	//  bridal gown fitting contact name	
        if(document.frm_signup.txt_fitting_contact.value=='')
        {
        	alert("Please enter the gown fitting contact name");
            document.frm_signup.txt_fitting_contact.focus();
            return false;
        }
	 	//  bridal gown fitting contact phone	
        if(document.frm_signup.txt_fitting_phone.value=='')
        {
        	alert("Please enter the gown fitting contact phone");
            document.frm_signup.txt_fitting_phone.focus();
            return false;
        }
	 	//  bridal gown fitting contact comments	
        if(document.frm_signup.txt_fitting_comments.value=='')
        {
        	alert("Please enter the gown fitting general comments");
            document.frm_signup.txt_fitting_comments.focus();
            return false;
        }
	 	//  photo location	
        if(document.frm_signup.txt_photo_location.value=='')
        {
        	alert("Please enter photo location");
            document.frm_signup.txt_photo_location.focus();
            return false;
        }
	 	//  photo date	
        if(document.frm_signup.txt_photo_date.value=='')
        {
        	alert("Please enter photo date");
            document.frm_signup.txt_photo_date.focus();
            return false;
        }
	 	//  photo time
        if(document.frm_signup.txt_photo_time.value=='')
        {
        	alert("Please enter photo time");
            document.frm_signup.txt_photo_time.focus();
            return false;
        }
	 	//  photo address1	
        if(document.frm_signup.txt_photo_address1.value=='')
        {
        	alert("Please enter photo address1");
            document.frm_signup.txt_photo_address1.focus();
            return false;
        }
	 	//  photo address2
        if(document.frm_signup.txt_photo_address2.value=='')
        {
        	alert("Please enter photo address2");
            document.frm_signup.txt_photo_address2.focus();
            return false;
        }
	 	//  photo city
        if(document.frm_signup.txt_photo_city.value=='')
        {
        	alert("Please enter photo city");
            document.frm_signup.txt_photo_city.focus();
            return false;
        }
	 	//  photo state
        if(document.frm_signup.txt_photo_state.value=='')
        {
        	alert("Please enter photo state");
            document.frm_signup.txt_photo_state.focus();
            return false;
        }
	 	//  photo zip
        if(document.frm_signup.txt_photo_zip.value=='')
        {
        	alert("Please enter photo zip");
            document.frm_signup.txt_photo_zip.focus();
            return false;
        }
	 	//  photo contact name	
        if(document.frm_signup.txt_photo_contact.value=='')
        {
        	alert("Please enter photo contact name");
            document.frm_signup.txt_photo_contact.focus();
            return false;
        }
	 	//  photo contact phone	
        if(document.frm_signup.txt_photo_phone.value=='')
        {
        	alert("Please enter photo contact phone number");
            document.frm_signup.txt_photo_phone.focus();
            return false;
        }
	 	//  photo contact comments	
        if(document.frm_signup.txt_photo_comment.value=='')
        {
        	alert("Please enter photo contact general comments");
            document.frm_signup.txt_photo_comment.focus();
            return false;
        }
	 	//  rehersal location
        if(document.frm_signup.txt_rehersal_location.value=='')
        {
        	alert("Please enter rehersal location");
            document.frm_signup.txt_rehersal_location.focus();
            return false;
        }
	 	//  rehersal date
        if(document.frm_signup.txt_rehersal_date.value=='')
        {
        	alert("Please enter rehersal date");
            document.frm_signup.txt_rehersal_date.focus();
            return false;
        }
	 	//  rehersal time
        if(document.frm_signup.txt_rehersal_time.value=='')
        {
        	alert("Please enter rehersal time");
            document.frm_signup.txt_rehersal_time.focus();
            return false;
        }
	 	//  rehersal address1
        if(document.frm_signup.txt_rehersal_address1.value=='')
        {
        	alert("Please enter rehersal address1");
            document.frm_signup.txt_rehersal_address1.focus();
            return false;
        }
	 	//  rehersal address2
        if(document.frm_signup.txt_rehersal_address2.value=='')
        {
        	alert("Please enter rehersal address2");
            document.frm_signup.txt_rehersal_address2.focus();
            return false;
        }
	 	//  rehersal city
        if(document.frm_signup.txt_rehersal_city.value=='')
        {
        	alert("Please enter rehersal city");
            document.frm_signup.txt_rehersal_city.focus();
            return false;
        }
	 	//  rehersal state
        if(document.frm_signup.txt_rehersal_state.value=='')
        {
        	alert("Please enter rehersal state");
            document.frm_signup.txt_rehersal_state.focus();
            return false;
        }
	 	//  rehersal zip
        if(document.frm_signup.txt_rehersal_zip.value=='')
        {
        	alert("Please enter rehersal zip");
            document.frm_signup.txt_rehersal_zip.focus();
            return false;
        }
	 	//  rehersal comments
        if(document.frm_signup.txt_rehersal_comments.value=='')
        {
        	alert("Please enter rehersal comments");
            document.frm_signup.txt_rehersal_comments.focus();
            return false;
        }
	 	//  bride preparation location
        if(document.frm_signup.txt_brideprepare_location.value=='')
        {
        	alert("Please enter bride preparation location");
            document.frm_signup.txt_brideprepare_location.focus();
            return false;
        }
	 	//  bride preparation time
        if(document.frm_signup.txt_brideprepare_time.value=='')
        {
        	alert("Please enter bride preparation time");
            document.frm_signup.txt_brideprepare_time.focus();
            return false;
        }
	 	//  bride preparation address1
        if(document.frm_signup.txt_brideprepare_address1.value=='')
        {
        	alert("Please enter bride preparation address1");
            document.frm_signup.txt_brideprepare_address1.focus();
            return false;
        }
	 	//  bride preparation address2
        if(document.frm_signup.txt_brideprepare_address2.value=='')
        {
        	alert("Please enter bride preparation address2");
            document.frm_signup.txt_brideprepare_address2.focus();
            return false;
        }
	 	//  bride preparation city
        if(document.frm_signup.txt_brideprepare_city.value=='')
        {
        	alert("Please enter bride preparation city");
            document.frm_signup.txt_brideprepare_city.focus();
            return false;
        }
	 	//  bride preparation state
        if(document.frm_signup.txt_brideprepare_state.value=='')
        {
        	alert("Please enter bride preparation state");
            document.frm_signup.txt_brideprepare_state.focus();
            return false;
        }
	 	//  bride preparation zip
        if(document.frm_signup.txt_brideprepare_zip.value=='')
        {
        	alert("Please enter bride preparation zip");
            document.frm_signup.txt_brideprepare_zip.focus();
            return false;
        }
	 	//  bride preparation phone
        if(document.frm_signup.txt_brideprepare_phone.value=='')
        {
        	alert("Please enter bride preparation phone");
            document.frm_signup.txt_brideprepare_phone.focus();
            return false;
        }
	 	//  bride preparation comments
        if(document.frm_signup.txt_brideprepare_comments.value=='')
        {
        	alert("Please enter bride preparation comments");
            document.frm_signup.txt_brideprepare_comments.focus();
            return false;
        }
	 	//  groom preparation location
        if(document.frm_signup.txt_groomprepare_location.value=='')
        {
        	alert("Please enter groom preparation location");
            document.frm_signup.txt_groomprepare_location.focus();
            return false;
        }
	 	//  groom preparation address1
        if(document.frm_signup.txt_groomprepare_address1.value=='')
        {
        	alert("Please enter groom preparation address1");
            document.frm_signup.txt_groomprepare_address1.focus();
            return false;
        }
	 	//  groom preparation address2
        if(document.frm_signup.txt_groomprepare_address2.value=='')
        {
        	alert("Please enter groom preparation address2");
            document.frm_signup.txt_groomprepare_address2.focus();
            return false;
        }
	 	//  groom preparation time
        if(document.frm_signup.txt_groomprepare_time.value=='')
        {
        	alert("Please enter groom preparation time");
            document.frm_signup.txt_groomprepare_time.focus();
            return false;
        }
	 	//  groom preparation city
        if(document.frm_signup.txt_groomprepare_city.value=='')
        {
        	alert("Please enter groom preparation city");
            document.frm_signup.txt_groomprepare_city.focus();
            return false;
        }
	 	//  groom preparation state
        if(document.frm_signup.txt_groomprepare_state.value=='')
        {
        	alert("Please enter groom preparation state");
            document.frm_signup.txt_groomprepare_state.focus();
            return false;
        }
	 	//  groom preparation zip
        if(document.frm_signup.txt_groomprepare_zip.value=='')
        {
        	alert("Please enter groom preparation zip");
            document.frm_signup.txt_groomprepare_zip.focus();
            return false;
        }
	 	//  groom preparation phone
        if(document.frm_signup.txt_groomprepare_phone.value=='')
        {
        	alert("Please enter groom preparation phone");
            document.frm_signup.txt_groomprepare_phone.focus();
            return false;
        }
	 	//  groom preparation comments
        if(document.frm_signup.txt_groomprepare_comments.value=='')
        {
        	alert("Please enter groom preparation comments");
            document.frm_signup.txt_groomprepare_comments.focus();
            return false;
        }
		//  Wedding Date
        if(document.frm_signup.txt_wed_date.value=='')
        {
        	alert("Please enter wedding date");
            document.frm_signup.txt_wed_date.focus();
            return false;
        }
		//  Wedding Start Time
        if(document.frm_signup.txt_wed_time.value=='')
        {
        	alert("Please enter wedding time");
            document.frm_signup.txt_wed_time.focus();
            return false;
        }
		//  Wedding Length of Ceremony
        if(document.frm_signup.txt_wed_length.value=='')
        {
        	alert("Please enter wedding lenmgth of ceremony");
            document.frm_signup.txt_wed_length.focus();
            return false;
        }
		//  Will you see each other before the ceremony?
        if(document.frm_signup.txt_wed_willsee.value=='')
        {
        	alert("Please enter whether you will see each other before the ceremony ");
            document.frm_signup.txt_wed_willsee.focus();
            return false;
        }
		//  Wedding Location
        if(document.frm_signup.txt_wed_location.value=='')
        {
        	alert("Please enter wedding location ");
            document.frm_signup.txt_wed_location.focus();
            return false;
        }
		//  Wedding Address1
        if(document.frm_signup.txt_wed_address1.value=='')
        {
        	alert("Please enter wedding address1 ");
            document.frm_signup.txt_wed_address1.focus();
            return false;
        }
		//  Wedding Address2
        if(document.frm_signup.txt_wed_address2.value=='')
        {
        	alert("Please enter wedding address2 ");
            document.frm_signup.txt_wed_address2.focus();
            return false;
        }
		//  Wedding City
        if(document.frm_signup.txt_wed_city.value=='')
        {
        	alert("Please enter wedding city");
            document.frm_signup.txt_wed_city.focus();
            return false;
        }
		//  Wedding State
        if(document.frm_signup.txt_wed_state.value=='')
        {
        	alert("Please enter wedding state ");
            document.frm_signup.txt_wed_state.focus();
            return false;
        }
		//  Wedding Zip
        if(document.frm_signup.txt_wed_zip.value=='')
        {
        	alert("Please enter wedding zip");
            document.frm_signup.txt_wed_zip.focus();
            return false;
        }
		//  Wedding Officiant Name
        if(document.frm_signup.txt_wed_officiant.value=='')
        {
        	alert("Please enter wedding officiant name ");
            document.frm_signup.txt_wed_officiant.focus();
            return false;
        }
		//  Wedding Contact Name
        if(document.frm_signup.txt_wed_contact.value=='')
        {
        	alert("Please enter wedding contact name ");
            document.frm_signup.txt_wed_contact.focus();
            return false;
        }
		//  Wedding Contact Phone
        if(document.frm_signup.txt_wed_phone.value=='')
        {
        	alert("Please enter wedding contact phone ");
            document.frm_signup.txt_wed_phone.focus();
            return false;
        }
		//  Are there any photograph limitations(no flash etc)
        if(document.frm_signup.txt_wed_photolimit.value=='')
        {
        	alert("Please enter wedding photo limit if any ");
            document.frm_signup.txt_wed_photolimit.focus();
            return false;
        }
		//  Number of BridesMaides
        if(document.frm_signup.txt_wed_bridesmaides.value=='')
        {
        	alert("Please enter Number of BridesMaides ");
            document.frm_signup.txt_wed_bridesmaides.focus();
            return false;
        }
		//  Color of BridesMaides Dresses
        if(document.frm_signup.txt_wed_maiddress.value=='')
        {
        	alert("Please enter Color of BridesMaides Dresses ");
            document.frm_signup.txt_wed_maiddress.focus();
            return false;
        }
		//  Number of GroomsMen
        if(document.frm_signup.txt_wed_groomsmen.value=='')
        {
        	alert("Please enter Number of GroomsMen");
            document.frm_signup.txt_wed_groomsmen.focus();
            return false;
        }
		//  How many ring bearers
        if(document.frm_signup.txt_wed_ringbearers.value=='')
        {
        	alert("Please enter the number of ring bearers ");
            document.frm_signup.txt_wed_ringbearers.focus();
            return false;
        }
		//  Who will be helping bring family members together for photos?
        if(document.frm_signup.txt_wed_whohelp.value=='')
        {
        	alert("Please enter who will help for photos ");
            document.frm_signup.txt_wed_whohelp.focus();
            return false;
        }
		//  What is their relationship?
        if(document.frm_signup.txt_wed_relation.value=='')
        {
        	alert("Please enter relationship with the bride");
            document.frm_signup.txt_wed_relation.focus();
            return false;
        }
		//  Who is paying for the photography?
        if(document.frm_signup.txt_wed_whopay.value=='')
        {
        	alert("Please enter who is paying for the photography ");
            document.frm_signup.txt_wed_whopay.focus();
            return false;
        }
		//  General Comments
        if(document.frm_signup.txt_wed_comments.value=='')
        {
        	alert("Please enter general comments about wedding");
            document.frm_signup.txt_wed_comments.focus();
            return false;
        }
		// Estimated Number of Guests
        if(document.frm_signup.txt_rec_guestcount.value=='')
        {
        	alert("Please enter the number of guests ");
            document.frm_signup.txt_rec_guestcount.focus();
            return false;
        }
		// Start Time
		if(document.frm_signup.txt_rec_starttime.value=='')
        {
        	alert("Please enter reception start time");
            document.frm_signup.txt_rec_starttime.focus();
            return false;
        }
		// End Time
		if(document.frm_signup.txt_rec_endtime.value=='')
        {
        	alert("Please enter reception end time ");
            document.frm_signup.txt_rec_endtime.focus();
            return false;
        }
		// Location
		if(document.frm_signup.txt_rec_location.value=='')
        {
        	alert("Please enter location of reception ");
            document.frm_signup.txt_rec_location.focus();
            return false;
        }
		// Address1
		if(document.frm_signup.txt_rec_address1.value=='')
        {
        	alert("Please enter reception address1");
            document.frm_signup.txt_rec_address1.focus();
            return false;
        }
		// Address2
		if(document.frm_signup.txt_rec_address2.value=='')
        {
        	alert("Please enter reception address2 ");
            document.frm_signup.txt_rec_address2.focus();
            return false;
        }
		// City
		if(document.frm_signup.txt_rec_city.value=='')
        {
        	alert("Please enter reception city");
            document.frm_signup.txt_rec_city.focus();
            return false;
        }
		// State
		if(document.frm_signup.txt_rec_state.value=='')
        {
        	alert("Please enter reception state ");
            document.frm_signup.txt_rec_state.focus();
            return false;
        }
		// Zip
		if(document.frm_signup.txt_rec_zip.value=='')
        {
        	alert("Please enter reception zip ");
            document.frm_signup.txt_rec_zip.focus();
            return false;
        }
		// Contact Name
		if(document.frm_signup.txt_rec_contactname.value=='')
        {
        	alert("Please enter reception contact name ");
            document.frm_signup.txt_rec_contactname.focus();
            return false;
        }
		// Contact Phone
		if(document.frm_signup.txt_rec_contactphone.value=='')
        {
        	alert("Please enter reception contact phone ");
            document.frm_signup.txt_rec_contactphone.focus();
            return false;
        }
		// Contact Email
		if(document.frm_signup.txt_rec_contactemail.value=='')
        {
        	alert("Please enter reception contact email ");
            document.frm_signup.txt_rec_contactemail.focus();
            return false;
        }
		// General Comments
		if(document.frm_signup.txt_rec_comments.value=='')
        {
        	alert("Please enter general comments about reception ");
            document.frm_signup.txt_rec_comments.focus();
            return false;
        }
		// Are you going anywhere for your honeymoon?
		if(document.frm_signup.txt_honey_trip.value=='')
        {
        	alert("Please enter whether you are going for honeymoon ");
            document.frm_signup.txt_honey_trip.focus();
            return false;
        }
		// When do you leave?
		if(document.frm_signup.txt_honey_whenleave.value=='')
        {
        	alert("Please enter when do you leave for honeymoon ");
            document.frm_signup.txt_honey_whenleave.focus();
            return false;
        }
		// When will you be back?
		if(document.frm_signup.txt_honey_whenback.value=='')
        {
        	alert("Please enter when will you be back ");
            document.frm_signup.txt_honey_whenback.focus();
            return false;
        }
		// How did you hear about us?
		if(document.frm_signup.txt_howheard.value=='')
        {
        	alert("Please enter how did your hear about Digitalmemories");
            document.frm_signup.txt_howheard.focus();
            return false;
        }
		// What attracted you the most?
		if(document.frm_signup.txt_attracted.value=='')
        {
        	alert("Please enter What attracted you the most ");
            document.frm_signup.txt_attracted.focus();
            return false;
        }
		// What if anything turned you off?
		if(document.frm_signup.txt_turnedoff.value=='')
        {
        	alert("Please enter What if anything turned you off ");
            document.frm_signup.txt_turnedoff.focus();
            return false;
        }
		// Do you have any suggestions?
		if(document.frm_signup.txt_suggestions.value=='')
        {
        	alert("Please enter your suggestions ");
            document.frm_signup.txt_suggestions.focus();
            return false;
        }
}	

    /*----------------------------------------------------------------
    Description   :- function to validate the change user info form
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    -------------------------------------------------------------------*/
    function changeuserinfo_validate()
    {
        // user name
        if(document.frm_userinfo.txt_username.value=='')
        {
            alert("Please enter your user id");
            document.frm_userinfo.txt_username.focus();
            return false;
        }
	}

    /*----------------------------------------------------------------
    Description   :- function to validate change password form
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    -------------------------------------------------------------------*/
    function changepassword_validate()
    {
		// old password
    	if(document.frm_password.txt_oldpassword.value=='')
        {
        	alert("Please enter your old password");
            document.frm_password.txt_oldpassword.focus();
            return false;
        }

		// new password
    	if(document.frm_password.txt_password.value=='')
        {
        	alert("Please enter your new password");
            document.frm_password.txt_password.focus();
            return false;
        }

		// retype password
    	if(document.frm_password.txt_repassword.value=='')
        {
        	alert("Please re-type your password");
            document.frm_password.txt_repassword.focus();
            return false;
        }

        // confirm password
        if(document.frm_password.txt_password.value!=document.frm_password.txt_repassword.value)
        {
			alert("Please confirm your password");
            document.frm_password.txt_repassword.focus();
            return false;
        }
    }

    /*----------------------------------------------------------------
    Description   :- function to validate the forgot password form
    Programmer    :- DPT
    Last Modified :- 04/MAR/2005
    -------------------------------------------------------------------*/
    function forgotpassword_validate()
    {
    	// user name
        if(document.frm_forgotpassword.txt_username.value=='')
        {
        	alert("Please enter your user name");
            document.frm_forgotpassword.txt_username.focus();
            return false;
        }
        return true;
    }

    /*----------------------------------------------------------------
    Description   :- function to get the image to be appeared on the index page
    Programmer    :- SDYA
    Last Modified :- 10/MAR/2005
    -------------------------------------------------------------------*/
  	function image_to_display(img_arr,imageid)
  	{
     	document.frmindex.right_image.src="images/"+ img_arr;
     	//document.frmindex.imageid.value=img_arr;	 
     	document.frmindex.imageid.value=imageid;	 
  	}

    /*----------------------------------------------------------------
    Description   :- function to validate the contact us page
    Programmer    :- SDYA
    Last Modified :- 14/MAR/2005
    -------------------------------------------------------------------*/
  	function contactus_validate()
  	{
		// name of the user
    	if(document.frm_contactus.txt_name.value=='')
        {
        	alert("Please enter your name ");
            document.frm_contactus.txt_name.focus();
            return false;
        }

		// wedding date
 /*   	if(document.frm_contactus.txt_date.value=='')
        {
        	alert("Please enter your wedding date ");
            document.frm_contactus.txt_date.focus();
            return false;
        }

		// phone
    	if(document.frm_contactus.txt_phone.value=='')
        {
        	alert("Please enter your phone number");
            document.frm_contactus.txt_phone.focus();
            return false;
        }

        // wedding location
        if(document.frm_contactus.txt_location.value=='')
        {
			alert("Please enter the wedding location ");
            document.frm_contactus.txt_location.focus();
            return false;
        }*/
		
        // email
        if(document.frm_contactus.txt_email.value=='')
        {
			alert("Please enter your email id");
            document.frm_contactus.txt_email.focus();
            return false;
        }
		
        // comments
        if(document.frm_contactus.txta_comments.value=='')
        {
			alert("Please type the comments ");
            document.frm_contactus.txta_comments.focus();
            return false;
        }
  	}

	/*----------------------------------------------------------------
    Description   :- function to show the calender in contact us page
    Programmer    :- SDYA
    Last Modified :- 10/MAR/2005
    -------------------------------------------------------------------*/
	function show_calendar()
	{
   		gfPop.fStartPop(document.frm_contactus.txt_date,Date);
	}

