function showRegistrationBox() {
	var iframeMarkup = '<iframe src="/common-pages/create-account-modal/';
	iframeMarkup += (("https:" == document.location.protocol) ? "https" : "http");
	iframeMarkup += '" height="680" width="630" style="overflow: hidden; border:0; margin:0;padding:0">';
	$.modal(
		iframeMarkup, {
			minHeight: 680,
			minWidth: 630,
			maxHeight: 680,
			maxWidth: 630,
			autoResize: true,
			autoPosition: true,
			escClose: true,
			opacity: 60,
			overlayCss: { backgroundColor: "#000" },
			overlayClose: true,
			containerCss: { height: 696, width: 646 },
			onClose: modalOnClose,
			onShow: function (d) {
				// replace '0px' with your value, or remove the property
				d.container.css({ position: 'absolute' });
			}
		}
	)
}

function modalOnClose() {
	var nextUrl = $('#navnexturl');
	if (typeof nextUrl != 'undefined' && nextUrl != null) {
		url = nextUrl.val();
		if (typeof url != 'undefined' && url != null && url != '') {
			nextUrl.val('');
			window.location = url;
		} else {
			window.location.reload(true);
		}
	} else {
		window.location.reload(true);
	}
	$.modal.close();
}


