var intScrollPos; 
var strModal;
var strWrapper;

function showModal(modalName,wrapperName) {
	//scroll to the top of the HTML
	intScrollPos = $$("body")[0].scrollTop;
	$$("body")[0].scrollTop = 0;
	$$("body")[0].style.overflow = "hidden";
	strModal = modalName;
	strWrapper = wrapperName;
	$(strModal).style.display = "block";
	$(strWrapper).style.display = "none";
}

function hideModal() {
	//scroll to the top of the HTML
	$(strModal).style.display = "none";
	$(strWrapper).style.display = "block";
	$$("body")[0].style.overflow = "auto";
	$$("body")[0].scrollTop = intScrollPos;
}
