jQuery(document).ready(function($) {	
	$("#email").click(function () {
		if($(this).val()=='email') $(this).val('');	
	});
	$("#pword").focus(function () {
		if($(this).val()=='password') {
			$(this).val('');	
			$(this).replaceWith('<input id="pword" name="login_pword" class="boxtesto" type="password">');
			$("#pword").focus();
		}
	});
	$(".rememberMe").click(function () {									 	
		jQuery("#rememberMe").dialog('open'); 
		return false;		
	})
	$("#recoverPwd").click(function () {									 	
		if(!isValidEmail($("#recoverEmail").val())) 
			$("#recoverMsg").html("* Indirizzo Email non valido");
		else {
			$.post("recover.asp", {email : $("#recoverEmail").val()},
				function(data) {
					$("#recoverMsg").html(data);
			});
			return;
		}
	})
	
	$("#rememberMe").dialog({
			bgiframe: false,
			autoOpen: false,
			resizable: false,
			draggable: false,
			width: 400,
			modal: true,
			overlay: {
				backgroundColor: '#000',
				opacity: 0.8
			}
	});
}); 


