Api =
{
	settings:		null,
	IE:				document.all,
	NS:				document.getElementById && !document.all,
	
	/**
	 * 
	 */
	init: function() {
	},
	
	/**
	 * 
	 */
	isBrowserIE: function() {
		return (this.IE && !this.NS ? true : false);
	},
	
	/**
	 *
	 */
	openNewWindow: function(width, height, url, name, features)
	{
		var left = (screen.availWidth - width) / 2;
		var top = (screen.availHeight - height) / 2;
	
		var settings = 'height=' + height + ',' + 'width=' + width + ',' + 'top=' + top + ',' + 'left=' + left + ',';
		settings += features;
	
		whandle = window.open(url, name, settings);
		whandle.focus();
	},
	
	/**
	 * 
	 */
	submitForm: function(form_id) {
		var form = document.getElementById(form_id);		
		form.submit();
	}
};

Api.init();