var utilities = {
	goUrl : function(url) {
		if (url == 'back') {
			history.go(-1);
		} else {
			document.location = url;
		}
	},
	confirmSubmit : function() {
		return utilities.confirmClick("Are you sure you wish to continue?", arguments[0]);
	},
	confirmClick : function(msg) {
		var agree = window.confirm(msg);
		if (agree) {
			if (arguments[1] != null) {
				this.goUrl(arguments[1]);
			} else {
				return true;
			}
		} else {
			return false;
		}
	},
	OpenImage : function(in_img) {
		utilities.OpenWindow('/assets/images/images.asp?img=' + in_img, "ImgWindow", 200, 200, 0, 0);
		return false;
	},
	OpenWindow : function(in_url, in_win_id, in_width, in_height, in_resizeable, in_scroll) {
		if (in_width =="" || in_width == null) in_width = 486;
		if (in_height == "" || in_height == null) in_height = 500;
		var features ='directories=0,location=0,menubar=0,scrollbars=' + in_scroll + ',status=0,toolbar=0,resizable=' + in_resizeable + ',width=' + in_width + ',height=' + in_height +	',screenX=15,screenY=15,top=15,left=15';
		in_url = in_url.replace(/\s/,'%20');
		var wind=window.open (in_url, in_win_id, features);
		wind.focus();
	}
};