﻿/// <summary>
// Summary description for errormsgs
/*To have all the error msgs used in the pages*/
/// </summary>

/* Error code description
     * e1 - e30    -  Quick and Student registration
     * e31 - e50-  Create a group
     * e51 - e100  -  Staff registration
     * e101 - e150 -  Advertisers registration 
     * e251 -e280 - Customize group
*/
var errmsgs = new Object;
var errmsg='Unknown ErrorCode';

errmsgs.e1="Your First Name needs to be filled in.";
errmsgs.e2="Your Last Name needs to be filled in.";
errmsgs.e3="Your email address needs to be filled in.";
errmsgs.e4="You must enter a password.";
errmsgs.e5="Please ensure you have confirmed your Password";
errmsgs.e6="Please select your usertype";
errmsgs.e7="The university you belong to needs to be filled in.";
errmsgs.e8="Your First Name should contain only letters, no numeric or special characters.";
errmsgs.e9="Your Last Name should contain only letters, no numeric or special characters.";
errmsgs.e10="Please enter a valid email address";
errmsgs.e11="Your Password must contain at least 5 characters.";
errmsgs.e12="Please avoid using $@#%^&*<>?:;{}!+[ ]|/";
errmsgs.e13="Your confirm password should match the one entered above.";

errmsgs.e14="Your degree subject needs to be selected.";
errmsgs.e15="Your year of study needs to be selected.";
errmsgs.e16="Your year of graducation needs to be selected.";
errmsgs.e17="Please select your gender";
errmsgs.e18="Please select your type UK/International";
errmsgs.e19="Please select your Living";
errmsgs.e20="Please select a hall in university residence";
errmsgs.e21="Please enter pincode for your private accomodation";
errmsgs.e22="Please enter valid mobile number";
errmsgs.e23="Please accept the terms and condition and privacy policy";
errmsgs.e24="Please enter valid pincode for your private accomodation";
errmsgs.e25="Please select either hallname from dropdown or type your residence";
errmsgs.e26="Please enter your residence";
errmsgs.e27="Please enter valid residence";
errmsgs.e28="Please enter your degree title";
errmsgs.e29="Please enter valid degree title";
errmsgs.e30="Please click suggest button to suggest your residence to admin";

errmsgs.e31="Please select your group type";
errmsgs.e32="Please select category";
errmsgs.e33="Please select sub category";
errmsgs.e34="Please enter group name";
errmsgs.e35="Please enter valid group name";
errmsgs.e36="Your Name should only contain letters and no numerics.";
errmsgs.e37="Please enter valid postcode";
errmsgs.e38="Please enter valid URL";
errmsgs.e39="Please enter module code";
errmsgs.e40="Please enter valid module code";
errmsgs.e41="Please enter valid city";
errmsgs.e42="Please enter valid address";
errmsgs.e43="You cant choose other universities, after chosen National";
errmsgs.e44="You cant associate more than one address to a university";
errmsgs.e45="Please choose universities for the group";
errmsgs.e46="Group name already exists for this category. Please give different name";
errmsgs.e47="Please enter name to search"
errmsgs.e48="Please select atleast one friend to invite"
errmsgs.e49="Please enter invite message"
errmsgs.e50="Please accept to Picture terms and conditions"

errmsgs.e51="Please enter the text you see in the image for verification.";
errmsgs.e52="Please accept the terms and condition and privacy policy";
errmsgs.e53="please select your role";
errmsgs.e54="Your role needs to be filled in.";
errmsgs.e55="Please select your gender";
errmsgs.e56="Please enter the valid primary office/work station";
errmsgs.e57="Please upload only jpg,gif,bmp or png image";
errmsgs.e58="Please upload only jpg,gif,bmp,png or pdf file";
errmsgs.e59="Please select the valid Date of Birth";
errmsgs.e60="Please select the Department or Department needs to be filled in.";
errmsgs.e61="Please enter the valid Role";
errmsgs.e62="Please enter the valid Department";
errmsgs.e63="Please select the month and year field";
errmsgs.e64="Please select the day and year field";
errmsgs.e65="Please select the day and month field";
errmsgs.e66="Please select the year field";
errmsgs.e67="Please select the day field";
errmsgs.e68="Please select the month field";

errmsgs.e101="Your Company/Brand Name needs to be filled in.";
errmsgs.e102="Your Company/Brand Name should only contain letters and numerics.";
errmsgs.e103="Your First Names needs to be filled in.";
errmsgs.e104="Your First Name should only contain letters and no numerics.";
errmsgs.e105="Your Last Names needs to be filled in.";
errmsgs.e106="Your First Name should only contain letters and no numerics.";
errmsgs.e107="Your email address needs to be filled in.";
errmsgs.e108="Please enter a valid email address";
errmsgs.e109="You must enter a password.";
errmsgs.e110="Your Password must contain at least 5 characters.";
errmsgs.e111="Please ensure you have confirmed your Password by re-entering it.";
errmsgs.e112="Your password should match the one entered above.";
errmsgs.e113="Your Agency/Media Buyer Name should only contain letters and no numerics.";
errmsgs.e114="There is already a Student Aid Account associated with this email address.";
errmsgs.e115="Your company group information needs to be selected or filled.";
errmsgs.e116="Your company sector needs to be selected.";
errmsgs.e117="YourAgency/Media Buyer Name needs to be filled in.";
errmsgs.e118="Your job title needs to be filled in.";
errmsgs.e119="Your telephone number needs to be filled in.";
errmsgs.e120="Your company address needs to be filled in.";
errmsgs.e121="Please enter the text you see in the image for verification.";
errmsgs.e122="Please accept the terms and condition and privacy policy.";
errmsgs.e123="Your telephone number should only contain numerics.";
errmsgs.e124="Your mobile number should only contain numerics.";
errmsgs.e125="Please enter the valid website address.";
errmsgs.e126="Please select the advertisor type.";
errmsgs.e127="Your Company/Group name should only contain letters and no numerics.";
errmsgs.e128="Please enter the correct text you see in the image for verification.";
errmsgs.e129="Your Job title should only contain letters and no numerics.";
errmsgs.e130="Please enter the valid company address.";
errmsgs.e131="Please enter the valid interest.";
errmsgs.e132="Please enter the username.";
errmsgs.e133="Please enter the valid username.";
errmsgs.e134="Please enter the password.";

errmsgs.e251="Please choose any one option to enable file sharing"
errmsgs.e252="Please choose any one option to enable file photos"
errmsgs.e253="Please choose any one option to enable file videos"
errmsgs.e254="Please enter valid position in number"
errmsgs.e255="The university you have entered does not exist."
function geterrmsg(errcode)
{
    if (!errmsgs[errcode]){return errmsg;}
    errmsg=errmsgs[errcode];
    return errmsg;
}
