var ERRORS = {
	show: function(error){
		var msg = '';
		switch(error){
			
			/* signup */
			case '-1':
				msg = 'Ooops...the access code appears to be incorrect. please try again.';
				alert(msg);
			break;
			case '-2':
				msg = 'Ooops...username already exists. please try again.';
				alert(msg);
			break;
			case '-3':
				msg = 'Ooops...email appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-4':
				msg = 'Ooops...your email address already exists in our system. \n\nIt must be unique to register. \n\nplease try again.';
				alert(msg);
			break;
			case '-5':
				msg = 'Ooops...You must be at least 18 years of age to register. please try again.';
				alert(msg);
			break;
			case '-6':
				msg = 'Ooops...Your password must match your confirmation password. please try again.';
				alert(msg);
			break;
			case '-7':
				msg = 'Ooops...No email found in our database. please try again.';
				alert(msg);
			break;
			case '-8':
				msg = 'Ooops...username cannot contain spaces, semicolons, double-quotes, or apostrophes. \n\nplease correct it and try again.';
				alert(msg);
			break;
			case '-9':
				msg = 'Ooops....no cities could be retrieved. \n\nplease try again in a few seconds.';
				alert(msg);
			break;
			case '-10':
				msg = 'Ooops....description must be at least 100 chars. please try again.';
				alert(msg);
			break;
			/* signup */
			
			
			/* login */
			case '-11':
				msg = 'Ooops...username not found. please check the spelling and try again.';
				alert(msg);
			break;
			case '-12':
				msg = 'Ooops...your account is currently disabled. please contact our technical support for further assistance.';
				alert(msg);
			break;
			case '-13':
				msg = 'Ooops...password specified appears to be incorrect. please check the password and try again.';
				alert(msg);
			break;
			case '-14':
				msg = 'Ooops...You must be logged in to use this feature. please login.';
				alert(msg);
			break;
			/* login */
			
			
			/* STF */
			case '-21':
				msg = 'Ooops...profile does not exist. please try again.';
				alert(msg);
			break;
			case '-22':
				msg = 'Ooops...MESSAGE must be specified. please try again.';
				alert(msg);
			break;
			case '-23':
				msg = 'Ooops...SUBJECT must be specified. please try again.';
				alert(msg);
			break;
			case '-24':
				msg = 'Ooops...EMAIL #1 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-25':
				msg = 'Ooops...EMAIL #2 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-26':
				msg = 'Ooops...EMAIL #3 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-27':
				msg = 'Ooops...EMAIL #1 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-28':
				msg = 'Ooops...EMAIL #2 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-29':
				msg = 'Ooops...EMAIL #3 appears to have an invalid format. please try again.';
				alert(msg);
			break;
			case '-30':
				msg = 'Ooops...at least one email must be specified. please try again.';
				alert(msg);
			break;
			/* STF */
			
			
			/* signup continues */
			case '-31':
				msg = 'Ooops...headline must be at least 10 chars. please try again.';
				alert(msg);
			break;
			/* signup continues */
			
			
			/* messages */
			case '-41':
				msg = 'Ooops...no messages were selected. please try again.';
				alert(msg);
			break;
			case '-42':
				msg = 'Ooops...no message was specified. please try again.';
				alert(msg);
			break;
			case '-43':
				msg = 'Ooops...no receiver has been specified.';
				alert(msg);
			break;
			case '-44':
				msg = 'Ooops...no draft has been specified.';
				alert(msg);
			break;
			case '-45':
				msg = 'Ooops...it seems that you have sent more than 5 messages within the last 15 mins. \n\nDue to our continuous commitment to keep the site spam-free, your messaging privileges will be suspended for 30 mins.\n\nWe apologize for the inconvenience.';
				alert(msg);
			break;
			/* messages */
			
			
			/* buddies */
			case '-51':
				msg = 'Ooops...this person is already your friend.';
				alert(msg);
			break;
			case '-52':
				msg = 'Ooops...no message was specified. please try again.';
				alert(msg);
			break;
			case '-53':
				msg = 'Ooops...you cannot mark yourself as friend. Nice try!';
				alert(msg);
			break;
			/* buddies */
			
			
			/* photos */
			case '-61':
				msg = 'Ooops...no photo specified. please try again.';
				alert(msg);
			break;
			case '-62':
				msg = 'Ooops...you can only upload a maximum of 15 photos.';
				alert(msg);
			break;
			case '-63':
				msg = 'Ooops...only the following file extensions are permitted : .JPG, .BMP, .GIF, .PNG. please specify another photo.';
				alert(msg);
			break;
			case '-64':
				msg = 'Ooops...maximum photo size cannot be more than 5 MB. please specify another photo.';
				alert(msg);
			break;
			case '-65':
				msg = 'Ooops...no photo found. please try again.';
				alert(msg);
			break;
			/* photos */
			
			
			/* voting */
			case '-71':
				msg = 'Ooops...no vote could be recorded. please try again.';
				alert(msg);
			break;
			/* voting */
			
			
			/* IM */
			case '-81':
				msg = 'Ooops...no user was selected. please try again.';
				alert(msg);
			break;
			case '-82':
				msg = 'Ooops...no comments were selected. please try again.';
				alert(msg);
			break;
			/* IM */
			
			
			/* blog */
			case '-91':
				msg = 'Ooops...no website was selected. please try again.';
				alert(msg);
			break;
			case '-92':
				msg = 'Ooops...we are having difficulties connecting to your blog. please try again later.';
				alert(msg);
			break;
			case '-93':
				msg = 'Ooops...your username/password for your blog appears to be incorrect. \n\nPlease make necessary changes and then try again.';
				alert(msg);
			break;
			case '-94':
				msg = 'Ooops...you must specify the login information for your blog before you can proceed. \n\nPlease make necessary changes and then try again.\n\nNote: You can find the seetings under "MyProfile, Edit Settings"';
				alert(msg);
			break;
			case '-99':
				msg = 'Ooops...we currently support only following blogs:\n\n- Wordpress\n\n- Live Journal\n\n- Typepad\n\n-Movable Type\n\nWe apologize for the inconvenience.';
				alert(msg);
			break;
			/* blog */
			
			
			/* spam */
			case '-101':
				msg = 'Ooops...an error has occured. please try again.';
				alert(msg);
			break;
			case '-102':
				msg = 'Ooops...no comment was selected. please try again.';
				alert(msg);
			break;
			case '-103':
				msg = 'Ooops...no site was selected. please try again.';
				alert(msg);
			break;
			case '-104':
				msg = 'Ooops...no user was selected. please try again.';
				alert(msg);
			break;
			/* spam */
			
			
			/* profile */
			case '-111':
				msg = 'Ooops....an error has occured. no profile details could be retrieved.';
				alert(msg);
			break;
			case '-112':
				msg = 'Ooops....an error has occured. the profile is currently not available for viewing.';
				alert(msg);
			break;
			case '-113':
				msg = 'Ooops...the profile is currently not available for viewing. It has been temporarily de-activated.';
				alert(msg);
			break;
			case '-114':
				msg = 'Ooops...the profile is currently not available for viewing. It has been put on hold by the user.';
				alert(msg);
			break;
			case '-115':
				msg = 'Ooops...';
				alert(msg);
			break;
			case '-116':
				msg = 'Ooops...';
				alert(msg);
			break;
			case '-117':
				msg = 'Ooops...';
				alert(msg);
			break;
			case '-118':
				msg = 'Ooops...';
				alert(msg);
			break;
			case '-119':
				msg = 'Ooops...';
				alert(msg);
			break;
			/* profile */
			
			case '-995':
				msg = 'Ooops...your messaging privileges have been suspended due to your extensive spamming activities.\n\nPlease contact the system administrator.';
				alert(msg);
			break;
			case '-996':
				msg = 'Ooops....an unknown error has occured while processing your request. \n\nPlease refresh your page and try again.'; /* session.captcha_hash error */
				alert(msg);
			break;
			case '-997':
				msg = 'Ooops...we apologize, but this feature is currently being updated. \n\nPlease check back later.'; /* under construction */
				alert(msg);
			break;
			case '-998':
				msg = 'Ooops...you cannot use this feature on your own profile.'; /* self profile */
				alert(msg);
			break;
			case '-999':
				msg = 'Ooops...email not found. please check the spelling and try again.'; /* forgot email */
				alert(msg);
			break;
			case '-1000':
				msg = 'Ooops....an error has occured while trying to contact the server.'; /* server errors */
				alert(msg);
			break;
			
			//if text message is passed, show
			default:
				alert(error);
			break;
		}
		return false;
	}
}
