function getMsg(type,code) {
  if (!code) return ''; 
  return eval('$'+type+'_MSG.'+code);
}

$ACCOUNTS_MSG = {

  blank_un: 'Please enter your username.',
  bad_un: 'Invalid character.',
  short_un: 'Minimum 5 characters.',
  long_un: 'Maximum 20 characters.',
  invalid_un: 'Invalid username.',
  invalid_user: 'Username is not available.',
  
  reserved_un : 'Sorry, invalid username.',
  un_taken: ' is not available.',
  un_available: ' is available!',
  
  blank_pswd: 'Please enter your password.',
  blank_oldpswd: 'Please enter your current password.',
  bad_pswd: 'Invalid character.',
  short_pswd: 'Minimum 5 characters.',
  long_pswd: 'Maximum 20 characters.',
  invalid_pswd_letter: 'Your password should have at least one alphabet.',
  invalid_pswd_special: 'Your password should have at least one special character or number',
  invalid_pswd: 'Your password should have at least one letter and one special character or number',
  blank_pswd2: 'Please re-enter your password.',
  mismatch_pswd2: 'Passwords do not match.',

  blank_pswd_new: 'Please enter your new password.',
  blank_pswd2_new: 'Please re-enter your new password',
  mismatch_pswd2_new: 'Passwords do not match.',
  
  
   
  blank_email: 'Please enter your email.',
  bad_email: 'Invalid character.',
  invalid_email: 'Please enter a valid and complete email address.',
  i_e: 'Please enter a valid email address.',
  invalid_emailid: 'Email address already exists.',
  same_email:'Alternate email and email is same.',
  
  blank_name: 'Provide Name',
  short_name: 'Your name should have a minimum of 3 characters.',
  long_name: 'Provide less than or equal to 60 characters',
  bad_name: 'Invalid character.',
  bad_username: 'Provide Valid Name',
  
  date_format:	'The date format should be : dd/mm/yyyy',
  date_month:	'Please enter a valid month',
  date_year:	'Please enter a valid 4 digit year between '+minYear+' and '+maxYear,
  date_day:		'Please enter a valid day',
  date_valid:	'Please enter your date',
  
  blank_contact: 'Please provide atleast one contact number',
  short_area: 'Area code should have a minimum of 3 characters.',
  long_area: 'Area code should not exceed 10 characters.',
  invalid_area: 'Invalid phone number.',
  enter_res: 'Please enter your residence phone number.',
  only_area_no_resphone: 'Please enter telephone no.',
  enter_area:'Please enter your area code.',
  
  short_cntry:'Country code should have a minimum of 2 characters.',
  long_cntry:'Country code should not exceed 5 characters.',
  enter_mob:'Please enter your mobile number.',
  enter_cntry:'Please enter your country code.',
  
  short_ph: 'Residence No. should have a minimum of 5 characters.',
  blank_phone: 'Please enter your phone number.',
  long_ph: 'Residence No. should not exceed 10 characters.',

  invalid_phoneno: 'Invalid phone number.',
  blank_contact: 'Please provide atleast one contact number',
  blank_mobile: 'Provide your mobile number.',
  short_mob: 'Mobile No. should have a minimum of 10 characters.',
  long_mob: 'Mobile No. should not exceed 20 characters.',
  pre_zero:'Please remove preceding zero',
  
  enter_area: 'please enter your area code',
  
  blank_selectstate: 'Select your location',
  wrong_select: "You have selected an invalid option",
  blank_exp: 'Provide total years of experience',
  blank_m: 'Provide month',
  blank_y: 'Provide year',	 
  spec_yop:'Area of Specialization and year of passing is mandatory',
  
  skill_msg:'Last Used,Proficiency Level and Experience is mandatory',
  enter_num_lastUsed:'Invalid entry in Last Used',
  
  ref_msg:'Check your reference.Please provide either phone or email',
  
  blank_key: 'Provide keyskills',
  invalid_key: 'Provide valid keyskills',
  keyskill_max: 'Key skills can contain a maximum of 250 characters.',
  blank_selectindustry: 'Select your industry',
  blank_selectpreferedJobLocation: 'Select your prefered location',
  blank_selectcurrentIndustry: 'Select your Industry',
  blank_selectemploymentType: 'Select employment type',
  
  blank_selectfunctionalArea: 'Select functional area',
  
  blank_role: 'Provide your role',
  bad_role: 'Invalid character.',
  
  blank_employer: 'Provide your employer',
  bad_employer: 'Invalid character.',
  
  blank_selectcaddCentre: 'Select your CADD Centre',
  blank_selectcaddSegment: 'Select your CADD Segment',
  blank_selectcaddCourse: 'Select your CADD Course Level',
  blank_yop:'Provide Year of passing',
  bad_yop:'Invalid character',
  blank_selecttrainerCentre:'Select prefered centre',
  
  blank_rname: 'Provide Resume Headline',
  invalid_rname: 'Invalid Resume Headline',
  long_rname: 'Resume headline can contain maxmium 70 characters.',
  blank_file: 'Blank file',
  type_file: 'You may upload Word / Acrobat / Text (.doc / .pdf / .txt) documents.',
  
  
  /*employer registration messages*/
  
  blank_empun: 'Please enter your username.',
  bad_empun: 'Invalid character.',
  short_empun: 'Minimum 5 characters.',
  long_empun: 'Maximum 20 characters.',
  invalid_empun: 'Invalid username.',
  invalid_empuser: 'Username is not available.',
  
  reserved_empun : 'Sorry, invalid username.',
  empun_taken: ' is not available.',
  empun_available: ' is available!',
  
  blank_emppswd: 'Please enter your password.',
  blank_empoldpswd: 'Please enter your current password.',
  bad_emppswd: 'Invalid character.',
  short_emppswd: 'Minimum 5 characters.',
  long_emppswd: 'Maximum 20 characters.',
  invalid_emppswd_letter: 'Your password should have at least one alphabet.',
  invalid_emppswd_special: 'Your password should have at least one special character or number',
  invalid_emppswd: 'Your password should have at least one letter and one special character or number',
  blank_emppswd2: 'Please re-enter your password.',
  mismatch_emppswd2: 'Passwords do not match.',

  blank_emppswd_new: 'Please enter your new password.',
  blank_emppswd2_new: 'Please re-enter your new password',
  mismatch_emppswd2_new: 'Passwords do not match.',
  
  blank_empemail: 'Please enter your email.',
  bad_empemail: 'Invalid character.',
  invalid_empemail: 'Please enter a valid and complete email address.',
  i_e: 'Please enter a valid email address.',
  invalid_empemailid: 'Email address already exists.',
  blank_selectcompanyCategory: 'Select company Category',
  
  blank_contactname: 'Provide contact Name',
  short_contactname: 'Contact name should have a minimum of 2 characters.',
  long_contactname: 'Provide less than or equal to 100 characters',
  
  long_designation: 'Provide less than or equal to 150 characters',
  
  blank_companyname: 'Provide Company Name',
  short_companyname: 'Your company name should have a minimum of 3 characters.',
  long_companyname: 'Provide less than or equal to 250 characters',
  bad_companyname: 'Invalid character.',
  blank_selectlocation: 'Select your location',
  
  blank_cmpaddress:'Provide company address',
 
  blank_jobcode:'Provide job code',
  short_jobcode:'Your job code should have a minimum of 2 characters.',
  long_jobcode:'Provide less than or equal to 50 characters',
  
  blank_jobtitle:'Provide job title',
  short_jobtitle:'Your job title should have a minimum of 2 characters.',
  long_jobtitle:'Provide less than or equal to 250 characters',
  blank_selectjoblocation: 'Select location',
  
  blank_reqDet:'Provide requirement details',
  short_reqDet:'Your requirement details should have a minimum of 2 characters.',
  
  blank_jobrole: 'Provide job role',
  bad_jobrole: 'Invalid character.',
  
  blank_jobcompensation: 'Provide job compensation',
  bad_jobcompensation: 'Invalid character.',
  
  blank_qualification:'Provide job qualification',
  
  blank_contactInfo:'Provide contact Information',
  
  bad_contemail: 'Please enter a valid and complete email address.',
  
  loading:'',
  
  blank_cn:'Provide name',
  short_cn:'Minimum 2 characters.',
  long_cn:'MAximum 45 characters.',
  
  blank_cc:'Provide Content'
   
  }