function GreyOutPopup(objName, greyOutId, popupId, waitTime) {
	this.greyOutId = greyOutId;
	this.popupId = popupId;
	setTimeout(objName+".showPopup()", waitTime * 1000);
}

GreyOutPopup.prototype.showPopup = function showPopup() {
	document.getElementById(this.greyOutId).style.display = "block";
	document.getElementById(this.popupId).style.display = "block";
}

GreyOutPopup.prototype.hidePopup = function hidePopup() {
	document.getElementById(this.greyOutId).style.display = "none";
	document.getElementById(this.popupId).style.display = "none";
}

