function clearbox () {
		
	$("#login_email").focus(function() {
		var value = $(this).attr('value');
	
		if (value == "Email") {
		$(this).attr('value', '');
		}
	
	 });
	
	$("#login_email").blur(function() {
		var value = $(this).attr('value');
	
		if (value == "") {
		$(this).attr('value', 'Email');
		}
	
	 });
	
	$("#login_password_text").focus(function() {
		var value = $(this).attr('value');
	
		if (value == "Password") {
			$(this).attr('value', '');
			$(this).attr('style', 'display:none;');
			$('#login_password').attr('style', 'display:inline;');
			$('#login_password').focus();
		}
	
	 });
	
	$("#login_password").blur(function() {
		var value = $(this).attr('value');
	
		if (value == "") {
			$(this).attr('style', 'display:none;');
			$('#login_password_text').attr('style', 'display:inline;');
			$('#login_password_text').attr('value', 'Password');
		}
	
	 });
	
	
	
	
	$("#lockernumber").focus(function() {
		var value = $(this).attr('value');
	
		if (value == "Locker number") {
		$(this).attr('value', '');
		}
	
	 });
	
	$("#lockernumber").blur(function() {
		var value = $(this).attr('value');
	
		if (value == "") {
		$(this).attr('value', 'Locker number');
		}
	
	 });
	
	
	var specialValue =  'Any special instructions? E.g. stain details, damage info, repairs or alterations needed.';
	$("#special").text(specialValue);
	$("#special").focus(function() {
		$(this).text('');
	 });
	 	 
	$("#special").blur(function() {
		var value = $(this).attr('value');
	
		if (value == "") {
			$(this).text(specialValue);
		}
	 });
	 
	var recommendedValue =  'Let us know who recommended you, and they will enjoy 25% off their next order once you have placed your first!';
	$("#recommendedby").text(recommendedValue);
	$("#recommendedby").focus(function() {
		$(this).text('');
	 });	 

}

$(document).ready(function() {
   clearbox();
});

