


function oe() { return this.constructor(); }
oe.prototype = {
	
	win:null,
	opinionId: null,
	defaultWidth: 536,
	defaultHeight: 240,
	
	show: function() {
		// if(this.win != null) { this.win.close(); this.win = null; }
		this.win = window.open('http://opinion.deltaintegrity.com/comment_card.jsp?opinionId=' + this.opinionId + '&screenWidth=' + screen.width + '&screenHeight=' + screen.height + '&time=' + new Date().getTime() + '&referer=' + escape(document.location.href) + '&page=' + escape(document.referrer), 'name', 'height=' + this.defaultHeight + ', width=' + this.defaultWidth + ', top=' + (screen.height / 2 - this.defaultHeight / 2) + ', left=' + (screen.width / 2 - this.defaultWidth / 2) + ', toolbar=no, status=yes, resizable=yes');	
		if (window.focus) { this.win.focus(); }
	},
	isClosed: function() {
		if(this.win != null) {
			if(this.win.closed) return true;
		}
		return false;
	},
	getOpinion: function(opinionId) {
		this.opinionId = opinionId;
		if(this.opinionId != null) {
			this.show();
		}
	},
	constructor: function() {}
};