/**
 * @author emanuelb
 */

	function ShowHintMsg(parentDivRow, input){

		var dynamic_hint_msg_id = 'dynamic_hint_msg';
		var msg = '';
		var DOMObj = document.createElement("b");

		DOMObj.setAttribute('id', dynamic_hint_msg_id);
		
		switch (input)
		{
			case 'username':
				msg = "Choose a username between 4 and 20 characters long. (Case sensitive) Remember, other users of FlirtXchange will see this so be imaginative!.";
				break;
			case 'email':
				msg = "Please enter your primary email address, we will send you an activation email containing a link which you must follow to activate your account.  You wont be able to log into FlirtXchange until you have activated your account. <span class='private warning_color'>This information will be hidden from other users.</span>";
				break;
			case 'email_disabled':
				msg = "For account security reasons it is not possible to change or edit your email address.<span class='private warning_color'>This information will be hidden from other users.</span>";
				break;
			case 'password':
				msg = "Enter a password between 4 and 20 characters long. (Case sensitive)";
				break;
			case 'password2':
				msg = "Please re-type your password exactly..";
				break;
			case 'current_password':
				msg = "In order to change your password you must first specify your current password.";
				break;
			case 'new_password':
				msg = "Enter a new password between 4 and 20 characters long. (Case sensitive)";
				break;
			case 'new_password2':
				msg = "Please re-type your new password exactly..";
				break;
			case 'birthday':
				msg = "Please enter your birth date. You must be 18 years or older to join FlirtXchange";
				break;
			case 'birthday_edit':
				msg = "Please enter your birth date. You must be 18 years or older to use FlirtXchange";
				break;
			case 'country':
				msg = "Choose your country, so that we can show other members where you are from.";
				break;
			case 'region':
				msg = "Select the region where you live. This will help us to find other members living in your region!";
				break;
			case 'zip':
				msg = "Enter the postcode/zip of your home address.  This will help us to find users living in your area! <span class='private warning_color'>This information will be hidden from other users.</span>";
				break;
			case 'shout':
				msg = "Type a message for other FlirtXchange users to see - let them know what you are up to, and how flirty you are feeling!";
				break;
			case 'into':
				msg = "Why are you here on FlirtXchange? What are you looking for? What are you into?";
				break;
			case 'security_code':
				msg = "Please enter the 5 digit security code shown in the white box.";
				break;
			case 'host_name':
				msg = "Please enter your full name.";
				break;
			case 'host_birthday':
				msg = "Chat hosts must be 18 years of age or older.";
				break;
			case 'host_email':
				msg = "Please provide a valid email address so that we can contact you, should you be successful in your application.";
				break;
			case 'host_phone':
				msg = "Please provide a valid phone number so that we can contact you, should you be successful in your application";
				break;
			case 'host_country':
				msg = "Please choose the country where you are normally resident.";
				break;
			case 'host_hours':
				msg = "Please give an indication of the hours you would be available to work during the week and on weekends. We're looking for chat hosts 24x7 but please try to be realistic with your information.";
				break;
			case 'host_description':
				msg = "Write as much as you like, including why you think you'd make a good chat host on flirtXchange.";
				break;				
			default:
				msg = "";
		}
		
		$(dynamic_hint_msg_id).style.display = 'none';
		
		//Remove hint msg id
		$(dynamic_hint_msg_id).parentNode.removeChild($(dynamic_hint_msg_id));
		
		//Add hint message
		DOMObj.innerHTML = msg;
		
		//Add hint msg id in input parent				
		parentDivRow.appendChild(DOMObj);
		
		$(dynamic_hint_msg_id).style.display = 'block';
	}
	
	function HideHintMsg(){
		var dynamic_hint_msg_id = 'dynamic_hint_msg';
		$(dynamic_hint_msg_id).style.display = 'none';
	}

