/**
 * @alias Frame.class
 * @author Arweb <systems@arweb.com>
 * @since 2007.
 */

function Frame(url) {
	
	this.url = url;
	this.handler = null;
	
	var args = arguments[1];
	if (args) {
		this.width = args.width ? args.width : 550;
		this.height = args.height ? args.height : 400;
		this.scrolls = args.scrolls ? args.scrolls : false;
	} else {
		this.width = 550;
		this.height = 400;
		this.scrolls = false;
	}
	
	this.show = function () {
		var scrolls = new Number(this.scrolls);
		var args = new Array(
			"width=" + this.width.toString(),
			"height=" + this.height.toString(),
			"menubar=0",
			"status=0",
			"titlebar=0",
			"toolbar=0",
			"scroll=" + scrolls.toString()
		);
		this.handler = window.open(this.url, "_blank", args.join(", "));
	};
	
}

