function closeWindow() {
	parent.document.getElementById('hiddenForm').style.display = 'none';
	parent.document.getElementById('hiddenFormBG').style.display = 'none';
	window.parent.usePopup = false; // sets this to false in the parent window
	parent.document.getElementById('hiddenForm').style.top = "0px";
};

function change_iFrame(iUrl, iHeight) {
    parent.scroll(0, 0);
	parent.document.getElementById('popup_iFrame').src = iUrl;
	parent.document.getElementById('popup_iFrame').height = iHeight;
}


var LightBoxForm = function(hiddenid, hiddenFormBG, iUrl, iHeight, iWidth) {
		
	this.show = function() {
			
		document.getElementById(hiddenid).style.display = 'block';
		document.getElementById(hiddenFormBG).style.display = 'block';
		document.getElementById('popup_iFrame').src = iUrl;
		document.getElementById('popup_iFrame').height = iHeight;
	}
};
