function showChildAttribute(contactQuery){
	
	if(contactQuery == 'Question about my order'){
		jQuery('#childFieldOrder').slideDown();
		jQuery('#subjectValue').addClass('required-entry');
		jQuery('#childFieldOrder .subjectvaluelabel').text('Order Id');
	}else if(contactQuery == 'Question about products'){
		jQuery('#childFieldOrder').slideDown();
		jQuery('#subjectValue').addClass('required-entry');
		jQuery('#childFieldOrder .subjectvaluelabel').text('Product Name');
	}else{
		jQuery('#childFieldOrder').slideUp();
	}
	
}

/*jQuery(window).load(function(){
	jQuery('#myInput').css('font-weight','bold');
});*/

jQuery(document).ready( function(){
		/*jQuery('.personalisedBottom input:text').keyup(
		
				function(){
						personaLvalue = jQuery(this).val();
						if(!isAlphanumeric(personaLvalue)){
							strLength = personaLvalue.length;
							personaLValid = personaLvalue.substr(0,strLength-1);
							jQuery(this).val(personaLValid);
						}
				}															 
		);*/
		
		jQuery('.personalisedBottom input:text').each(function(index,events){
			if(jQuery(this).hasClass('datetime-picker')){
				jQuery('.personalisedBottom input:text').keypress(function(){
																			events.blur();
				});
				jQuery(this).attr('readonly', 'readonly');			
			}
		});
		
		jQuery('.personalisedBottom input:file').each(function(){
			jQuery(this).addClass('product-custom-option validate-image required-entry')
		});
		
		jQuery('#myInput').focus(function(){
			
			if(jQuery(this).val()=='Enter keyword or product number'){
				
				jQuery(this).val('');
			
			}
		
		});
		
		jQuery('#myInput').focusout(function(){
			
			if(jQuery(this).val()==''){
				
				jQuery(this).val('Enter keyword or product number');
				jQuery(this).css('font-weight','bold');
			}
		
		});
		jQuery('#myInputBottom').focus(function(){
			
			if(jQuery(this).val()=='Enter keyword or product number'){
				
				jQuery(this).val('');
			
			}
		
		}); 
		
		jQuery('#myInputBottom').focusout(function(){
			
			if(jQuery(this).val()==''){
				
				jQuery(this).val('Enter keyword or product number');
				jQuery(this).css('font-weight','bold');
			}
		
		});
					   
	 }
	 
);

function isAlphanumeric(value){
	
	return (/^[A-Za-z0-9- ]+$/.test(value));
}



