//----------------------------------------------------------
//$Date: 2008-11-09 19:47:09 -0500 (Sun, 09 Nov 2008) $
//$Author: sig $
//$Revision: 68 $
//----------------------------------------------------------
//------------------------------------------------
// Javascript Library
//------------------------------------------------
/**
 * Custom namespace creation function
 */
function namespace() {
    var a=arguments, o=null, i, j, d;
    for (i=0; i<a.length; i=i+1) {
        d=a[i].split(".");
        o=window;
        for (j=0; j<d.length; j=j+1) {
            o[d[j]]=o[d[j]] || {};
            o=o[d[j]];
        }
    }
    return o;
};

/**
 * Base class
 * @class EWS
 */
var EWS = function() {
	
	// Public Methods
	return {
		// name: popup
		// description: open popup window
		popup: function(url, height, width) {
			// calculate window left and top
			var winl = (screen.width-width)/2;
			var wint = (screen.height-height)/2;

			// open window and return handle
			window.open(url, "_blank", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,top="+wint+",left="+winl+",width="+width+",height="+height);
		}
		
	}; // end of return call
}();

