/**
 * Login Scripts
 * 
 */
$(document).ready(function(){
	
	$("#txtCustomerNo").focus( function() {
		$("span#customerLabel").hide();
	}).blur( function() {
		if($(this).val() == "")
		{
			$("span#customerLabel").show();
		}
	});
	
	$("#txtPassword").focus( function() {
		$("span#passwordLabel").hide();
	}).blur( function() {
		if($(this).val() == "")
		{
			$("span#passwordLabel").show();
		}
	});
	
	$("#txtAccountNo").focus( function() {
		$("span#customerLabelRetreive").hide();
	}).blur( function() {
		if($(this).val() == "")
		{
			$("span#customerLabelRetreive").show();
		}
	});


	$("span#customerLabel").click( function() {
		$(this).hide();
		$("#txtCustomerNo").focus();
	});
	
	$("span#passwordLabel").click( function() {
		$(this).hide();
		$("#txtPassword").focus();
	});
	
	$("span#customerLabelRetreive").click( function() {
		$(this).hide();
		$("#txtAccountNo").focus();
	});
	
	/**$("a#forgot-text-link").click( function() {
		$("#login-forgot").fadeIn('slow');
		$("#login-login").hide();
		
	});*/
	
	$("a#forgot-password-link").click( function() {
		$(this).hide();
		$("a#forgot-text-link").show();
		$("#login-forgot").hide();
		$("#login-login").fadeIn('slow');
		
	});
	
	$("a#forgot-text-link").click( function() {
		$(this).hide();
		$("a#forgot-password-link").show();
		$("#login-forgot").fadeIn('slow');
		$("#login-login").hide();
		
	});
	
	
					   
});