function getMsg(type,code) {
  if (!code) return ''; 
  return eval('$'+type+'_MSG.'+code);
}

$THANKOO_MSG = {
  f_name: 'First Name should not be empty',
  l_name: 'Last Name should not be empty',
  n_name: 'Nick Name should not be empty',
  name: 'Invalid Name.',
  e_email: 'Email should not be empty',
  i_email: 'Invalid Email',
  pass: 'Password should not be empty',
  c_pass: 'Confirm Password should not be empty',
  e_pass: 'Password and Confirm Password should be same',
  l_pass: 'Password contain atleast 6 characters',
  a_dob:  'Select your BirthDay',
  gender: 'Select Gender',
  m_status: 'Select Martital Status',
  country: 'Select Country',
  state: 'Select State',
  home: 'Home Town should not be empty',
  school: 'School should not be empty',
  job: 'Job Title should not be empty',
  indus: 'Industry should not be empty',
  max: 'Maxmium 500 characters',
  thank: 'Thankoo Note should not be empty',
  phone: 'Invalid Phone Number',
  invalidtown: 'Invalid Home Town',
  msgto: 'To should not be empty',
  msgsubject: 'Subject should not be empty',
  msgmessage: 'Message should not be empty',
  invalid_txt: 'Invalid text',
  feedf_name: 'First Name should not be empty',
  feedl_name: 'Last Name should not be empty',
  feed_email: 'Email should not be empty',
  feedback: 'Feedback should not be empty',
  feed_code: 'Code should not be empty',
  i_empty: 'Should not be empty',
  v_image: 'Please upload JPEG image',
  thank_l: 'Maximum 1000 characters',
  end: 0
};