function checkform(){
	return false;
}

$(document).ready(function() {	
	var x = 'center';
	var y = 'top';



	$("input[name='keywords']").click(function(){
		if($(this).val() == 'Search Mary Kay'){$(this).val('');}
	});

	$("input[name='username']").click(function(){
		if($(this).val() == 'Please enter your e-mail address.'){$(this).val('');}
	});

	$(".checkout").click(function(){
		
	
		$( "#dialog-confirm" ).dialog({
			resizable: false,
			height:150,
			width:450,
			modal: true,
			position: [x, y],
			buttons: {
				"Continue": function() {$(location).attr('href','/mymk/checkout');},
				Cancel: function() {
					$( this ).dialog( "close" );
				}
			}
		});
	});

	$( "#dialog-confirm-product" ).dialog({
			resizable: false,
			height:150,
			width:420,
			modal: true,
			position: [x, y],
			buttons: {
				"View Bag": function() {$(location).attr('href','/mymk/bag');},
				"Continue Shopping": function() {
					$( this ).dialog( "close" );
				}
			}
		});

	$( "#dialog-contact-consultant" ).dialog({
			resizable: false,
			height:520,
			width:420,
			autoOpen: false,
			modal: true,
			position: [x, y],
			buttons: {
				"Send Message": function() {
					document.forms["contact-consultant"].submit();
					$( this ).dialog( "close" );
				},
				"Close": function() {
					$( this ).dialog( "close" );
				}
			}
		});

$(".contact-consultant").click(function(){
	$( "#dialog-contact-consultant" ).dialog('open');
return false;
});

$("#aForgotPass").click(function(){
	$( "#dialog-forgot-password" ).dialog({
			resizable: false,
			height:300,
			width:390,
			modal: true,
			dialogClass: 'notitle',
			position: [x, y],
			buttons: {
				"Reset Password": function() {
					document.forms["forgot_password_form"].submit();
					$( this ).dialog( "close" );
				},
				"Close": function() {
					$( this ).dialog( "close" );
				}
			}
		});
});
});
