

	/// Popup class
	function Popup(href, title, properties)	{	
		this.href = href;							
		this.title = title;							
		this.properties = properties;				

		this.open = Popup_open;
		this.refresh = Popup_refresh;
	}

	/// Opens popup window
	function Popup_open() {
			// if window is closed, then open; otherwise, focus the window
			if(!this.window || this.window.closed) {
				this.window = window.open(this.href, this.title, this.properties);
				this.window.focus();		
			} else {
				this.window.focus();		
			}
	}
	
	/// Refreshes the popup window
	function Popup_refresh()
	{
			// if window is closed, then open; otherwise, focus the window
			if(!this.window || this.window.closed) {
				this.window = window.open(this.href, this.title, this.properties);
				this.window.focus();		
			} else {
				this.window.location.href = this.href;
				this.window.focus();
			}
	}

/*
	var Webinfo = new Modules("http://www.washington.edu/webinfo", "webinfo", "height=450,width=480,toolbar=1,location=0,status=1,menubar=1,resizable=1,scrollbars=1");
	var Contact = new Modules("/ugadev/contact.htm","contact", "height=360,width=360,toolbar=0,location=0,status=1,menubar=0,resizable=0");
	var Talkie = new Modules("/ugadev/elements/talkie/index.shtml", "talkie", "height=320,width=420,toolbar=0,location=0,status=1,menubar=0,resizable=0");
 */

