function initWindow(url,w,h,t,l,mb,tb,lb,sb,r) {
		this.url = url;
		this.w = w ? w : screen.width - "50";
		this.h = h ? h : screen.height - "150";
		this.l = l ? l : (screen.width - this.w) / 2;
		this.t = t ? t : (screen.height - this.h) / 2; 
		this.mb = mb ? mb : "no";
		this.tb = tb ? tb : "no";
		this.lb = lb ? lb : "no";
		this.sb = sb ? sb : "no";
		this.r = r ? r : "no";
		this.setWindow = function() {
			var newWin = window.open(this.url, "appWin", "menubar=" + this.mb +
				", toolbar=" + this.tb + ",location=" + this.lb + ",resizable='no'" 
				+ ",scrollbars=" + this.sb + ",left=" + this.l + ",top=" + 
				this.t + ",width=" + this.w + ",height=" + this.h);
			newWin.focus();
		}
	}

	initWindow.prototype.setURL = function(el,useTarget,w,h,l,t) {
		this.url = el.href ? el.href : el.action;
		this.w = w ? w : "620";
		this.h = h ? h : "550";
		this.l = l ? l : (screen.width - this.w) / 2;
		this.t = t ? t : (screen.height - this.h) / 2;
		if (useTarget) {
			this.setWindow();
			el.target = "appWin";
		} else {
			this.setWindow();
		}
	}

	var newWindow = new initWindow();

