$(function() {
		if ($("#headerEmailField").length > 0) {
			$("#headerEmailField").focus ( function () {
				handleFocus ($(this));
			});
			$("#headerEmailField").blur ( function () {
				resetFocus ($(this));
			});
			resetFocus ($("#headerEmailField"));
			
			$("#headerPasswordField").focus ( function () {
				handleFocus ($(this));
			});
			$("#headerPasswordField").blur ( function () {
				resetFocus ($(this));
			});
			resetFocus ($("#headerPasswordField"));
			//alert ("Hi" + $("#statusSearch").length);
			
			
		}
		$("#statusSearch").click ( function () {
			//	alert ("Clicked");
				if ($("#userSelect").val () == "") {
					return;
				}
				
				$("#LearningItemsSearchForm").submit ();
			});
	});
	
	
function handleFocus (item) {
	if(item.val()==item.attr("alt")) {
           item.val("");
    }
}
function resetFocus (item) {
	if(item.val()=="") {
           item.val(item.attr("alt"));
    }
}