//var Validate = new Object();
////**********************************************************************************//
//Validate.validateNewMemberForm = function(){
//  formName  = document.forms['join'];
//
//// first_name
//         if (isTextEmpty(formName.first_name.value))
//         {
//           alert('Please enter your name!');
//           formName.name.select();
//           return false;
//         }
//
//// last_name
//         if (isTextEmpty(formName.first_name.value))
//         {
//           alert('Please enter your name!');
//           formName.name.select();
//           return false;
//         }
//
//// email
//         if (!isValidEmail(formName.email.value))
//         {
//           alert('Please enter a valid email address!');
//           formName.email.select();
//           return false;
//         }
//
//
//// date_of_birth
//         if (isTextEmpty(formName.dob_day.value) || isTextEmpty(formName.dob_month.value) || isTextEmpty(formName.dob_month.value))
//         {
//           alert('Please enter your date of birth!');
//           formName.dob_day.focus();
//           return false;
//         }
//
//// country
//         if (!isDropDownSelected('country', 'join' ))
//         {
//           alert('Please select your country!');
//           formName.country.focus();
//           return false;
//         }
//
//// user_name
//         if (!checkUserName(formName.user_name.value))
//         {
//           formName.user_name.focus();
//           return false;
//         }          
//// pass_word
//         if (!checkPassword(formName.pass_word.value))
//         {
//           formName.pass_word.focus();
//           return false;
//         }
//
//// cpass_word
//         if (isTextEmpty(formName.cpass_word.value))
//         {
//           alert('Please confirm your password!');
//           formName.cpass_word.focus();
//           return false;
//         }
//
//// cpass_word
//         if (formName.pass_word.value != formName.cpass_word.value)
//         {
//           alert('The password and confirm password are not the same!');
//           formName.cpass_word.focus();
//           return false;
//         }
//
//} 
////**********************************************************************************
//Validate.validateEditProfile = function(){
//  formName  = document.forms['editProfile'];
//
//
//// sur name
//         if (isTextEmpty(formName.last_name.value))
//         {
//           alert('Please enter the surname!');
//           formName.last_name.select();
//           return false;
//         }
//
//// first_name
//         if (isTextEmpty(formName.first_name.value))
//         {
//           alert('Please enter your first name!');
//           formName.first_name.select();
//           return false;
//         }
//
//// date_of_birth
//         if (isTextEmpty(formName.dob_day.value) || isTextEmpty(formName.dob_month.value) || isTextEmpty(formName.dob_month.value))
//         {
//           alert('Please enter your date of birth!');
//           formName.dob_day.focus();
//           return false;
//         }
//
//// work_phone
//         if (isTextEmpty(formName.work_phone.value))
//         {
//           alert('Please enter your office telephone no!');
//           formName.work_phone.select();
//           return false;
//         }
//
//// phone
//         if (isTextEmpty(formName.phone.value))
//         {
//           alert('Please enter your residential telephone no!');
//           formName.phone.select();
//           return false;
//         }
//
//// hk_id_no
//         if (isTextEmpty(formName.hk_id_no.value))
//         {
//           alert('Please enter your HK ID no.!');
//           formName.hk_id_no.select();
//           return false;
//         }
//
//// email
//         if (!isValidEmail(formName.email.value))
//         {
//           alert('Please enter a valid email address!');
//           formName.email.select();
//           return false;
//         }
//
//
//}
//
////**********************************************************************************
//Validate.validateEditPassword = function(){
//  formName = document.forms['editPassword'];
//
//  if (isTextEmpty(formName.old_password.value)|| isTextEmpty(formName.new_password1.value) || isTextEmpty(formName.new_password2.value) )
//         {
//           alert('Please enter proper values!');
//           formName.old_password.select();
//          return false;
//          }
//
//  if ( formName.new_password1.value != formName.new_password2.value )
//         {
//           alert('Your new password and confirm password are not the same!');
//           formName.new_password1.select();
//          return false;
//  }
//
//
//        
// if (confirm('Are you sure you want to modify this entry?'))
//  {
//    formName.submit();
//  } else {
//    return false;
//  }
//
//}
//
////**********************************************************************************
//Validate.validateEnquiry = function(){
//  formName  = document.forms['enquiry'];
//
//// name
//         if (isTextEmpty(formName.name.value))
//         {
//           alert('Please enter your name!');
//           formName.name.select();
//           return false;
//         }
//
//// email
//         if (!isValidEmail(formName.email.value))
//         {
//           alert('Please enter a valid email address!');
//           formName.email.select();
//           return false;
//         }
//
//// country
//         if (!isDropDownSelected('country', 'enquiry' ))
//         {
//           alert('Please select your country!');
//           formName.country.focus();
//           return false;
//         }
//
//// comments
//         if (isTextEmpty(formName.comments.value))
//         {
//           alert('Please enter your comments!');
//           formName.comments.select();
//           return false;
//         }
//} 
//


